le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
Public Member Functions | Public Attributes | List of all members
LeDraw Class Reference

Create and handle an OS native drawing context. More...

#include <draw.h>

Public Member Functions

 LeDraw (LeDrawingContext context, int width=LE_RESOX_DEFAULT, int heigth=LE_RESOY_DEFAULT)
 
 ~LeDraw ()
 
void setContext (LeDrawingContext context)
 Set the graphic context where to draw. More...
 
void setPixels (const void *data)
 Set the graphic content of the context. More...
 

Public Attributes

int width
 
int height
 

Detailed Description

Create and handle an OS native drawing context.

Constructor & Destructor Documentation

LeDraw::LeDraw ( LeDrawingContext  context,
int  width = LE_RESOX_DEFAULT,
int  heigth = LE_RESOY_DEFAULT 
)
LeDraw::~LeDraw ( )

Member Function Documentation

void LeDraw::setContext ( LeDrawingContext  context)

Set the graphic context where to draw.

Parameters
[in]contextgraphic context
void LeDraw::setPixels ( const void *  data)

Set the graphic content of the context.

Parameters
[in]datapointer to an array of pixels

Member Data Documentation

int LeDraw::height

Height of context (in pixels)

int LeDraw::width

Width of context (in pixels)


The documentation for this class was generated from the following files: