Nilorea Library

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros Groups
n_gfx.h
Go to the documentation of this file.
1
10 #ifndef __N_GRAFIC__
11 #define __N_GRAFIC__
12
13 #ifdef __cplusplus
14 extern "C"
15 {
16 #endif
17
23 #include "n_log.h"
24
25 #ifndef NOALLEGRO
26 #include <alleggl.h>
27
29 #define MODE_OGL 1
30
31 #define MODE_DX 2
32
33 /* status of opengl & or directx */
34 int gfx_status( int ACTION , int value );
35 /* init gfx mode */
36 int gfx_mode( int card , int W , int H , int VW , int VH , int depth , float r , float g , float b , float alpha );
37
38 /* Force if already not a 32bpp bmp to be the same with an alpha channel */
39 int Force32BitBmpToAlpha( BITMAP *bmp );
40 /* Change all the bmp pixel of the same color src to color dst */
41 void force_color_to_be( BITMAP *bmp , int oldcolor , int newcolor );
42 /* ogl helper drawer */
43 void ogl_blit( GLuint mytexture , int x , int y , int r , int g , int b , int alpha , int w , int h , int mode );
44
47 #endif /* NOALLEGRO */
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif /* #ifndef __N_GRAFIC__ */