Hi all,

I am having doubt in glList. can anyone solve this one?

Can I allocate the size for glList during runtime ?

ie.,

Initially i generate 2 List

base = glGenList(2);

circle = base ;

square = base + 1 ;

glNewList(circle ,GL_COMPILE);

DrawCircle();

glEndList();

glNewList(square ,GL_COMPILE);

DrawSquare();

glEndList();

then i delete these 2 list particular situation and then

i create new Lists and allocated its size may be 5 or more using glGenList(5) during runtime.

like ,

base = glGenList(5);

circle = base ;

square = base + 1 ;

rectangle = base + 2 ;

Oval = base + 3;

polygon = base + 4;

glNewList(circle ,GL_COMPILE);

DrawCircle();

glEndList();

glNewList(square ,GL_COMPILE);

DrawSquare();

glEndList();

glNewList(Rectangle,GL_COMPILE);

DrawRectangle();

glEndList();

glNewList(Oval,GL_COMPILE);

DrawOval();

glEndList();

glNewList(polygon ,GL_COMPILE)

Drawpolygon()

glEndList()

Is it possible to create and allocate size for the display List ?

can anyone suggests to me?

thnas in advance.