Pixel Dust Game Engine  v0.9.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
pdg Namespace Reference

Namespaces

namespace  EasingFuncIds
 
namespace  Graphics
 

Classes

class  Animated
 
struct  Color
 
class  ConfigManager
 
class  OffsetT
 
class  PointT
 
class  VectorT
 
class  RectT
 
class  QuadT
 
class  RotatedRectT
 
class  Deserializer
 
class  EventEmitter
 Distributes events to event handlers. More...
 
class  EventManager
 
struct  StartupInfo
 
struct  ShutdownInfo
 
struct  TimerInfo
 
struct  KeyInfo
 
struct  ModifierKeyInfo
 
struct  PortResizeInfo
 
struct  PortDrawInfo
 
struct  SoundEventInfo
 
struct  SpriteAnimateInfo
 
struct  SpriteLayerInfo
 
class  Font
 
class  GraphicsManager
 
class  IAnimationHelper
 
class  out_of_data
 
class  sync_error
 
class  bad_tag
 
class  IDeserializer
 
class  IEventHandler
 
class  Image
 
class  ImageStrip
 
class  Internet
 
class  unknown_object
 
class  ISerializer
 
class  ISpriteCollideHelper
 
class  ISpriteDrawHelper
 
class  LogManager
 
struct  MemStats
 
class  CriticalSection
 
class  Mutex
 
class  AutoCriticalSection
 
class  timeout
 
class  AutoMutex
 
class  AutoMutexNoThrow
 
struct  NetConnect
 
struct  NetDisconnect
 
struct  NetData
 
struct  NetError
 
class  NetworkManager
 
struct  FindDataT
 
class  OS
 
class  PDGException
 
class  Port
 
class  RefCountedObj
 
class  ResourceManager
 
class  Semaphore
 
class  ISerializable
 Represents an object which can be serialized. More...
 
class  Serializable
 
class  Serializer
 A container for static methods that do the actual serialization. More...
 
class  Singleton
 
class  Sound
 
class  SoundManager
 
class  Spline
 
class  Sprite
 
class  SpriteLayer
 
class  TileLayer
 
class  TimerException
 
class  TimerManager
 
class  UserData
 

Typedefs

typedef OffsetT< float > Offset
 
typedef PointT< float > Point
 
typedef VectorT< float > Vector
 
typedef RectT< float > Rect
 
typedef QuadT< float > Quad
 
typedef RotatedRectT< float > RotatedRect
 
typedef float(* EasingFunc )(ms_delta timeOffsetMs, float beginVal, float change, ms_delta durationMs)
 
typedef uint16 utf16char
 
typedef uint32 utf32char
 
typedef bool(* ReceiveFunc )(int status, int httpResultCode, char *dataPtr, size_t dataSize, void *context)
 
typedef bool(* GatekeeperFunc )(NetData *ndptr, void *gateContext)
 
typedef std::basic_string
< utf16char
utf16string
 
typedef void(* UserFreeFuncT )(void *data)
 

Enumerations

enum  {
  lftTop = 0,
  rgtTop = 1,
  rgtBot = 2,
  lftBot = 3
}
 
enum  { all_events = 0 }
 
enum  {
  eventType_Startup = 1,
  eventType_Shutdown = 2,
  eventType_Timer = 3,
  eventType_KeyDown = 4,
  eventType_KeyUp = 5,
  eventType_KeyPress = 6,
  eventType_MouseDown = 7,
  eventType_MouseUp = 8,
  eventType_MouseMove = 9,
  eventType_NetConnect = 10,
  eventType_NetDisconnect = 11,
  eventType_NetData = 12,
  eventType_NetError = 13,
  eventType_SoundEvent = 14,
  eventType_PortResized = 15,
  eventType_ScrollWheel = 16,
  eventType_SpriteAnimate = 17,
  eventType_SpriteLayer = 18,
  eventType_SpriteTouch = 19,
  eventType_SpriteCollide = 20,
  eventType_SpriteBreak = 21,
  eventType_MouseEnter = 22,
  eventType_MouseLeave = 23,
  eventType_PortDraw = 24,
  eventType_last
}
 
