Main Page | Namespace List | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

NablaPS2Utils Namespace Reference

This namespace is used to avoid name clashing. More...


Classes

struct  _tagAnalogButton
 Structure used to hold button status. More...

struct  _tagPadReadDataType
 Used to easy reading into array of byte read from the pad. More...

class  JoypadManager
 This class is a Pad manager, helping the user to access pad ioctl function and reading data. More...

struct  TextureFileHeader
 Structure placed at the header of texture file. More...

class  TextureManager
 Class used to manage texture on PS2. More...


Typedefs

typedef NablaPS2Utils::_tagAnalogButton AnalogButton
 Structure used to hold button status.

typedef NablaPS2Utils::_tagPadReadDataType PadDataType
 Used to easy reading into array of byte read from the pad.


Functions

int GetPixelSizeInBytes (PSM_t Format)
 


Variables

const char *const  JoyDev [] = {JOYPAD_DEV0, JOYPAD_DEV1}
NablaPS2Utils::TextureFileHeader packed
 Structure placed at the header of texture file.


Typedef Documentation

typedef struct NablaPS2Utils::_tagAnalogButton NablaPS2Utils::AnalogButton
 

Remember that some button can be analog so a pressure value can be associated to them, other button can only have 0 or 1 value. Pressure is normalized in range [-1, 1].

typedef struct NablaPS2Utils::_tagPadReadDataType NablaPS2Utils::PadDataType
 

Pay particular attenction because DButtons is two byte data and the structure is constructed with bitset, since PS2 is little endian, byte 1 and 2 are swapped so be sure to swap button index in JoypadConst.h


Variable Documentation

struct NablaPS2Utils::TextureFileHeader NablaPS2Utils::packed
 

Remember to add the packed attribute, if not the structure cannot be read from file with a single fread call.


Generated on Wed Jan 7 19:12:18 2004 for PS2 Tutorial by doxygen 1.3.4