Hi folks,
after incredible troubling with Microsoft compilers, I finally could link opengl and glut libraries by using lcc.
Now I have this problem: I defined a cube, loaded a texture into memory, but the texture is being applied on only two faces of the cube: on the other 4 faces is drawed a texture similar to a code-bar (parallel tick lines of the same texture’s colors). Here I post the code:
typedef struct {
vertex_type vertex[MAX_VERTICES];
polygon_type polygon[MAX_POLYGONS];
mapcoord_type mapcoord[MAX_VERTICES];
int id_texture;
} obj_type, *obj_type_ptr;
obj_type cube = […vertex,polygon & mapcoord initialization…]
glPolygonMode (GL_FRONT_AND_BACK, GL_FILL);
glEnable(GL_TEXTURE_2D);
cube.id_texture=LoadBitmap2(“texture1.bmp”);
//the LoadBitmap2 function returns the number of the texture, 1 in this case because I only use 1 texture.
I think this behaviour is quite strange, or maybe it’s only a lack of experience on OpenGL ?