Questions tagged [glutcreatewindow]

12 questions
8
votes
4 answers

Python glutCreateWindow error 'wrong type'

I'm trying to create a window with glut in python and have the following code: glutInit() glutInitWindowSize(windowWidth, windowHeight) glutInitWindowPosition(int(centreX - windowWidth/2), int(centreY - windowHeight/2)) …
Gregory Sims
  • 511
  • 7
  • 18
4
votes
1 answer

glutCloseFunc without terminating application

I have created a window with glutCreateWindow and started a loop using glutMainLoop. I want to end that loop and close the window so I use glutLeaveMainLoop and glutCloseFunc to destroy it. Automatically, my application terminates. I would like the…
Finfa811
  • 618
  • 1
  • 8
  • 28
3
votes
1 answer

OpenGL view on C# Form

How to display a glut window inside Windows Form? glutCreateWindow("Example") create another form, glutCreateSubWindow(hwnd, 0, 0, 100, 100), where hwnd is handle to my main Window Form in C#, i get an AccessViolation Exception. The Glut program…
EthanHunt
  • 473
  • 2
  • 9
  • 19
2
votes
0 answers

PyOpenGL: Why does "glutCreateWindow" suddenly make my application crash?

Can someone please explain to me why the following code does not work anymore? And maybe help me get it to work again? (Python 3.5.2 32bit) from OpenGL.GLUT import * glutInit() glutInitWindowSize(600, 400) glutCreateWindow(b'window') I was using it…
1
vote
2 answers

Visual Studio 2008 with Vista, GLUT projects gives error on runtime

I'm sure that there is nothing wrong with my project. Because I have tried it on my ex computer with visual studio 2005 and windows XP pro, and it works error-free. I can compile my project. There are no errors in build phase. But when I try to run…
Can
1
vote
1 answer

How to make resizable windows with glut?

I am following the sample programs in the OpenGL Superbible, and they make it sound like windows created with glutCreateWindow will be resizable. I am using my own python-version of their Listing 2.2 below, and my windows are never resizable. I am…
PaulM
  • 305
  • 1
  • 8
1
vote
2 answers

Why does Valgrind not like my usage of glutCreateWindow?

I'm using the following code... 169: const char *title = Title.c_str(); 170: glutCreateWindow(title); ... Valgrind gives me the following ... ==28841== Conditional jump or move depends on uninitialised value(s) ==28841== at 0x6FF7A4C: (within…
Nick Bolton
  • 38,276
  • 70
  • 174
  • 242
1
vote
1 answer

PyOpenGL Glut Window

So I recently started to use PyOpenGL's GLUT module and cannot find any simple tutorials on it (links to any would be appreciated) and I just want to create a glut window using glutCreateWindow('window'), but as soon as the window pops up it…
Tri Angular
  • 27
  • 1
  • 4
1
vote
1 answer

Create stars in a OpenGL solar system

I am creating a solar system in OpenGL C++ in which the earth revolve around the sun . The only problem that i face now that i can't create stars above the window i tried everything but not helped Now i have deleted some extra code from here i…
jahanxb
  • 71
  • 2
  • 11
1
vote
1 answer

OpenGL GLUT "glutCreateWindow" deprecated?

I am following a openGL tutorial which includes this function called "glutCreateWindow", my compiler (XCode 5 gcc, OSX) says it is deprecated. What else option would be proper to replace these "glut*" related…
fkkcloud
  • 167
  • 4
  • 11
1
vote
2 answers

OpenGL /GLUT Creating window after mainEventLoop()

I am developing a game in OpenGL/GLUT and I need to open a new window to show the score when the game is won. In order to do this, i will call glutCreateWindow() and register the callbacks after calling mainEventLoop(). Is there a problem with this…
coredump
  • 3,017
  • 6
  • 35
  • 53
0
votes
1 answer

function as a parameter for another function

I am implementing a class named FilesWorkFlow: //this function is called by other functions of the class to set openGL data type //based on GDAL data type void FilesWorkFlow::setOpenGLDataType(void) { switch (eType) { case GDT_Byte: …
Sepideh Abadpour
  • 2,550
  • 10
  • 52
  • 88