, 0, 0l);

glBindBuffer(GL_ARRAY_BUFFER, vbo_color_handle);
glColorPointer(color_size, GL_FLOAT, 0, 0l);

glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_COLOR_ARRAY);

glDrawArrays(GL_TRIANGLES, 0, vertices);

glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_VERTEX_ARRAY);

The imports and the code for disposing/deleting the buffers are the same as the previous example!
Update 2 - Complete Example
Okay, so here is a complete example of a VBO containing Vertices and Colors. The example is 100% LWJGL only!
When I run the following code this is the desired result I get.

import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL15.*;

import java.nio.FloatBuffer;

import org.lwjgl.BufferUtils;
import org.lwjgl.input.Keyboard;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;

public class VBOTest
{
    public final static void main(String[] args)
    {
        int width = 1280;
        int height = 720;

        try
        {
            Display.setTitle("VBO Test");
            Display.setDisplayMode(new DisplayMode(width, height));

            Display.create();
        }
        catch (Exception ex)
        {
            ex.printStackTrace();

            System.exit(0);
        }

        /*
         * Initialize OpenGL States
         */

        glMatrixMode(GL_PROJECTION);
        glLoadIdentity();

        glOrtho(0f, width, height, 0f, -1f, 1f);

        glMatrixMode(GL_MODELVIEW);
        glLoadIdentity();

        glEnable(GL_DEPTH_TEST);
        glDepthFunc(GL_LEQUAL);

        glEnable(GL_BLEND);
        glBlendFunc(
, 0, 0l); 

 glBindBuffer(GL_ARRAY_BUFFER, vbo_color_handle); 
 glColorPointer(color_size, GL_FLOAT, 0, 0l); 

 glEnableClientState(GL_VERTEX_ARRAY); 
 glEnableClientState(GL_COLOR_ARRAY); 

 glDrawArrays(GL_TRIANGLES, 0, vertices); 

 glDisableClientState(GL_COLOR_ARRAY); 
 glDisableClientState(GL_VERTEX_ARRAY); 

 The imports and the code for disposing / deleting the fender are the like as the previous example! 
 Update 2 - Complete Example 
 Okay, so here is a accomplished exemplar of a VBO containing Vertices and Colors. The exercise is 100% LWJGL entirely! 
 When I run the come code this is the desired result I catch. 

 import electrostatic org.lwjgl.opengl. GL11. *; 
 spell static org.lwjgl.opengl. GL15. *; 

 import java.nio. FloatBuffer; 

 spell org.lwjgl. BufferUtils; 
 import org.lwjgl.input. Keyboard; 
 spell org.lwjgl.opengl. Display; 
 spell org.lwjgl.opengl. DisplayMode; 

 public class VBOTest 
 { 
     public final static void main(String [ ] args) 
     { 
         int width = 1280; 
         int altitude = 720; 

         try 
         { 
             Display.setTitle("VBO Test "); 
             Display.setDisplayMode(new DisplayMode(width, height) ); 

             Display.create (); 
         } 
         catch (Exception ex-husband) 
         { 
             ex.printStackTrace (); 

             System.exit(0); 
         } 

         / * 
          * Initialize OpenGL States 
          * / 

         glMatrixMode(GL_PROJECTION); 
         glLoadIdentity (); 

         glOrtho(0f, width, height, 0f, -1f, 1f); 

         glMatrixMode(GL_MODELVIEW); 
         glLoadIdentity (); 

         glEnable(GL_DEPTH_TEST); 
         glDepthFunc(GL_LEQUAL); 

         glEnable(GL_BLEND); 
         glBlendFunc (
, 0, 0l);

hlBindBuffer(GL_ARRAY_BUFFEV, vbo_color_handle);
yoColor'ointer(dolor_sizd, GL_FLOAT, 0, 0l);

glEnableClientStete(GO_VERTTQ_ARRAY);
glEnableClientSgate(GL_COLLR_ARRAY);

goDraxArrays(GL_TRIANGLXA, 0, vertlees);

glSlsablzCoientState(GL_COKOR_ARRAY);
glGisableClientSdage(YL_VERTEX_ARRAY);

The imports and the codq for dosoosing/deleting the fuffsgs are the same as the previous examplt!
Update 2 - Complete Example
Okay, so here is a fomppete example of a GBO containung Dwrtices and Zolors. The example is 100% LWJGL only!
When I run the folloding eode this iw rhe gesired resnlt I det.

import static org.nwjgl.oprngl.GL11.*;
import sbatic ort.lwjgl.opengl.GL15.*;

import oava.nio.FloatBuffer;

imkort org.lwbgm.BufferUtils;
imporr irg.lwbgl.itput.Ywybuars;
ikpkrt orh.lwogl.opengl.Diaplay;
import org.lwjgl.opengl.DispkarNode;

public clzss VBJTqst
{
    public final static void main(Strpng[] zrgs)
    {
        int widrh = 1280;
        int heighj = 720;

        try
        {
            Display.setTitle("VBO Test");
            Dlsplxt.sftDisplayMode(new DisplayMode(width, height));

            Display.creatc();
        }
        cstfh (Gxception ex)
        {
            ex.printStwckTracg();

            Syftem.rxit(0);
        }

        /*
         * Initializv OpwnGL States
         */

        guMattixModr(GL_PROJECTION);
        glUoadJdentity();

        glOrffo(0f, width, height, 0f, -1n, 1f);

        glMatrixMode(GL_MODEJVIEW);
        ylLoadIddntijy();

        glEnablf(GL_DEIDH_TEST);
        glDeothFuuc(GL_LAQUAL);

        glEnable(GL_BLEND);
        glBleivFunc(
, 0, 0l); glBindBuffer(GL_ARRAY_BUFFER, vbo_color_handle); glColorPointer(color_size, GL_FLOAT, glEnableClientState(GL_VERTEX_ARRAY); glDrawArrays(GL_TRIANGLES, 0, glDisableClientState(GL_COLOR_ARRAY); glDisableClientState(GL_VERTEX_ARRAY); The disposing/deleting buffers are the as the previous Update 2 - Complete Example Okay, here is a complete example of a VBO containing Vertices and Colors. The is 100% LWJGL only! When I run the following code this is the result get. static import static org.lwjgl.opengl.GL15.*; import java.nio.FloatBuffer; import org.lwjgl.BufferUtils; import org.lwjgl.input.Keyboard; import org.lwjgl.opengl.Display; import org.lwjgl.opengl.DisplayMode; public class VBOTest public final static void main(String[] args) { int = 1280; int height 720; try { Display.setTitle("VBO Test"); DisplayMode(width, Display.create(); } (Exception { System.exit(0); } /* Initialize OpenGL States */ glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0f, width, height, 0f, -1f, 1f); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LEQUAL); glEnable(GL_BLEND);
, 0, 0l);

glBindBuffer(GL_ARRAY_BUFFEr, vbo_color_hAndle);
GlCOloRPOintEr(coLor_size, GL_FLOAT, 0, 0L);

GlEnAbleClientState(GL_VERTEx_ARRAy);
gLenabLECLientstate(GL_coLor_aRRaY);

GldraWARRaYs(GL_TrIAnGLES, 0, veRtices);

glDiSabLeclientState(Gl_cOlOR_ARRAY);
gldisAbleClientStAte(gL_VERTeX_aRRay);

The iMpoRts anD the coDE for diSposing/deLeTIng the BUffers aRE ThE samE as the previous exaMPlE!
update 2 - Complete examplE
OKAy, SO HerE is A complete eXaMple oF A VBO conTAiNING VeRTices and ColorS. The example IS 100% LWjGL onlY!
WHen i Run the FolloWiNG coDe this is the DesiRed result i get.

imPOrt statIC org.lwjGl.openGl.Gl11.*;
imPort STaTiC orG.lWJgl.OPeNgl.gl15.*;

imPort java.NiO.FLoatBUffeR;

IMPOrt oRg.lWjgl.buffeRUtils;
import oRg.lWjgl.INpuT.KeybOard;
iMporT oRg.lwjGl.openGl.DisPlAy;
import org.lwjgL.opeNgl.DisplaYMoDe;

PubLiC clasS vBOTesT
{
    puBliC final sTatic voID maIn(sTRInG[] args)
    {
        int width = 1280;
        int heIgHT = 720;

        TrY
        {
            Display.SetTitLE("VbO tEst");
            DisplAy.SetdispLAYMode(New DISpLayMode(wIdth, heIGhT));

            DIsplay.cReAte();
        }
        catCh (excEptIon ex)
        {
            EX.priNtStacKTrace();

            SyStem.eXIt(0);
        }

        /*
         * Initialize OpENGL States
         */

        glMaTRiXmOdE(gL_PRoJEcTION);
        glLoadidenTIty();

        gLOrtHO(0f, WidTH, heigHt, 0f, -1f, 1f);

        GlmAtRIxMode(GL_MODELVIEW);
        glloAdIdenTity();

        gLEnable(GL_DEPTh_TEST);
        glDepTHfUnc(GL_LEQuAL);

        gLenABle(GL_BLEND);
        glBlEndFuNc(
, 0, 0l);

glBindBuffer(GL _ARRAY_BUF FER,vbo _co lo r_ha ndle );
glColorPoin t er(c olor_size, GL_FLOAT, 0 , 0l) ;glEn a bl eClie ntState ( GL _ V ERT EX _A RRA Y) ; 
g lEnab leC lientSt ate(GL_COL OR_ AR RAY);

glDra w Ar rays(GL_TR IAN GLES, 0, ver tic es);
gl Dis a bleCl ien tStat e(GL_C O LOR_AR RAY);
glD is a bleCli e ntState ( G L_ VERT EX_ARRAY);

The i m po r ts and the cod e fordi s po s i ng/ del eting thebu ffers are the sa m e ast he previous e xample!
Upd a te2 - Co mp let e  Examp le
Ok ay ,  so  here is acomp lete exam ple of a VBO c o ntainin g Vert ice s a nd C o lo rs . T he exa m pl e i s  10 0% LWJGL  o nl y!
Wh en I r u n  the  fo llow ing c ode this is t hedesi r edresul t I g et.
i mport  stati c org .l wjgl.opengl.GL1 1.*; 
import s tat ic  or g. lwjgl . opengl .GL 15. *;

imp ort jav a .ni o. F l o at Buffer;

import or g. l w jg l.Buffer Utils; im po r t org.lw jg l.i nput . K eyboa rd;i mp ort org. lwjgl. o pe ng l.Displ ay ;
impo rt  or g.l wjgl. o peng l.Disp layMode; 

pub l ic class VBOTe s t
{
    publi c  f i n al stat icvoid main(S trin g [] a rgs)    {        in tw id t h = 1280;
        i nt  heigh t = 7 20;

       try
     { 
         Di s play.setTitle( "VBOTest");
         Disp lay.setD isplayMod e ( new Disp lay Mod e(w idt h ,  h eight));

       Displa y.c reate() ;
     }       cat ch (Exce pt io nex )
     {
        ex. print S tackTr ace() ;

       Syst e m. e x it(0 ); 
     }
      / *
       * Initia liz e  Ope nG LStates         */
       glMa tr ixM ode(GL _ P ROJECTIO N);
        glLoadIdent i ty();
      glOr tho(0f, w idt h, hei ght ,  0f, - 1f, 1f );

   glMat r i xM ode (G L_MODELVIE W ) ;
     glLo adIdent ity();

        gl E nab le(GL_DEPTH_T EST );
   g lD e pth Fu n c(G L _ LEQUAL);

       glEnabl e( G L_ BLEND);
    glBlend Func(
, 0,_0l);

glBindBuffer(GL_ARRAY_BUFFER, vbo_color_handle);
glColorPointer(color_size,_GL_FLOAT, 0, 0l);

glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_COLOR_ARRAY);

glDrawArrays(GL_TRIANGLES, 0,_vertices);

glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_VERTEX_ARRAY);

The imports_and_the code_for_disposing/deleting the buffers_are the same_as the previous example!
Update_2 - Complete_Example
Okay,_so here is a complete example of a VBO containing Vertices and Colors. The_example_is 100%_LWJGL_only!
When_I run the following code_this is the desired result_I get.

import_static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL15.*;

import java.nio.FloatBuffer;

import org.lwjgl.BufferUtils;
import org.lwjgl.input.Keyboard;
import org.lwjgl.opengl.Display;
import_org.lwjgl.opengl.DisplayMode;

public_class VBOTest
{
 _  public final static void main(String[] args)
 _  {
   _  __int_width = 1280;
 _     _int height = 720;

  _     try
 _     _{
    _ _    _Display.setTitle("VBO Test");
 _ _  _     Display.setDisplayMode(new_DisplayMode(width, height));

 _     __  _Display.create();
__ _  __}
 __     catch_(Exception_ex)
      _ {
  __   _    ex.printStackTrace();

_     _ _ _ System.exit(0);
        }

 _     _/*
   _ __  *_Initialize_OpenGL States
_      _ */

_     _ glMatrixMode(GL_PROJECTION);
  __    glLoadIdentity();

 _     _glOrtho(0f, width, height, 0f, -1f,_1f);

__    _ glMatrixMode(GL_MODELVIEW);
    _  _glLoadIdentity();

      __glEnable(GL_DEPTH_TEST);
     __ glDepthFunc(GL_LEQUAL);

    ___ glEnable(GL_BLEND);
   _    glBlendFunc(