deepstone

diff src/mingl.h @ 3:0e781cc43178

adding textures
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 21 Nov 2011 10:16:09 +0200
parents f04884489bad
children bce78aaafc68
line diff
     1.1 --- a/src/mingl.h	Mon Nov 21 10:15:37 2011 +0200
     1.2 +++ b/src/mingl.h	Mon Nov 21 10:16:09 2011 +0200
     1.3 @@ -23,6 +23,7 @@
     1.4  #define MGL_DEPTH_TEST	2
     1.5  #define MGL_SMOOTH		4
     1.6  #define MGL_LIGHTING	8
     1.7 +#define MGL_TEXTURE_2D	16
     1.8  
     1.9  /* primitives */
    1.10  #define MGL_POINTS		1
    1.11 @@ -50,6 +51,7 @@
    1.12  
    1.13  void mgl_enable(unsigned int bit);
    1.14  void mgl_disable(unsigned int bit);
    1.15 +int mgl_isenabled(unsigned int bit);
    1.16  
    1.17  void mgl_front_face(int ff);
    1.18  void mgl_cull_face(int cf);
    1.19 @@ -86,6 +88,8 @@
    1.20  void mgl_frustum(float left, float right, float bottom, float top, float nr, float fr);
    1.21  void mgl_perspective(float vfov, float aspect, float nr, float fr);
    1.22  
    1.23 +void mgl_teximage(int width, int height, unsigned char *pixels);
    1.24 +
    1.25  void mgl_cube(float sz);
    1.26  void mgl_sphere(float rad, int usub, int vsub);
    1.27  void mgl_sphere_part(float rad, int usub, int vsub, float umax, float vmax);