Util Class Reference

Additionnal functions. More...

#include <Util.h>

List of all members.

Public Member Functions

void initRandomSeed (void) const
 init random seed
double random (void) const
 get a random number between 0 and 1
const char * testExistFile (const char *filePath) const
irr::video::ITexture * getTexture (const char *filePath) const
 Get texture (using testExistFile).
irr::video::ITexture * getTexture (const char *file_path, irr::video::SColor colorkey) const
 Get texture (using testExistFile) with color key.
void fade (irr::video::SColor color, int time) const
 fade the window during the time "time"
irr::gui::IGUIFont * loadFont (const char *fontPathName)
 load a font and set it as the environment skin font (using testExistFile)
irr::gui::IGUIFont * getLastLoadedFont (void) const
 get the last font loaded with loadFont
irr::gui::IGUIStaticText * createText (const irr::core::stringw text, const Sys &sys, int x, int y, irr::video::SColor color=irr::video::SColor(255, 255, 255, 255)) const
 create a IGUIStaticText on the window without border and with wordwrap
char * convertStringwToChar (irr::core::stringw str) const
 convert stringw to char *
irr::video::ITexture * getRotated180Texture (irr::video::ITexture *tex) const
void draw2DImage (irr::video::ITexture *texture, const irr::core::position2d< irr::s32 > &destPos) const
 draw a 2d image on the screen, with alpha channel activated
irr::video::E_DRIVER_TYPE getDriverType (int num) const
 convert a number to a driver type
int getDriverNum (irr::video::E_DRIVER_TYPE type) const
 convert a driver type to a number
 ~Util ()
 Destructor.

Friends

void initIrrsimple (void)
 init all - first function to call before calling the others


Detailed Description

Additionnal functions.


Constructor & Destructor Documentation

Util::~Util  ) 
 

Destructor.


Member Function Documentation

char* Util::convertStringwToChar irr::core::stringw  str  )  const
 

convert stringw to char *

irr::gui::IGUIStaticText* Util::createText const irr::core::stringw  text,
const Sys sys,
int  x,
int  y,
irr::video::SColor  color = irr::video::SColor(255, 255, 255, 255)
const
 

create a IGUIStaticText on the window without border and with wordwrap

void Util::draw2DImage irr::video::ITexture *  texture,
const irr::core::position2d< irr::s32 > &  destPos
const
 

draw a 2d image on the screen, with alpha channel activated

void Util::fade irr::video::SColor  color,
int  time
const
 

fade the window during the time "time"

int Util::getDriverNum irr::video::E_DRIVER_TYPE  type  )  const
 

convert a driver type to a number

video::E_DRIVER_TYPE Util::getDriverType int  num  )  const
 

convert a number to a driver type

numbers corresponding to drivers :

  • 0 : NULL
  • 1 : SOFTWARE
  • 2 : OPENGL
  • 3 : DIRECT3D8
  • 4 : DIRECT3D9
  • 5 : DIREC3D8 if WIN32 is defined (compilation under Windows), OPENGL else
  • 6 : DIREC3D9 if WIN32 is defined (compilation under Windows), OPENGL else Warning : Direct3D modes require Irrlicht being compiled with Direct3D support

IGUIFont * Util::getLastLoadedFont void   )  const
 

get the last font loaded with loadFont

irr::video::ITexture* Util::getRotated180Texture irr::video::ITexture *  tex  )  const
 

create a duplicated texture rotated of 180 degree nb : DO NOT USE EXCEPT WITH OPENGL DRIVER

irr::video::ITexture * Util::getTexture const char *  file_path,
irr::video::SColor  colorkey
const
 

Get texture (using testExistFile) with color key.

irr::video::ITexture * Util::getTexture const char *  filePath  )  const
 

Get texture (using testExistFile).

void Util::initRandomSeed void   )  const
 

init random seed

IGUIFont * Util::loadFont const char *  fontPathName  ) 
 

load a font and set it as the environment skin font (using testExistFile)

double Util::random void   )  const
 

get a random number between 0 and 1

const char * Util::testExistFile const char *  filePath  )  const
 

test if a file exists return the file if it exists print error and stop error messge if not


Friends And Related Function Documentation

void initIrrsimple void   )  [friend]
 

init all - first function to call before calling the others


The documentation for this class was generated from the following files:
Generated on Sun Aug 6 10:28:53 2006 for irrsimple by  doxygen 1.4.6-NO