enum  {
  key_Break = 1,
  key_Home = 2,
  key_End = 3,
  key_Clear = 4,
  key_Help = 5,
  key_Pause = 6,
  key_Mute = 7,
  key_Backspace = 8,
  key_Delete = 127,
  key_Tab = 9,
  key_PageUp = 11,
  key_PageDown = 12,
  key_Return = 13,
  key_Enter = key_Return,
  key_F1 = 14,
  key_F2 = 15,
  key_F3 = 16,
  key_F4 = 17,
  key_F5 = 18,
  key_F6 = 19,
  key_F7 = 20,
  key_F8 = 21,
  key_F9 = 22,
  key_F10 = 23,
  key_F11 = 24,
  key_F12 = 25,
  key_FirstF = key_F1,
  key_LastF = key_F12,
  key_Insert = 26,
  key_Escape = 27,
  key_LeftArrow = 28,
  key_RightArrow = 29,
  key_UpArrow = 30,
  key_DownArrow = 31,
  key_FirstPrintable = 32
}
 
enum  {
  screenPos_Normal,
  screenPos_Rotated180,
  screenPos_Rotated90Clockwise,
  screenPos_Rotated90CounterClockwise,
  screenPos_FaceUp,
  screenPos_FaceDown
}
 
enum  {
  soundEvent_DonePlaying,
  soundEvent_Looping,
  soundEvent_FailedToPlay
}
 
enum  {
  ser_Positions = 1 << 0,
  ser_ZOrder = 1 << 1,
  ser_Sizes = 1 << 2,
  ser_Animations = 1 << 3,
  ser_Motion = 1 << 4,
  ser_Forces = 1 << 5,
  ser_Physics = 1 << 6,
  ser_LayerDraw = 1 << 7,
  ser_ImageRefs = 1 << 8,
  ser_SCMLRefs = 1 << 9,
  ser_HelperRefs = 1 << 10,
  ser_ImageData = 1 << 11,
  ser_SCMLData = 1 << 12,
  ser_HelperObjs = 1 << 13,
  ser_InitialData = 1 << 14,
  ser_Micro = ser_Positions | ser_ZOrder,
  ser_Update = ser_Micro | ser_Sizes | ser_Animations | ser_Motion | ser_Forces | ser_Physics,
  ser_Full = ser_Update | ser_ImageRefs | ser_SCMLRefs | ser_HelperRefs | ser_InitialData
}
 
enum  {
  timer_OneShot = true,
  timer_Repeating = false,
  timer_Never = 0xffffffff
}
 
enum  FreeDataT {
  data_DoNothing = 0,
  data_Free = 1,
  data_Delete = 2,
  data_ArrayDelete = 3,
  data_CallUserFunc = 4,
  obj_RefCountedRelease = 5
}
 

Functions

