David
03-06-2000, 01:17 AM
I seem to have a problem with assigning either display lists or textures in a class.
I have a class variable relating to a list or a texture which is instanciated when the object is created (for example a mesh object)
But when I use GenLists or whatever command is used to return a number in a method (say for example GetTexture which assigns a texture to the object) (GLuint) it returns rubbish , I know there is nothing wrong with the code itself as I have had to transfer it to Main() where it works fine.
What I am having to do is use GenList or the get texture command in Main() and pass the GLuint back to the class.
Any Ideas why it doesnt work?
Thanks
I have a class variable relating to a list or a texture which is instanciated when the object is created (for example a mesh object)
But when I use GenLists or whatever command is used to return a number in a method (say for example GetTexture which assigns a texture to the object) (GLuint) it returns rubbish , I know there is nothing wrong with the code itself as I have had to transfer it to Main() where it works fine.
What I am having to do is use GenList or the get texture command in Main() and pass the GLuint back to the class.
Any Ideas why it doesnt work?
Thanks