arsa  2.7
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
cdx.h File Reference
#include "arsa_begin_code.h"
#include <ctype.h>
#include <irrlicht.h>
#include <SDL/SDL.h>
#include "ctimer.h"

Go to the source code of this file.

Classes

struct  POINT
 
struct  RECT
 
struct  POINTFLOAT
 
class  CDXScreen
 

Namespaces

 irr
 Everything in the Irrlicht Engine can be found in this namespace.
 
 irr::arsa
 

Macros

#define CDX_VERSION_MAJOR   1
 CDX Version. More...
 
#define CDX_VERSION_MINOR   0
 
#define CDX_VERSION_REVISION   0
 
#define CDX_SDK_VERSION   "1.0.0"
 
#define CDX_Color   irr::video::SColor
 2015_7_21 add type for cdx port More...
 
#define CDXSurface   irr::video::ITexture
 
#define CDXSpritePool   void
 
#define CDXBLT_BLK   0
 CDX BLT types. More...
 
#define CDXBLT_BLKALPHA   1
 
#define CDXBLT_BLKALPHAFAST   2
 
#define CDXBLT_BLKSCALED   3
 
#define CDXBLT_BLKSHADOW   4
 
#define CDXBLT_BLKSHADOWFAST   5
 
#define CDXBLT_BLKROTATED   6
 
#define CDXBLT_BLKROTOZOOM   7
 
#define CDXBLT_BLKHFLIP   8
 
#define CDXBLT_BLKVFLIP   9
 
#define CDXBLT_BLKSTRETCHED   10
 
#define CDXBLT_TRANS   100
 
#define CDXBLT_TRANSALPHA   101
 
#define CDXBLT_TRANSALPHAFAST   102
 
#define CDXBLT_TRANSSCALED   103
 
#define CDXBLT_TRANSSHADOW   104
 
#define CDXBLT_TRANSSHADOWFAST   105
 
#define CDXBLT_TRANSROTATED   106
 
#define CDXBLT_TRANSROTOZOOM   107
 
#define CDXBLT_TRANSHFLIP   108
 
#define CDXBLT_TRANSVFLIP   109
 
#define CDXBLT_TRANSSTRETCHED   110
 
#define CDXBLT_TRANSSHADOWFASTHFLIP   111
 
#define CDXBLT_TRANSVHFLIP   112
 
#define CDXBLT_TRANSALPHAMASK   120
 
#define CDXMEM_VIDEOONLY   0
 CDX memory types. More...
 
#define CDXMEM_SYSTEMONLY   1
 
#define CDXMEM_VIDTHENSYS   2
 
#define CDXSIMD_NONE   0
 CDX SIMD instuction set types. More...
 
#define CDXSIMD_MMX   2
 
#define CDXSIMD_3DNOW   4
 
#define _MAX_PATH   256 /*! max. length of full pathname */
 
#define _MAX_DIR   32 /*! max. length of path component */
 
#define _MAX_FNAME   64 /*! max. length of file name component */
 
#define CONST   const
 
#define BYTE   unsigned char
 
#define UCHAR   unsigned char
 
#define WORD   unsigned int
 
#define UINT   unsigned int
 
#define BOOL   unsigned int
 
#define UINT32   unsigned long
 
#define DWORD   unsigned long
 
#define CHAR   char
 
#define LONG   long
 
#define FLOAT   float
 
#define LPCTSTR   char*
 
#define FW_NORMAL   400
 
#define FALSE   0
 
#define TRUE   1
 
#define _MAXNAME   256
 max name of string More...
 
#define _MAXNAME30   30
 
#define SkipWhite(p)   while ( isspace(*p) ) p++
 
#define SAFEDELETE(x)   if(x != NULL) { delete x; x = NULL; }
 
#define DELETEARRAY(x)   if(x != NULL) { delete [] x; x = NULL; }
 

Typedefs

typedef irr::io::path CB_CDX_PRE_NAME(const char *filename)
 pre name variable & function More...
 
typedef struct POINT POINT
 
typedef struct POINTPPOINT
 
typedef struct RECT RECT
 
typedef struct RECTPRECT
 
typedef struct POINTFLOAT POINTFLOAT
 
typedef struct POINTFLOATPPOINTFLOAT
 

