|
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 gvVERTEX * | PVERTEX |
| typedef _gvMATRIX | gvMATRIX |
| typedef gvMATRIX * | LPGVMATRIX |
| 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) |
| 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) |
Variables |
| const float | VECTOR2_ZERO_TOLERANCE = 0.0001f |
Define Documentation
| #define DEGREE |
( |
v |
|
) |
(float)(v*180.0f/g_PI) |
| #define g_PI ((float) 3.141592654f) |
| #define max |
( |
a, |
|
|
b |
|
) |
(((a) > (b)) ? (a) : (b)) |
| #define min |
( |
a, |
|
|
b |
|
) |
(((a) < (b)) ? (a) : (b)) |
| #define new new(__FILE__,__LINE__) |
| #define RADIAN |
( |
v |
|
) |
(float)((float)v*g_PI/180.0f) |
| #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) |
Typedef Documentation
| typedef unsigned short u16 |
| typedef unsigned int UINT |
| typedef unsigned long ULONG |
| typedef unsigned short WORD |
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 | |
|
) |
| | |
| 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 | |
|
) |
| | |
| 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
|