package Ġcom . github . z omb _ 6 7 6 . f antasy Soup . render . graphic . vertex Ċ Ċ import Ġcom . github . z omb _ 6 7 6 . f antasy Soup . render . graphic . Constants Ċ import Ġcom . github . z omb _ 6 7 6 . f antasy Soup . render . graphic . Constants . Vertex Storage Type Ċ import Ġorg . lwjgl . opengl . GL 4 3 Ċ Ċ class ĠVertex Buffer Object ( private Ġval Ġvertex Storage Type : ĠVertex Storage Type ) Ġ{ ĊĠĠĠ Ġprivate Ġvar Ġvertex Buffer ObjectId Ġ= Ġ- 1 ĊĊĠĠĠ Ġfun Ġgen VertexBuffer Object (): ĠVertex Buffer Object Ġ{ ĊĠĠĠĠĠĠĠ Ġvertex Buffer ObjectId Ġ= ĠGL 4 3 . gl Gen Buffers () ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġbind VertexBuffer Object (): ĠVertex Buffer Object Ġ{ ĊĠĠĠĠĠĠĠ ĠGL 4 3 . glBind Buffer ( GL 4 3 . GL _ ARRAY _ BUFFER , vertex Buffer ObjectId ) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġbind Date ( float Array : ĠFloat Array ): ĠVertex Buffer Object Ġ{ ĊĠĠĠĠĠĠĠ ĠGL 4 3 . gl BufferData ( GL 4 3 . GL _ ARRAY _ BUFFER , float Array , vertex Storage Type . type ) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} Ċ }