Enumerations

enum  E_TEXT_ALIGNMENT { ETA_LEFT = 0, ETA_CENTER, ETA_RIGHT, ETA_COUNT }
 

Functions

ARSA_API void ARSACALLCONV CDX_SET_PRE_NAME (CB_CDX_PRE_NAME *func)
 
ARSA_API irr::io::path ARSACALLCONV cdx_exist_filename (const irr::io::path &folder, const char *filename)
 
ARSA_API void ARSACALLCONV CDXError (char *str,...)
 
ARSA_API DWORD ARSACALLCONV _timeGetTime (void)
 
ARSA_API char *ARSACALLCONV stristr (const char *StrBase, const char *SubBase)
 
ARSA_API bool ARSACALLCONV IntersectRect (PRECT Dest, PRECT Rect1, PRECT Rect2)
 
ARSA_API bool ARSACALLCONV SetRect (PRECT lprc, int xLeft, int yTop, int xRight, int yBottom)
 
ARSA_API bool ARSACALLCONV PtInRect (CONST RECT *lprc, POINT pt)
 
ARSA_API void ARSACALLCONV Sleep (DWORD dwMilliseconds)
 
ARSA_API irr::u32 ARSACALLCONV RGB (int r, int g, int b)
 
ARSA_API void ARSACALLCONV TextPsdColor (irr::arsa::CARSAPsd *psd, const irr::core::stringc &layer_name, irr::gui::IGUIFont *_font, int r, int g, int b, int a, int alignment, char *pString,...)
 
ARSA_API void ARSACALLCONV TextPsd (irr::arsa::CARSAPsd *psd, const irr::core::stringc &layer_name, irr::gui::IGUIFont *_font, char *pString,...)
 
ARSA_API void ARSACALLCONV TextPsdColor (const irr::core::stringc &layer_name, int r, int g, int b, int a, char *pString,...)
 
ARSA_API void ARSACALLCONV TextPsd (const irr::core::stringc &layer_name, char *pString,...)
 
ARSA_API void ARSACALLCONV TextXY (irr::gui::IGUIFont *_font, int x, int y, int r, int g, int b, int a, int alignment, char *pString,...)
 
ARSA_API void ARSACALLCONV TextXY (irr::gui::IGUIFont *_font, int x, int y, int r, int g, int b, int a, char *pString,...)
 
ARSA_API void ARSACALLCONV TextXY (void *unused, int x, int y, int r, int g, int b, int a, char *pString,...)
 
ARSA_API void ARSACALLCONV TextXY (int x, int y, int r, int g, int b, int a, char *pString,...)
 
ARSA_API void ARSACALLCONV TextXY (int x, int y, irr::u32 Col, char *pString,...)
 
ARSA_API void ARSACALLCONV Fill (irr::u32 Col)
 
ARSA_API void ARSACALLCONV PutPixel (int X, int Y, irr::u32 Col, int Thickness=2)
 
ARSA_API void ARSACALLCONV rectangleRGBA (void *unused, int x1, int y1, int x2, int y2, int r, int g, int b, int a)
 
ARSA_API void ARSACALLCONV boxRGBA (void *unused, int x1, int y1, int x2, int y2, int r, int g, int b, int a)
 
ARSA_API void ARSACALLCONV lineRGBA (void *unused, int x1, int y1, int x2, int y2, int r, int g, int b, int a)
 

Macro Definition Documentation

◆ _MAX_DIR

#define _MAX_DIR   32 /*! max. length of path component */

Definition at line 99 of file cdx.h.

◆ _MAX_FNAME

#define _MAX_FNAME   64 /*! max. length of file name component */

Definition at line 103 of file cdx.h.

◆ _MAX_PATH

#define _MAX_PATH   256 /*! max. length of full pathname */

Definition at line 95 of file cdx.h.

◆ _MAXNAME

#define _MAXNAME   256

max name of string

Definition at line 179 of file cdx.h.

◆ _MAXNAME30

#define _MAXNAME30   30

Definition at line 183 of file cdx.h.

◆ BOOL

#define BOOL   unsigned int

Definition at line 160 of file cdx.h.

◆ BYTE

#define BYTE   unsigned char

Definition at line 156 of file cdx.h.