float linearTween (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInQuad (ms_delta ut, float b, float c, ms_delta ud)
 
float easeOutQuad (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInOutQuad (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInCubic (ms_delta ut, float b, float c, ms_delta ud)
 
float easeOutCubic (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInOutCubic (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInQuart (ms_delta ut, float b, float c, ms_delta ud)
 
float easeOutQuart (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInOutQuart (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInQuint (ms_delta ut, float b, float c, ms_delta ud)
 
float easeOutQuint (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInOutQuint (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInSine (ms_delta ut, float b, float c, ms_delta ud)
 
float easeOutSine (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInOutSine (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInExpo (ms_delta ut, float b, float c, ms_delta ud)
 
float easeOutExpo (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInOutExpo (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInCirc (ms_delta ut, float b, float c, ms_delta ud)
 
float easeOutCirc (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInOutCirc (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInBounce (ms_delta ut, float b, float c, ms_delta ud)
 
float easeOutBounce (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInOutBounce (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInBack (ms_delta ut, float b, float c, ms_delta ud)
 
float easeOutBack (ms_delta ut, float b, float c, ms_delta ud)
 
float easeInOutBack (ms_delta ut, float b, float c, ms_delta ud)
 
uint8 easingFuncToId (EasingFunc func)
 
EasingFunc easingIdToFunc (uint8 id)
 
const char * getEventName (long eventType)
 
struct KeyPressInfo PDG_SUBCLASS_OF (ModifierKeyInfo)
 
struct MouseTrackingInfo PDG_SUBCLASS_OF (MouseInfo)
 
struct SpriteCollideInfo PDG_SUBCLASS_OF (SpriteAnimateInfo)
 
SpriteLayercreateSpriteLayer (Port *port=0)
 
void cleanupSpriteLayer (SpriteLayer *layer)
 
TileLayercreateTileLayer (Port *port)
 
TileLayercreateTileLayer ()
 

Variables

EasingFunc gEasingFunctions [NUM_EASING_FUNCTIONS]
 
int gNumCustomEasings
 
MemStats gSoundStats
 

Typedef Documentation

typedef float(* EasingFunc)(ms_delta timeOffsetMs, float beginVal, float change, ms_delta durationMs)
typedef bool(* GatekeeperFunc)(NetData *ndptr, void *gateContext)
typedef OffsetT<float> Offset
typedef PointT< float > Point
typedef QuadT<float> Quad
typedef bool(* ReceiveFunc)(int status, int httpResultCode, char *dataPtr, size_t dataSize, void *context)
typedef RectT<float> Rect
typedef RotatedRectT<float> RotatedRect
typedef void(* UserFreeFuncT)(void *data)
typedef uint16 utf16char
typedef std::basic_string<utf16char> utf16string
typedef uint32 utf32char
typedef VectorT<float> Vector

Enumeration Type Documentation

anonymous enum
Enumerator:
lftTop 
rgtTop 
rgtBot 
lftBot 
anonymous enum
Enumerator:
ser_Positions 
ser_ZOrder 
ser_Sizes 
ser_Animations 
ser_Motion 
ser_Forces 
ser_Physics 
ser_LayerDraw 
ser_ImageRefs 
ser_SCMLRefs 
ser_HelperRefs 
ser_ImageData 
ser_SCMLData 
ser_HelperObjs 
ser_InitialData 
ser_Micro 
ser_Update 
ser_Full 
anonymous enum
Enumerator:
timer_OneShot 
timer_Repeating 
timer_Never 
anonymous enum
Enumerator:
all_events 
anonymous enum
Enumerator:
screenPos_Normal 
screenPos_Rotated180 
screenPos_Rotated90Clockwise 
screenPos_Rotated90CounterClockwise 
screenPos_FaceUp 
screenPos_FaceDown 
enum FreeDataT
Enumerator:
data_DoNothing 
data_Free 
data_Delete 
data_ArrayDelete 
data_CallUserFunc 
obj_RefCountedRelease 

Function Documentation

void pdg::cleanupSpriteLayer ( SpriteLayer *  layer)
SpriteLayer* pdg::createSpriteLayer ( Port *  port = 0)
TileLayer* pdg::createTileLayer ( Port *  port)
TileLayer* pdg::createTileLayer ( )
float pdg::easeInBack ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInBounce ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInCirc ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInCubic ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInExpo ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInOutBack ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInOutBounce ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInOutCirc ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInOutCubic ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInOutExpo ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInOutQuad ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInOutQuart ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInOutQuint ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInOutSine ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInQuad ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInQuart ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInQuint ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeInSine ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeOutBack ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeOutBounce ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeOutCirc ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeOutCubic ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeOutExpo ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeOutQuad ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeOutQuart ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeOutQuint ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
float pdg::easeOutSine ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)
uint8 pdg::easingFuncToId ( EasingFunc  func)
EasingFunc pdg::easingIdToFunc ( uint8  id)
const char* pdg::getEventName ( long  eventType)
float pdg::linearTween ( ms_delta  ut,
float  b,
float  c,
ms_delta  ud 
)

Variable Documentation

EasingFunc gEasingFunctions[NUM_EASING_FUNCTIONS]
int gNumCustomEasings
MemStats gSoundStats