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
0 answers

OpenGL not flushing across multiple source files

I am writing a simple graphics library in C++ that uses freeglut. I have multiple source files, one handling colors, one handling shapes, and one handling OpenGL functions. I have a base Shape Class, and shapes deriving from it (Triangle, Quad,…
corsel
  • 315
  • 2
  • 12
0
votes
4 answers

C++ Memory Leak, Can't find where

I'm using Visual Studio 2008, Developing an OpenGL window. I've created several classes for creating a skeleton, one for joints, one for skin, one for a Body(which is a holder for several joints and skin) and one for reading a skel/skin file. Within…
Nicholas
  • 7,403
  • 10
  • 48
  • 76
0
votes
2 answers

Swapping buffers with core profile uses invalid operations

Whenever I call a function to swap buffers I get tons of errors from glDebugMessageCallback saying: glVertex2f has been removed from OpenGL Core context (GL_INVALID_OPERATION) I've tried using both with GLFW and freeglut, and neither work…
MasterMastic
  • 20,711
  • 12
  • 68
  • 90
0
votes
1 answer

C++ OpenGL dragging multiple objects with mouse

just wondering how someone would go about dragging 4 different objects in openGL. I have very simple code to draw these objects: glPushMatrix(); glTranslatef(mouse_x, mouse_y,…
0
votes
1 answer

#include "GL/freeglut.h" produces build errors when adding it to C++ wxWidgets code, CodeBlocks

I am trying to write an application that includes both wxWidgets and OpenGL ( FreeGLUT & GLEW ). I am using CodeBlocks & C++ on a Win 7 machine. So far I have written some wxWidgets code that builds and works properly. But when I add the line…
James C
  • 901
  • 1
  • 18
  • 38
0
votes
0 answers

Cannot get glLineStipple to work

I am building a virtual oscilloscope with OpenGL. I am able to plot the x and y axis and also create a grid. But I cannot get the grid lines to stipple using the code below... Any suggestions ?? glLineStipple is called in the DrawMainWindow function…
Rajat Mitra
  • 167
  • 1
  • 11
0
votes
1 answer

glutCreateWindow - X Error of failed request

I recently began studying computer graphics programming by way of Jason L. McKesson's free online resource, Learning Modern 3D Graphics Programming, source:(http://www.arcsynthesis.org/gltut/). Along with the reading material is the source code for…
Aluthren
  • 416
  • 6
  • 18
0
votes
1 answer

Rendering GL_TRIANGLES with OpenGL in C++

I am trying to use a function to render a triangle with OpenGL. The shape isn't appearing and I don't know why. I think it might be just because of the locations of the vertices. Main method: int main() { glutInitWindowSize(400, 400); …
user3787983
0
votes
1 answer

undefined reference to 'Angel :: InitShader(char const*, char const*)'

I'm beginning my OpenGl course and I'm using the book by Edward Angel, Interactive Computer Graphics. In the first example in the book he uses glsl shaders. I have successfully linked all compiler libraries to correct compiler flags etc. Im stuck…
Hlöðver
  • 101
  • 1
  • 7
0
votes
1 answer

Setting up OpenGL projects in VS2010 with freeglut/glew

I am following the following tutorial my instructor used in class for a graphics class that started last week. http://cse.spsu.edu/jchastin/courses/cs4363/labs/ProjectSetup/Project_Setup.html I am trying to set this up under Win8 using VS2010 pro. I…
Arcath
  • 51
  • 6
0
votes
1 answer

Does the placement of files for OpenGL (freeglut) affect development on different machines?

I'm going to develop an OpenGL project using Microsoft Visual Studio 2013, developing with C++. I'm intending to use freeglut for the project as it would probably give me more freedom to compute things such as reading a 3D model, displaying the…
tObIeWeE
  • 3
  • 2
0
votes
2 answers

Why does my Freeglut App comes up with XQuartz/X11?

I wrote a little Glut/OpenGL Application with Eclipse on a Mac. If I compile it with glut lib, the app window opens by itself. If I compile the app with freeglut lib, it opens XQuartz/X11 and starts in a window within XQuartz/X11. Why does freeglut…
Flupp
  • 856
  • 10
  • 24
0
votes
1 answer

C++ GlutCloseFunc coming Up with Init error

I am trying to specify the glutClosefunc for the tutorial at http://www.glprogramming.com/red/index.html but it doesnt seem to work... my code looks like this: int main(int argc, char* argv[]) { glutInit(&argc, argv); …
Da_Boom
  • 65
  • 1
  • 6
0
votes
1 answer

gluUnProject was working, then stopped working

This function was working when i was using glut that i downloaded from the opengl nvidia examples void gl_select(int x, int y) { GLint viewport[4]; GLdouble modelview[16]; GLdouble projection[16]; GLfloat winX, winY, winZ; …
Dean
  • 499
  • 6
  • 13
  • 34
0
votes
1 answer

glutMouseWheelFunc doesnt trigger callback

I am trying to implement zoom in or zoom out operations using mouse scroll button by glutMouseWheelFunc in opengl . I have implemted the code as below : #include void mouseWheel(int button, int dir, int x, int y) { printf("in…
user3351750
  • 927
  • 13
  • 24