◆ CDX_Color

#define CDX_Color   irr::video::SColor

2015_7_21 add type for cdx port

Definition at line 33 of file cdx.h.

◆ CDX_SDK_VERSION

#define CDX_SDK_VERSION   "1.0.0"

Definition at line 8 of file cdx.h.

◆ CDX_VERSION_MAJOR

#define CDX_VERSION_MAJOR   1

CDX Version.

Definition at line 5 of file cdx.h.

◆ CDX_VERSION_MINOR

#define CDX_VERSION_MINOR   0

Definition at line 6 of file cdx.h.

◆ CDX_VERSION_REVISION

#define CDX_VERSION_REVISION   0

Definition at line 7 of file cdx.h.

◆ CDXBLT_BLK

#define CDXBLT_BLK   0

CDX BLT types.

Definition at line 39 of file cdx.h.

◆ CDXBLT_BLKALPHA

#define CDXBLT_BLKALPHA   1

Definition at line 40 of file cdx.h.

◆ CDXBLT_BLKALPHAFAST

#define CDXBLT_BLKALPHAFAST   2

Definition at line 41 of file cdx.h.

◆ CDXBLT_BLKHFLIP

#define CDXBLT_BLKHFLIP   8

Definition at line 47 of file cdx.h.

◆ CDXBLT_BLKROTATED

#define CDXBLT_BLKROTATED   6

Definition at line 45 of file cdx.h.

◆ CDXBLT_BLKROTOZOOM

#define CDXBLT_BLKROTOZOOM   7

Definition at line 46 of file cdx.h.

◆ CDXBLT_BLKSCALED

#define CDXBLT_BLKSCALED   3

Definition at line 42 of file cdx.h.

◆ CDXBLT_BLKSHADOW

#define CDXBLT_BLKSHADOW   4

Definition at line 43 of file cdx.h.

◆ CDXBLT_BLKSHADOWFAST

#define CDXBLT_BLKSHADOWFAST   5

Definition at line 44 of file cdx.h.

◆ CDXBLT_BLKSTRETCHED

#define CDXBLT_BLKSTRETCHED   10

Definition at line 49 of file cdx.h.

◆ CDXBLT_BLKVFLIP

#define CDXBLT_BLKVFLIP   9

Definition at line 48 of file cdx.h.

◆ CDXBLT_TRANS

#define CDXBLT_TRANS   100

Definition at line 51 of file cdx.h.

◆ CDXBLT_TRANSALPHA

#define CDXBLT_TRANSALPHA   101

Definition at line 52 of file cdx.h.

◆ CDXBLT_TRANSALPHAFAST

#define CDXBLT_TRANSALPHAFAST   102

Definition at line 53 of file cdx.h.

◆ CDXBLT_TRANSALPHAMASK

#define CDXBLT_TRANSALPHAMASK   120

Definition at line 65 of file cdx.h.

◆ CDXBLT_TRANSHFLIP

#define CDXBLT_TRANSHFLIP   108

Definition at line 59 of file cdx.h.

◆ CDXBLT_TRANSROTATED

#define CDXBLT_TRANSROTATED   106

Definition at line 57 of file cdx.h.

◆ CDXBLT_TRANSROTOZOOM

#define CDXBLT_TRANSROTOZOOM   107

Definition at line 58 of file cdx.h.

◆ CDXBLT_TRANSSCALED

#define CDXBLT_TRANSSCALED   103

Definition at line 54 of file cdx.h.

◆ CDXBLT_TRANSSHADOW

#define CDXBLT_TRANSSHADOW   104

Definition at line 55 of file cdx.h.

◆ CDXBLT_TRANSSHADOWFAST

#define CDXBLT_TRANSSHADOWFAST   105

Definition at line 56 of file cdx.h.

◆ CDXBLT_TRANSSHADOWFASTHFLIP

#define CDXBLT_TRANSSHADOWFASTHFLIP   111

Definition at line 62 of file cdx.h.

◆ CDXBLT_TRANSSTRETCHED

#define CDXBLT_TRANSSTRETCHED   110

Definition at line 61 of file cdx.h.

◆ CDXBLT_TRANSVFLIP

#define CDXBLT_TRANSVFLIP   109

