@@ -1153,45 +1153,45 @@ protected void createPolyBuffers() {
11531153 int sizei = INIT_VERTEX_BUFFER_SIZE * PGL .SIZEOF_INT ;
11541154 int sizex = INIT_INDEX_BUFFER_SIZE * PGL .SIZEOF_INDEX ;
11551155
1156- glPolyVertex = createVertexBufferObject (polyBuffersContext .code ());
1156+ glPolyVertex = createVertexBufferObject (polyBuffersContext .id ());
11571157 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPolyVertex );
11581158 pgl .bufferData (PGL .ARRAY_BUFFER , 3 * sizef , null , PGL .STATIC_DRAW );
11591159
1160- glPolyColor = createVertexBufferObject (polyBuffersContext .code ());
1160+ glPolyColor = createVertexBufferObject (polyBuffersContext .id ());
11611161 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPolyColor );
11621162 pgl .bufferData (PGL .ARRAY_BUFFER , sizei , null , PGL .STATIC_DRAW );
11631163
1164- glPolyNormal = createVertexBufferObject (polyBuffersContext .code ());
1164+ glPolyNormal = createVertexBufferObject (polyBuffersContext .id ());
11651165 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPolyNormal );
11661166 pgl .bufferData (PGL .ARRAY_BUFFER , 3 * sizef , null , PGL .STATIC_DRAW );
11671167
1168- glPolyTexcoord = createVertexBufferObject (polyBuffersContext .code ());
1168+ glPolyTexcoord = createVertexBufferObject (polyBuffersContext .id ());
11691169 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPolyTexcoord );
11701170 pgl .bufferData (PGL .ARRAY_BUFFER , 2 * sizef , null , PGL .STATIC_DRAW );
11711171
11721172 glPolyAmbient = pgPrimary .createVertexBufferObject (
1173- polyBuffersContext .code ());
1173+ polyBuffersContext .id ());
11741174 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPolyAmbient );
11751175 pgl .bufferData (PGL .ARRAY_BUFFER , sizei , null , PGL .STATIC_DRAW );
11761176
11771177 glPolySpecular = pgPrimary .createVertexBufferObject (
1178- polyBuffersContext .code ());
1178+ polyBuffersContext .id ());
11791179 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPolySpecular );
11801180 pgl .bufferData (PGL .ARRAY_BUFFER , sizei , null , PGL .STATIC_DRAW );
11811181
11821182 glPolyEmissive = pgPrimary .createVertexBufferObject (
1183- polyBuffersContext .code ());
1183+ polyBuffersContext .id ());
11841184 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPolyEmissive );
11851185 pgl .bufferData (PGL .ARRAY_BUFFER , sizei , null , PGL .STATIC_DRAW );
11861186
11871187 glPolyShininess = pgPrimary .createVertexBufferObject (
1188- polyBuffersContext .code ());
1188+ polyBuffersContext .id ());
11891189 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPolyShininess );
11901190 pgl .bufferData (PGL .ARRAY_BUFFER , sizef , null , PGL .STATIC_DRAW );
11911191
11921192 pgl .bindBuffer (PGL .ARRAY_BUFFER , 0 );
11931193
1194- glPolyIndex = createVertexBufferObject (polyBuffersContext .code ());
1194+ glPolyIndex = createVertexBufferObject (polyBuffersContext .id ());
11951195 pgl .bindBuffer (PGL .ELEMENT_ARRAY_BUFFER , glPolyIndex );
11961196 pgl .bufferData (PGL .ELEMENT_ARRAY_BUFFER , sizex , null , PGL .STATIC_DRAW );
11971197
@@ -1266,31 +1266,31 @@ protected boolean polyBuffersContextIsOutdated() {
12661266
12671267 protected void deletePolyBuffers () {
12681268 if (polyBuffersCreated ) {
1269- deleteVertexBufferObject (glPolyVertex , polyBuffersContext .code ());
1269+ deleteVertexBufferObject (glPolyVertex , polyBuffersContext .id ());
12701270 glPolyVertex = 0 ;
12711271
1272- deleteVertexBufferObject (glPolyColor , polyBuffersContext .code ());
1272+ deleteVertexBufferObject (glPolyColor , polyBuffersContext .id ());
12731273 glPolyColor = 0 ;
12741274
1275- deleteVertexBufferObject (glPolyNormal , polyBuffersContext .code ());
1275+ deleteVertexBufferObject (glPolyNormal , polyBuffersContext .id ());
12761276 glPolyNormal = 0 ;
12771277
1278- deleteVertexBufferObject (glPolyTexcoord , polyBuffersContext .code ());
1278+ deleteVertexBufferObject (glPolyTexcoord , polyBuffersContext .id ());
12791279 glPolyTexcoord = 0 ;
12801280
1281- deleteVertexBufferObject (glPolyAmbient , polyBuffersContext .code ());
1281+ deleteVertexBufferObject (glPolyAmbient , polyBuffersContext .id ());
12821282 glPolyAmbient = 0 ;
12831283
1284- deleteVertexBufferObject (glPolySpecular , polyBuffersContext .code ());
1284+ deleteVertexBufferObject (glPolySpecular , polyBuffersContext .id ());
12851285 glPolySpecular = 0 ;
12861286
1287- deleteVertexBufferObject (glPolyEmissive , polyBuffersContext .code ());
1287+ deleteVertexBufferObject (glPolyEmissive , polyBuffersContext .id ());
12881288 glPolyEmissive = 0 ;
12891289
1290- deleteVertexBufferObject (glPolyShininess , polyBuffersContext .code ());
1290+ deleteVertexBufferObject (glPolyShininess , polyBuffersContext .id ());
12911291 glPolyShininess = 0 ;
12921292
1293- deleteVertexBufferObject (glPolyIndex , polyBuffersContext .code ());
1293+ deleteVertexBufferObject (glPolyIndex , polyBuffersContext .id ());
12941294 glPolyIndex = 0 ;
12951295
12961296 polyBuffersCreated = false ;
@@ -1306,22 +1306,22 @@ protected void createLineBuffers() {
13061306 int sizei = INIT_VERTEX_BUFFER_SIZE * PGL .SIZEOF_INT ;
13071307 int sizex = INIT_INDEX_BUFFER_SIZE * PGL .SIZEOF_INDEX ;
13081308
1309- glLineVertex = createVertexBufferObject (lineBuffersContext .code ());
1309+ glLineVertex = createVertexBufferObject (lineBuffersContext .id ());
13101310
13111311 pgl .bindBuffer (PGL .ARRAY_BUFFER , glLineVertex );
13121312 pgl .bufferData (PGL .ARRAY_BUFFER , 3 * sizef , null , PGL .STATIC_DRAW );
13131313
1314- glLineColor = createVertexBufferObject (lineBuffersContext .code ());
1314+ glLineColor = createVertexBufferObject (lineBuffersContext .id ());
13151315 pgl .bindBuffer (PGL .ARRAY_BUFFER , glLineColor );
13161316 pgl .bufferData (PGL .ARRAY_BUFFER , sizei , null , PGL .STATIC_DRAW );
13171317
1318- glLineAttrib = createVertexBufferObject (lineBuffersContext .code ());
1318+ glLineAttrib = createVertexBufferObject (lineBuffersContext .id ());
13191319 pgl .bindBuffer (PGL .ARRAY_BUFFER , glLineAttrib );
13201320 pgl .bufferData (PGL .ARRAY_BUFFER , 4 * sizef , null , PGL .STATIC_DRAW );
13211321
13221322 pgl .bindBuffer (PGL .ARRAY_BUFFER , 0 );
13231323
1324- glLineIndex = createVertexBufferObject (lineBuffersContext .code ());
1324+ glLineIndex = createVertexBufferObject (lineBuffersContext .id ());
13251325 pgl .bindBuffer (PGL .ELEMENT_ARRAY_BUFFER , glLineIndex );
13261326 pgl .bufferData (PGL .ELEMENT_ARRAY_BUFFER , sizex , null , PGL .STATIC_DRAW );
13271327
@@ -1372,16 +1372,16 @@ protected boolean lineBufferContextIsOutdated() {
13721372
13731373 protected void deleteLineBuffers () {
13741374 if (lineBuffersCreated ) {
1375- deleteVertexBufferObject (glLineVertex , lineBuffersContext .code ());
1375+ deleteVertexBufferObject (glLineVertex , lineBuffersContext .id ());
13761376 glLineVertex = 0 ;
13771377
1378- deleteVertexBufferObject (glLineColor , lineBuffersContext .code ());
1378+ deleteVertexBufferObject (glLineColor , lineBuffersContext .id ());
13791379 glLineColor = 0 ;
13801380
1381- deleteVertexBufferObject (glLineAttrib , lineBuffersContext .code ());
1381+ deleteVertexBufferObject (glLineAttrib , lineBuffersContext .id ());
13821382 glLineAttrib = 0 ;
13831383
1384- deleteVertexBufferObject (glLineIndex , lineBuffersContext .code ());
1384+ deleteVertexBufferObject (glLineIndex , lineBuffersContext .id ());
13851385 glLineIndex = 0 ;
13861386
13871387 lineBuffersCreated = false ;
@@ -1397,21 +1397,21 @@ protected void createPointBuffers() {
13971397 int sizei = INIT_VERTEX_BUFFER_SIZE * PGL .SIZEOF_INT ;
13981398 int sizex = INIT_INDEX_BUFFER_SIZE * PGL .SIZEOF_INDEX ;
13991399
1400- glPointVertex = createVertexBufferObject (pointBuffersContext .code ());
1400+ glPointVertex = createVertexBufferObject (pointBuffersContext .id ());
14011401 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPointVertex );
14021402 pgl .bufferData (PGL .ARRAY_BUFFER , 3 * sizef , null , PGL .STATIC_DRAW );
14031403
1404- glPointColor = createVertexBufferObject (pointBuffersContext .code ());
1404+ glPointColor = createVertexBufferObject (pointBuffersContext .id ());
14051405 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPointColor );
14061406 pgl .bufferData (PGL .ARRAY_BUFFER , sizei , null , PGL .STATIC_DRAW );
14071407
1408- glPointAttrib = createVertexBufferObject (pointBuffersContext .code ());
1408+ glPointAttrib = createVertexBufferObject (pointBuffersContext .id ());
14091409 pgl .bindBuffer (PGL .ARRAY_BUFFER , glPointAttrib );
14101410 pgl .bufferData (PGL .ARRAY_BUFFER , 2 * sizef , null , PGL .STATIC_DRAW );
14111411
14121412 pgl .bindBuffer (PGL .ARRAY_BUFFER , 0 );
14131413
1414- glPointIndex = createVertexBufferObject (pointBuffersContext .code ());
1414+ glPointIndex = createVertexBufferObject (pointBuffersContext .id ());
14151415 pgl .bindBuffer (PGL .ELEMENT_ARRAY_BUFFER , glPointIndex );
14161416 pgl .bufferData (PGL .ELEMENT_ARRAY_BUFFER , sizex , null , PGL .STATIC_DRAW );
14171417
@@ -1462,16 +1462,16 @@ protected boolean pointBuffersContextIsOutdated() {
14621462
14631463 protected void deletePointBuffers () {
14641464 if (pointBuffersCreated ) {
1465- deleteVertexBufferObject (glPointVertex , pointBuffersContext .code ());
1465+ deleteVertexBufferObject (glPointVertex , pointBuffersContext .id ());
14661466 glPointVertex = 0 ;
14671467
1468- deleteVertexBufferObject (glPointColor , pointBuffersContext .code ());
1468+ deleteVertexBufferObject (glPointColor , pointBuffersContext .id ());
14691469 glPointColor = 0 ;
14701470
1471- deleteVertexBufferObject (glPointAttrib , pointBuffersContext .code ());
1471+ deleteVertexBufferObject (glPointAttrib , pointBuffersContext .id ());
14721472 glPointAttrib = 0 ;
14731473
1474- deleteVertexBufferObject (glPointIndex , pointBuffersContext .code ());
1474+ deleteVertexBufferObject (glPointIndex , pointBuffersContext .id ());
14751475 glPointIndex = 0 ;
14761476
14771477 pointBuffersCreated = false ;
0 commit comments