#include <stdio.h>
#include <stdlib.h>
#include <GL/gl.h>
#include <GL/glut.h>
#define KEY_ESCAPE 27
void display();
void keyboard(unsigned char,int,int);
Type: Posts; User: openglfirst
#include <stdio.h>
#include <stdlib.h>
#include <GL/gl.h>
#include <GL/glut.h>
#define KEY_ESCAPE 27
void display();
void keyboard(unsigned char,int,int);
If it's in Delphi, then how do you use that with opengl-C/C++ ?
Is the code you wrote available in internet? Did you write the nehe tutorial to load TGA/BMP? What's special about TGA or BMP? What's wrong with png,jpg?
That code you wrote, is that available in internet?
What is an art package? Why don't you want to rely upon someone elses work? What do you do then?
How did you write your own loader? Is it available on internet? How do you make .TGA files from png/jpg/bmp?
Which do you use to load image? Which library do you use to load images?
Can you post the complete example code?
It's not loading that .png file, some say i need libpng to make the png to raw file. I can't understand how to do it.
#include <stdio.h>
#include <GL/gl.h>
#include <GL/glut.h>
#define KEY_ESCAPE 27
void display();
void keyboard(unsigned char,int,int);
GLuint LoadTextureRAW(...
How can i multiply these two matrices using opengl and get the resulted matrix?
What's the difference between glMatrixMode(GL_PROJECTION); and glMatrixMode(GL_MODELVIEW);
#include <stdio.h>
#include <GL/gl.h>
#include <GL/glut.h>
#define KEY_ESCAPE 27
How can i load a 2D .jpeg/.jpg image and display it using glut of opengl?
Can anyone post complete example code?
How can i draw a star using glut and basic glVertex function?
Can anyone post example code for this and the complete command to compile this program?
I want to read a bitmap file using fread function.
How to do that?
Can anyone post complete code?
g++ c.cpp -o c
I got undefined reference to `glClear' etc .
How to install opengl,glut on Fedora 12 ?
Is it possible to draw circle with "glVertex2i" function?
How to do that in C/C++ ?
I want to draw a circle.
How would i do this?