Definition at line 60 of file cdx.h.

◆ CDXBLT_TRANSVHFLIP

#define CDXBLT_TRANSVHFLIP   112

Definition at line 63 of file cdx.h.

◆ CDXMEM_SYSTEMONLY

#define CDXMEM_SYSTEMONLY   1

Definition at line 69 of file cdx.h.

◆ CDXMEM_VIDEOONLY

#define CDXMEM_VIDEOONLY   0

CDX memory types.

Definition at line 68 of file cdx.h.

◆ CDXMEM_VIDTHENSYS

#define CDXMEM_VIDTHENSYS   2

Definition at line 70 of file cdx.h.

◆ CDXSIMD_3DNOW

#define CDXSIMD_3DNOW   4

Definition at line 75 of file cdx.h.

◆ CDXSIMD_MMX

#define CDXSIMD_MMX   2

Definition at line 74 of file cdx.h.

◆ CDXSIMD_NONE

#define CDXSIMD_NONE   0

CDX SIMD instuction set types.

Definition at line 73 of file cdx.h.

◆ CDXSpritePool

#define CDXSpritePool   void

Definition at line 36 of file cdx.h.

◆ CDXSurface

#define CDXSurface   irr::video::ITexture

Definition at line 34 of file cdx.h.

◆ CHAR

#define CHAR   char

Definition at line 163 of file cdx.h.

◆ CONST

#define CONST   const

Definition at line 155 of file cdx.h.

◆ DELETEARRAY

#define DELETEARRAY (   x)    if(x != NULL) { delete [] x; x = NULL; }

Definition at line 244 of file cdx.h.

◆ DWORD

#define DWORD   unsigned long

Definition at line 162 of file cdx.h.

◆ FALSE

#define FALSE   0

Definition at line 170 of file cdx.h.

◆ FLOAT

#define FLOAT   float

Definition at line 165 of file cdx.h.

◆ FW_NORMAL

#define FW_NORMAL   400

Definition at line 167 of file cdx.h.

◆ LONG

#define LONG   long

Definition at line 164 of file cdx.h.

◆ LPCTSTR

#define LPCTSTR   char*

Definition at line 166 of file cdx.h.

◆ SAFEDELETE

#define SAFEDELETE (   x)    if(x != NULL) { delete x; x = NULL; }

Definition at line 240 of file cdx.h.

◆ SkipWhite

#define SkipWhite (   p)    while ( isspace(*p) ) p++

Definition at line 236 of file cdx.h.

◆ TRUE

#define TRUE   1

Definition at line 174 of file cdx.h.

◆ UCHAR

#define UCHAR   unsigned char

Definition at line 157 of file cdx.h.

◆ UINT

#define UINT   unsigned int

Definition at line 159 of file cdx.h.

◆ UINT32

#define UINT32   unsigned long

Definition at line 161 of file cdx.h.

◆ WORD

#define WORD   unsigned int

Definition at line 158 of file cdx.h.

Typedef Documentation

◆ CB_CDX_PRE_NAME

typedef irr::io::path CB_CDX_PRE_NAME(const char *filename)

pre name variable & function

Definition at line 86 of file cdx.h.

◆ POINT

typedef struct POINT POINT

◆ POINTFLOAT

typedef struct POINTFLOAT POINTFLOAT

◆ PPOINT

typedef struct POINT * PPOINT

◆ PPOINTFLOAT

typedef struct POINTFLOAT * PPOINTFLOAT

◆ PRECT

typedef struct RECT * PRECT

◆ RECT

typedef struct RECT RECT

Enumeration Type Documentation

◆ E_TEXT_ALIGNMENT

Enumerator
ETA_LEFT 
ETA_CENTER 
ETA_RIGHT 
ETA_COUNT 

Definition at line 77 of file cdx.h.

78 {
79  ETA_LEFT = 0,
80  ETA_CENTER,
81  ETA_RIGHT,
82  ETA_COUNT
83 };
Definition: cdx.h:80
Definition: cdx.h:79
Definition: cdx.h:82
Definition: cdx.h:81

Function Documentation

◆ _timeGetTime()

ARSA_API DWORD ARSACALLCONV _timeGetTime ( void  )

◆ boxRGBA()

