2
votes
3answers
1k views

Learning to use VBOs properly

So I've been trying to teach myself to use VBOs, in order to boost the performance of my OpenGL project and learn more advanced stuff than fixed-function rendering. But I haven't found much in the ...
2
votes
2answers
3k views

#error gl.h included before glew.h

So I'm trying to move my OpenGL code from Main() into a specific class that will handle the 3D graphics only when necessary. Previously, the top of my main.cpp file looked like this: #define ...
2
votes
1answer
2k views

Problems linking GLEW into SFML project using CodeBlocks

So I'm trying to learn to write shaders and incorporate them into my OpenGL program (I use SFML 1.6 to create a valid OpenGL environment rather than mucking around with GLUT; my IDE is Codeblocks; my ...
2
votes
2answers
2k views

Why won't this GLUT program compile? Am I missing libraries or headers?

I've just started using Linux (Mint 11), and recently, I decided to take up OpenGL programming as a hobby. I'm finding the code and techniques relatively simple enough, however, I'm having a hard time ...
2
votes
0answers
450 views

Compiling a shader and linking fail but verification of the shader succeeds

I'm rather confused about what my shaders are doing. I have a shader class which wraps the opengl parts of the shading for me. I build my application in code::blocks and run it, the compile fase ...
2
votes
2answers
2k views

How to get the GLTools library from SuperBible to work in Ubuntu? or an alternative?

I recently bought the SuperBible 5th edition book. I use Ubuntu 12.04 LTS. I use Code::Blocks. I'm not very proficient with C++ libraries and setting up. I wanted a book that will guide me from ...
1
vote
1answer
665 views

Compilig SDL and OpenGL inside of Code Blocks on Ubuntu

So anytime I compile my code using the terminal I have to compile with: -lSDL -lGL -lGLU How do I do this in Code Blocks? I have tried putting those into the build options for the project, but this ...
1
vote
2answers
913 views

Sdl_image cannot find my jpg image; Won't load

I am currently using the Code::Blocks IDE, c++, opengl and SDL to make a game- and I have hit a severe block in road, if you will. I am using SDL_image to load these jpg images for the textures, but ...
1
vote
1answer
860 views

Setup up GLUT projects in Codeblocks (Ubuntu 12.04)

I installed the freeglut3 and freeglut3-dev by apt-get. I want to create a OPENGL GLUT Project in Codeblocks. I was asked the GLUT's location and I entered "/usr" as I found in a tutorial. But I got ...
1
vote
2answers
348 views

OpenGL setup for code::blocks “cannot find -lXxf86vm”

I'm working on setting up a dev environment for school. We're going to be using GLUT to do graphics programming. I installed freeglut on Ubuntu using sudo apt-get install freeglut3-dev I am going ...
1
vote
1answer
2k views

Setup GLEW + CodeBlocks

I want to make GLEW work with CodeBlocks and have been trying to get the first method presented on the site to work. This is the method to compile glew statically into the executable. But I haven't ...
1
vote
1answer
815 views

SDL 2.0 with Code::Blocks

Ever since I picked up SDL (which was not too long ago), I have used Code::Blocks with MinGW to develop... on Windows. Setting it up for SDL 1.2 was easy and quick. Now I want to start with OpenGL ...
1
vote
0answers
593 views

GLUT compile errors with Code::Blocks

A week ago, when I first tried to work with GLUT and followed this tutorial it worked without any errors. Now, a week later I installed the same software, same libraries, but every time I try to ...
1
vote
1answer
337 views

Linker problems with GLEW and CodeBlcks

I'm trying to get glew to work with Code::Blocks. I'm using OpenGL with SDL. From what I've read I'm having problems with linking according to my errors.(see below) Here is how my linking in CB is ...
1
vote
0answers
185 views

Undefined reference to `WinMain@16' on a console app [duplicate]

Possible Duplicate: Compiling with int main(void) fails; main(int argc, char *argv[]) succeeds. Why? I am making a simple game engine using OpenGL and SDL. All the initialization code for ...

1 2 3
15 30 50 per page