cs sdk v 1.14 released

Home  |  Product  |  Documents  |  Tutorials  |  FAQ |   Download  |   Forum |   Contacts  |   Link  


  Cross Suit

 Cross Suit SDK

 Documents
      classes
 Starting...
           Tutorials

 LUA tutorials

   Support

  Forum
  q&a

 Product parts

 Virtual File system

 Virtual Render
 Virtual Machine
   

  Demo Games

   

 3D Engine

  gvSystem(dx9)

 Link

 

 

gv_types.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <assert.h>
#include "gm_vb.h"

Include dependency graph for gv_types.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IAlloc
class  vertex3
struct  gvVector4
class  VECTOR2

Defines

#define true   1
#define false   0
#define g_PI   ((float) 3.141592654f)
#define g_2_PI   g_PI*2.0f
#define max(a, b)   (((a) > (b)) ? (a) : (b))
#define min(a, b)   (((a) < (b)) ? (a) : (b))
#define DEGREE(v)   (float)(v*180.0f/g_PI)
#define RADIAN(v)   (float)((float)v*g_PI/180.0f)
#define NULL   0x00
#define new   new(__FILE__,__LINE__)
#define rgb16(r, g, b)   ( ((r << 11)&0xF800) | ((g<< 5)&0x7E0) | ( b & 0x1F ) )
#define rgb32(a, r, g, b)   ((a << 24) | (r << 16) | (g << 8) | b)

Typedefs

typedef unsigned char u8
typedef signed char s8
typedef char c8
typedef unsigned short u16
typedef signed short s16
typedef signed int s32
typedef float f32
typedef double f64
typedef unsigned long ULONG
typedef unsigned short WORD
typedef unsigned int UINT
typedef vertex3 gvVERTEX
typedef vertex3 gvVERTEX3
typedef vertex3 gvVECTOR3
typedef gvVERTEXPVERTEX
typedef _gvMATRIX gvMATRIX
typedef gvMATRIXLPGVMATRIX
typedef gvMATRIX gvMatrix
typedef __simple_vector4 simple_vector4
 vector4 (x,y,z,w)
typedef gvVector4 gvVERTEX4
typedef VECTOR2 XVECTOR2
typedef enum _MATRIXMODETYPE MATRIXMODETYPE

Enumerations

enum  _MATRIXMODETYPE {
  MM_WORLD = 0, MM_VIEW = 1, MM_PROJECT = 2, MM_VIEWPORT = 3,
  MM_FORCE_DWORD = 0x7fffffff
}

Functions

void * appMalloc (unsigned long count, const char *Tag=0x00)
void * appCalloc (unsigned long count, int value=0, const char *Tag=0x00)
void appFree (void *mem)
void * appRealloc (void *mem, unsigned long count, const char *Tag=0x00)
void * operator new (unsigned int size, const char *file, int line)
void operator delete (void *pMem, const char *file, int line)
void * operator new (unsigned int size)
void operator delete (void *ptr)
void * operator new[] (unsigned int size, const char *file, int line)
void operator delete[] (void *ptr)
void operator delete[] (void *pMem, const char *file, int line)
gvVECTOR3 operator * (const gvMATRIX &M, const gvVECTOR3 &v)
gvVECTOR3 operator * (const gvVECTOR3 &v, const gvMATRIX &M)
gvMatrixD3DXMatrixOrthoLH_MY (gvMatrix *pOut, float w, float h, float zn, float zf)
gvMatrixD3DXMatrixOrthoOffCenterLH_MY (gvMatrix *pOut, float l, float r, float b, float t, float zn, float zf)
gvMatrixD3DXMatrixOrthoOffCenterRH_MY (gvMatrix *pOut, float l, float r, float b, float t, float zn, float zf)

Variables

const float VECTOR2_ZERO_TOLERANCE = 0.0001f


Define Documentation

#define DEGREE ( v   )     (float)(v*180.0f/g_PI)

Definition at line 13 of file gv_types.h.

#define false   0

Definition at line 8 of file gv_types.h.

#define g_2_PI   g_PI*2.0f

Definition at line 10 of file gv_types.h.

#define g_PI   ((float) 3.141592654f)

Definition at line 9 of file gv_types.h.

#define max ( a,
 )     (((a) > (b)) ? (a) : (b))

Definition at line 11 of file gv_types.h.

#define min ( a,
 )     (((a) < (b)) ? (a) : (b))

Definition at line 12 of file gv_types.h.