ARSA_API void ARSACALLCONV boxRGBA ( void unused,
int  x1,
int  y1,
int  x2,
int  y2,
int  r,
int  g,
int  b,
int  a 
)

◆ cdx_exist_filename()

ARSA_API irr::io::path ARSACALLCONV cdx_exist_filename ( const irr::io::path folder,
const char *  filename 
)

◆ CDX_SET_PRE_NAME()

ARSA_API void ARSACALLCONV CDX_SET_PRE_NAME ( CB_CDX_PRE_NAME func)

◆ CDXError()

ARSA_API void ARSACALLCONV CDXError ( char *  str,
  ... 
)

◆ Fill()

◆ IntersectRect()

ARSA_API bool ARSACALLCONV IntersectRect ( PRECT  Dest,
PRECT  Rect1,
PRECT  Rect2 
)

◆ lineRGBA()

ARSA_API void ARSACALLCONV lineRGBA ( void unused,
int  x1,
int  y1,
int  x2,
int  y2,
int  r,
int  g,
int  b,
int  a 
)

◆ PtInRect()

ARSA_API bool ARSACALLCONV PtInRect ( CONST RECT lprc,
POINT  pt 
)

◆ PutPixel()

ARSA_API void ARSACALLCONV PutPixel ( int  X,
int  Y,
irr::u32  Col,
int  Thickness = 2 
)

◆ rectangleRGBA()

ARSA_API void ARSACALLCONV rectangleRGBA ( void unused,
int  x1,
int  y1,
int  x2,
int  y2,
int  r,
int  g,
int  b,
int  a 
)

◆ RGB()

ARSA_API irr::u32 ARSACALLCONV RGB ( int  r,
int  g,
int  b 
)

◆ SetRect()

ARSA_API bool ARSACALLCONV SetRect ( PRECT  lprc,
int  xLeft,
int  yTop,
int  xRight,
int  yBottom 
)

◆ Sleep()

ARSA_API void ARSACALLCONV Sleep ( DWORD  dwMilliseconds)

◆ stristr()

ARSA_API char* ARSACALLCONV stristr ( const char *  StrBase,
const char *  SubBase 
)

◆ TextPsd() [1/2]

ARSA_API void ARSACALLCONV TextPsd ( irr::arsa::CARSAPsd psd,
const irr::core::stringc layer_name,
irr::gui::IGUIFont _font,
char *  pString,
  ... 
)

◆ TextPsd() [2/2]

ARSA_API void ARSACALLCONV TextPsd ( const irr::core::stringc layer_name,
char *  pString,
  ... 
)

◆ TextPsdColor() [1/2]

ARSA_API void ARSACALLCONV TextPsdColor ( irr::arsa::CARSAPsd psd,
const irr::core::stringc layer_name,
irr::gui::IGUIFont _font,
int  r,
int  g,
int  b,
int  a,
int  alignment,
char *  pString,
  ... 
)

◆ TextPsdColor() [2/2]

ARSA_API void ARSACALLCONV TextPsdColor ( const irr::core::stringc layer_name,
int  r,
int  g,
int  b,
int  a,
char *  pString,
  ... 
)

◆ TextXY() [1/5]

ARSA_API void ARSACALLCONV TextXY ( irr::gui::IGUIFont _font,
int  x,
int  y,
int  r,
int  g,
int  b,
int  a,
int  alignment,
char *  pString,
  ... 
)

◆ TextXY() [2/5]

ARSA_API void ARSACALLCONV TextXY ( irr::gui::IGUIFont _font,
int  x,
int  y,
int  r,
int  g,
int  b,
int  a,
char *  pString,
  ... 
)

◆ TextXY() [3/5]

ARSA_API void ARSACALLCONV TextXY ( void unused,
int  x,
int  y,
int  r,
int  g,
int  b,
int  a,
char *  pString,
  ... 
)

◆ TextXY() [4/5]

ARSA_API void ARSACALLCONV TextXY ( int  x,
int  y,
int  r,
int  g,
int  b,
int  a,
char *  pString,
  ... 
)

◆ TextXY() [5/5]

ARSA_API void ARSACALLCONV TextXY ( int  x,
int  y,
irr::u32  Col,
char *  pString,
  ... 
)