Questions tagged [freeglut]

freeglut is an open-source alternative to the OpenGL Utility Toolkit (GLUT) library.

freeglut is an open-source alternative to the OpenGL Utility Toolkit (GLUT) library ().

Resources:

610 questions
0
votes
1 answer

How to use third party SDKs/Libraries in Visual Studio (2010) projects? (OpenGL/FreeGLUT/GLEW)

For the last two years I have been using Java and NetBeans, where all I need to do to add a new third party library to my project is throw in the .jar file and NetBeans does the rest. Recently I have switch to C++ and Visual Studio and I am having a…
0
votes
1 answer

opengl glutWireTorus artifact

I am working on a small animation of a sinewave being generated by a moving circle similar to this gif. However I'm having a weird issue with using glutWireTorus for the circle. Even when I comment out all the other drawing code and leave the torus…
Chocken
  • 53
  • 2
  • 8
0
votes
1 answer

FreeGlut "glutMotionFunc" operating

I'm new in glut programming. I want just create a window and show the mouse's coordinates (within the window). It's normal that glutMotionFunc is active when I press a button of the mouse (within the window) and the cursor is out of the window? If…
Luca90
  • 63
  • 1
  • 2
  • 12
0
votes
1 answer

OpenGL with GLUT. Not Drawing?

#include #include void display(); void init(); int main(int argc, char* argv[]) { init(); glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); glutInitWindowSize(320, 240); …
ApprenticeHacker
  • 21,351
  • 27
  • 103
  • 153
0
votes
1 answer

freeglut installation from sources - MinGW

I'm trying to install freeglut for MinGW on a Windows XP machine. After downloading the sources (from here) I followed these instructions. I opened a MinGW shell and typed the following commands: ./configure make all make install Once done I can't…
kwadr4tic
  • 776
  • 2
  • 8
  • 11
0
votes
3 answers

Problems with freeglut glew in Visual Studio 2010

I've been attempting to install glew and freeglut to use with Visual Studio 2010. I followed this guide and have backtracked a few times to make sure I followed it correctly but I still get the following errors when I try and compile the example…
0
votes
1 answer

What could be the reasons the reshape callback is never called?

I'm using Visual Studio Express 2010, with freeglut_static.lib linked (in Properties>Linker>Input>Additional Dependencies, version 2.8.0) and FREEGLUT_STATIC defined. The code builds and compiles, though I did have to tweak a bunch of properties to…
Walt Donovan
  • 357
  • 1
  • 10
0
votes
1 answer

How to use FreeGLUT glutMouseWheelFunc in PyOpenGL program?

I have installed PyOpenGL from here for 64-bit Python 3.x and Windows 7. I am able to write and execute a PyOpenGL program that uses glutMouseFunc to listen to mouse button clicks: from OpenGL.GLUT import * from OpenGL.GL import * # Imagine the…
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
-1
votes
1 answer

Why do objects in my window sometimes disappear and reappear?

The objects in my window sometimes disappear and reappear. This mainly happens when resizing the window. I suppose this is because my two methods conflict with each other with the glutMainLoopEvent() function. I create the window like this: def…
-1
votes
1 answer

My texture is being displayed as completely black in pyOpenGL

I was trying to display a texture in pyOpenGL with the following methods. Instead of the texture being rendered correctly, the entire object was black. The texture is being loaded with PIL in an RGBA format. I try to load in the texture using this…
-1
votes
1 answer

OpenGL triangle disappears after first frame?

I had an issue where the rendered triangle would disappear after what I think is one iteration of the glutMainLoop. I am running this on linux. // g++ main.cpp -lglut -lGL -o main #include #include #include…
user16346054
-1
votes
1 answer

glu.h PROBLEMS!

Ok so im setting up Visual studios C++ 10 on Windows 7 so i can run the sample progams from this book "OpenGL superbible 5th edition" but i'm having some MAJOR ISSUES, in getting GLTools and freeglut to wok: Here's how I set everything up so…
Griffin
  • 2,399
  • 7
  • 48
  • 83
-1
votes
1 answer

Why is glOrtho not changing anything?

This function does not change anything even though I already called glOrtho(). What's wrong with the code? Did I miss something? void glKeyCallback(unsigned char key, int x, int y){ if (key == 'z'){ width -= 10; height -= 10; cout << "Z"…
-1
votes
1 answer

Opengl lighting not working

So far a sky box and cube and ability to move the camera left right forward and back is working. However the cube is not being shaded by the lighting and isn't even appearing as the correct color. From my perspective I've enabled everything I was…
-1
votes
1 answer

OpenGL no texture

I have a problem, I want to bind a texture on a simple cube but my texture isnt displayed and I realy dont know what I did wrong. this Is the texture part of my program : void loadTextureSTD(char * path, int size, int size_x, int size_y) { …
noName
  • 132
  • 1
  • 9