Sign in to follow this  

very urgent

This topic is 4863 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

This topic is 4863 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this