le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
draw.h
Go to the documentation of this file.
1 
33 #ifndef LE_DRAW_H
34 #define LE_DRAW_H
35 
36 #include "global.h"
37 #include "config.h"
38 
39 #include "bitmap.h"
40 #include "window.h"
41 
42 /*****************************************************************************/
47 class LeDraw
48 {
49 public:
50  LeDraw(LeDrawingContext context, int width = LE_RESOX_DEFAULT, int heigth = LE_RESOY_DEFAULT);
51  ~LeDraw();
52 
53  void setContext(LeDrawingContext context);
54  void setPixels(const void * data);
55 
56  int width;
57  int height;
59 private:
60  LeDrawingContext frontContext;
61  LeHandle bitmap;
62 };
63 
64 #endif //LE_DRAW_H
void setPixels(const void *data)
Set the graphic content of the context.
Definition: draw_win.cpp:75
LightEngine 3D: Native OS window manager.
Represent an OS specific drawing context.
Definition: window.h:94
Create and handle an OS native drawing context.
Definition: draw.h:47
LightEngine 3D: General engine configuration file.
~LeDraw()
Definition: draw_win.cpp:55
LightEngine 3D: Global helpers and definitions.
int width
Definition: draw.h:56
LeDraw(LeDrawingContext context, int width=LE_RESOX_DEFAULT, int heigth=LE_RESOY_DEFAULT)
Definition: draw_win.cpp:44
#define LE_RESOX_DEFAULT
Definition: config.h:37
#define LE_RESOY_DEFAULT
Definition: config.h:38
unsigned long long LeHandle
Definition: global.h:41
LightEngine 3D: Bitmap image container & manipulator.
int height
Definition: draw.h:57
void setContext(LeDrawingContext context)
Set the graphic context where to draw.
Definition: draw_win.cpp:65