I've tried lots of times to get this to work but , no luck . the problem is this program shows white screen , and It doesn't display the polygon . Here's the code , take a look : /*Headers*/ #include <GL/glut.h> /*End of headers*/ /* Check Compiler*/ #ifdef __FLAT__ #include <Windows.h> #endif /*End of Check*/ /*Preloaded Functions*/ void myInit(void) { glClearColor(1.0, 1.0, 1.0, 0.0); glShadeModel(GL_FLAT); } void myDisplay(void) { glClear(GL_COLOR_BUFFER_BIT); glColor3f(1.0, 0.0, 0.0); glBegin(GL_POLYGON); glVertex2f(0.90 , 0.50); glVertex2f(0.50 , 0.90); glVertex2f(0.10 , 0.50); glVertex2f(0.50 , 0.10); glEnd(); } /*End of preloaded functions*/ int main(int argc, char** argv) { glutInit(&argc, …

Member Avatar
Member Avatar
+0 forum 1

I have had a hard time setting up OpenGL to work with Visual Studio 2010,but no luck so far.I included `glut.h`,`gl.h`.I have linked the requisite `.lib` files in the Project Properties,but still I get this error `error LNK2019: unresolved external symbol _glutMainLoop referenced in function _main` ind six more like it.Can anyone please explain the library linking part of the procedure.I searched over the Internet but came up with nothing.Still get those `LNK2019` errors. http://s16.postimg.org/564oangl0/error.jpg

Member Avatar
Member Avatar
+0 forum 2

OpenGL GLUT **My question is at the end of this topic** 1) a) Use your logo you drew within a world coordinate space that has 0,0 at the center. You may choose any width and height for your world coordinate space, glut window and viewport. Be sure that you separate this into a function. You may choose any size for your glut window. Additionally translate your logo so that it’s center is lined up at 0,0 and then uniformly scale down your logo using OpenGL so that it fits within a smaller space of your window. (you can also expand …

Member Avatar
Member Avatar
+0 forum 5

I need help. I tried to load an image using SOIL. I was having problems with it so I found another code I am using. However, it looks like I am not loading it properly. It's simple but I think I'm confusing myself. I still can't wrap my head around how the file will be read. Should I include the whole path name or just the image name? If I don't add the path name, how will the image be found? Please take a look at the two code segnments in the LoadGLTexture function and help me figure this out. …

Member Avatar
Member Avatar
+0 forum 4

I am working on an assignment for school and i seem to be having some issues. I am using OpenGl with free glut, and attempting to animate a pendulum. I can draw out the pendulum, but cannot determine how to make it swing. I have to make it swing from -45 degrees to 45 degrees, and i have the line and ball drawn. I have tried several ways to animate it and make it smooth, but i don't completely understand the process of it. I can set it up in a state where it would be at the right spot …

Member Avatar
Member Avatar
+0 forum 2

I am currently writing a program that uses OpenGL and so it uses the include file: #include <GL/glut.h> Now when I try to compile and run the program I get this message in the error folder: "fatal error C1083: Cannot open include file: 'glut': No such file or directory" Lastly, I have already tried to remove the GL/ to keep it just: <glut.h> but then another error message comes along. I have also already downloaded the openGL folder and placed it in the right Visual C++ folder and I have used OpenGL in the past on the same computer, program …

Member Avatar
Member Avatar
+0 forum 1

Hi, C# in VS2008 using Tao.Freeglut and Tao.OpenGl I am required to create a 3d Tetris game. I have a menu named BuildMenu [CODE=C#] private static void BuildMenu(){ submenu1 = Glut.glutCreateMenu(selectMessage); Glut.glutAddMenuEntry("New Game(N)", 1); Glut.glutAddMenuEntry("Reset(R)", 2); Glut.glutAddMenuEntry("Quit(Q)", 3); Glut.glutAttachMenu(Glut.GLUT_RIGHT_BUTTON); } [/CODE] using these code I can make a menu pop when I click right mouse button at once now my real problem is that I want to use the right button for rotating my game board while holding the right mouse the game will rotate that is why I want to make the menu pop up "AFTER" releasing the right …

Member Avatar
Member Avatar
+0 forum 4

The End.