Jump to content
  • Advertisement
Sign in to follow this  
skockara

very urgent

This topic is 5222 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How did you solve the display list problem I have the same. I see nothing too. I need help. I'm stuck and have limited time. I export my 3d scene as Display List Type. Here is my new written header file to acces Gen3DObjectList method from main.cpp. It is Visual C++ 6.0 Console project. I'm calling display list. There is no error given by compiler. But it shows nothing on the screen. How can I run openGL code exported by 3d Exploration as Display List type? Here is my code /*common.h*/ #ifndef _COMMON_H #define _COMMON_H extern GLint lid; GLint Gen3DObjectList(void); #endif /*common.h*/ /*main.cpp*/ #include <GL/glut.h> #include <math.h> #include "common.h" const double pi2 = 6.28318530718; void winInit(){ gluOrtho2D(0.0, pi2, 0.0, pi2); }; void display(void){ glColor3f(0.0, 0.0, 0.0); glClear(GL_COLOR_BUFFER_BIT); glCallList(lid); }; int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA); glutInitWindowPosition(5,5); glutInitWindowSize(300,300); glutCreateWindow("Coordinate Box"); winInit(); glutDisplayFunc(display); glutMainLoop(); return 0; } /*main.cpp*/

Share this post


Link to post
Share on other sites
Advertisement
Where do you build the display list? I assume you intend to build it in Gen3DobjectList, which sets the lid handle, but you don't call that function anywhere.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!