#define new   new(__FILE__,__LINE__)

Definition at line 80 of file gv_types.h.

#define NULL   0x00

Definition at line 16 of file gv_types.h.

#define RADIAN ( v   )     (float)((float)v*g_PI/180.0f)

Definition at line 14 of file gv_types.h.

#define rgb16 ( r,
g,
 )     ( ((r << 11)&0xF800) | ((g<< 5)&0x7E0) | ( b & 0x1F ) )

Definition at line 542 of file gv_types.h.

#define rgb32 ( a,
r,
g,
 )     ((a << 24) | (r << 16) | (g << 8) | b)

Definition at line 543 of file gv_types.h.

#define true   1

Definition at line 7 of file gv_types.h.


Typedef Documentation

typedef char c8

Definition at line 23 of file gv_types.h.

typedef float f32

Definition at line 30 of file gv_types.h.

typedef double f64

Definition at line 31 of file gv_types.h.

typedef gvMATRIX gvMatrix

Definition at line 284 of file gv_types.h.

typedef _gvMATRIX gvMATRIX

Definition at line 282 of file gv_types.h.

typedef vertex3 gvVECTOR3

Definition at line 223 of file gv_types.h.

typedef vertex3 gvVERTEX

Definition at line 221 of file gv_types.h.

typedef vertex3 gvVERTEX3

Definition at line 222 of file gv_types.h.

typedef struct gvVector4 gvVERTEX4

Definition at line 358 of file gv_types.h.

typedef gvMATRIX* LPGVMATRIX

Definition at line 283 of file gv_types.h.

typedef gvVERTEX* PVERTEX

Definition at line 224 of file gv_types.h.

typedef signed short s16

Definition at line 25 of file gv_types.h.

typedef signed int s32

Definition at line 29 of file gv_types.h.

typedef signed char s8

Definition at line 22 of file gv_types.h.

typedef struct __simple_vector4 simple_vector4

vector4 (x,y,z,w)

typedef unsigned short u16

Definition at line 24 of file gv_types.h.

typedef unsigned char u8

Definition at line 21 of file gv_types.h.

typedef unsigned int UINT

Definition at line 35 of file gv_types.h.

typedef unsigned long ULONG

Definition at line 33 of file gv_types.h.

typedef unsigned short WORD

Definition at line 34 of file gv_types.h.

typedef VECTOR2 XVECTOR2

Definition at line 418 of file gv_types.h.


Enumeration Type Documentation

Enumerator:
MM_WORLD 
MM_VIEW 
MM_PROJECT 
MM_VIEWPORT 
MM_FORCE_DWORD 

Definition at line 485 of file gv_types.h.


Function Documentation

void* appCalloc ( unsigned long  count,
int  value = 0,
const char *  Tag = 0x00 
)

void appFree ( void *  mem  ) 

void* appMalloc ( unsigned long  count,
const char *  Tag = 0x00 
)

Referenced by malloc_chk().

void* appRealloc ( void *  mem,
unsigned long  count,
const char *  Tag = 0x00 
)

gvMatrix* D3DXMatrixOrthoLH_MY ( gvMatrix pOut,
float  w,
float  h,
float  zn,
float  zf 
)

gvMatrix* D3DXMatrixOrthoOffCenterLH_MY ( gvMatrix pOut,
float  l,
float  r,
float  b,
float  t,
float  zn,
float  zf 
)

gvMatrix* D3DXMatrixOrthoOffCenterRH_MY ( gvMatrix pOut,
float  l,
float  r,
float  b,
float  t,
float  zn,
float  zf 
)

gvVECTOR3 operator * ( const gvVECTOR3 v,
const gvMATRIX M 
)

gvVECTOR3 operator * ( const gvMATRIX M,
const gvVECTOR3 v 
)

void operator delete ( void *  ptr  ) 

void operator delete ( void *  pMem,
const char *  file,
int  line 
)

void operator delete[] ( void *  pMem,
const char *  file,
int  line 
)

void operator delete[] ( void *  ptr  ) 

void* operator new ( unsigned int  size  ) 

void* operator new ( unsigned int  size,
const char *  file,
int  line 
)

void* operator new[] ( unsigned int  size,
const char *  file,
int  line 
)


Variable Documentation

const float VECTOR2_ZERO_TOLERANCE = 0.0001f

Definition at line 363 of file gv_types.h.


Copyright(C) gvSystem & GamePlus All Rights Reserved.