|
Product parts
|
|
Virtual File system
|
| Virtual Render |
| Virtual Machine |
| |
|
Demo Games
|
| |
|
3D Engine
|
|
gvSystem(dx9)
|
|
|
|
Link
|
 |
|
|
gv_OBJECT_RECT Class ReferenceGame Object ver 0.1 todo:.
More...
#include <gv_object_rect.h>
Collaboration diagram for gv_OBJECT_RECT:
[legend]List of all members.
|
Public Member Functions |
| | gv_OBJECT_RECT (void) |
| | ~gv_OBJECT_RECT (void) |
| int | Loop (int iValue=1, float fDelayTime=0.0f, bool bStartRandomFrame=false) |
| | loop count setting.
|
| int | LoopRef (int iValue=1, float fDelayTime=0.0f) |
| int | Render (void) |
| | rendering.
|
| int | Render3 (void) |
| | not use. for debugging wireframe render.
|
| int | AddTexture (char *szFileName, int x, int y, int nWidth, int nHeight, int iValue) |
| | called from AddRect.
|
| int | Render2 (void) |
| | Rect ¾øÀÌ ÅØ½ºÃÄ ¹ÙÀεù¸¸.. Â÷ÈÄ¿¡ üũ.
|
| int | AddRect (char *szFileName, int x, int y, int w, int h, int iType, bool bcache=false) |
| | object texture create and setting.
|
| int | AddBigTexture (char *szFileName, int x, int y, bool bcache=false) |
| int | GotoFrame (int iFrame) |
| | setting render image frame.
|
| int | Action (int iAction) |
| | The Action function !!not yet.
|
| int | Update (void) |
| | update object. must be called.
|
| int | IsLooping (void) |
| | is looping
|
| int | LoadObjectConfig (char *szConfigFile) |
| | object config file load.
|
| int | FadeAction (int iFade) |
| void * | Clone (void) |
| | copy object.
|
| int | AfterLoopEnd (int iAct, void *pVoid) |
| int | StopLoop (void) |
| | Stop looping.
|
| int | StopLoopNow (void) |
| | Stop looping now.
|
| int | SHOW (bool bShow, float fDelay=0.0f) |
| | show or hide object.
|
| int | isShow (void) |
| | is show
|
| int | SHOW_TIMELIMIT (bool bShow, float fLimit=1.0f) |
| int | IsShow (void) |
| int | SetBlinking (bool bblink, float fTimeShow, float fTimeHide, int nloop=-1) |
| | The SetBlinking function.
|
| int | SetAniFrameRange (int na, int nb) |
| | set animation frame range.
|
| int | DoScript (char *szScriptFileName) |
| | custum script exec.
|
| int | DoScriptLua (char *szLuaFileName) |
| | custum lua module
|
| bool | IsName (const char *szName) |
| | is same name
|
| void | SetUV (float u1, float v1, float u2, float v2) |
| | texture uv coord.
|
| void | GoTo (float x, float y, float fTime) |
| bool | IsinRect (int x1, int y1, int x2, int y2) |
| void | SoundStop (void) |
| | if sound playing stop sound.
|
| void | SetLoopEndFirst (bool bflag=true) |
| void | Charge (void) |
| | heap memory compress byte. result : texture data remove from video ram.
|
| void | UnCharge (void) |
| | heap memory compress byte. result : texture data remove from video ram.
|
| void | SetFPS (float ffps) |
| | set fps set animation speed. if not animation texture then ..nothing.
|
Public Attributes |
| gm_rect_2d * | m_pRect |
| | 2d rectangle.
|
| bool | m_bActAnimation |
| char | m_szid [128] |
| | object name
|
| gm_texture * | m_pTexture |
| | texture pointer.
|
| geArray< gv_OBJECT_RECT * > | m_pList |
| float | m_alpharef |
| float | m_alpharef_current |
| float | m_alpharef_max |
| bool | m_bShowLock |
| XVECTOR2 | velocityLoop |
| | velocity value. only effect looping.
|
| XVECTOR2 | velocity |
| | velocity value.
|
| int | m_iFadeAction |
| | fade in or out
|
| int | m_iSound |
| | wave sound handle.
|
| bool | m_bSoundPlayed |
| float | m_fDelaySound |
| | delay before start sound playing.
|
| bool | m_bIsLoopEndSoundOff |
| | after looping ended sound off flag.
|
| gv_OBJECT_RECT * | m_pTarget |
| | after looping ended
|
| int | m_nReservedLooping |
| | default looping count.
|
| bool | m_bBlinking |
| | blinking variable flag.
|
| int | nblinking_loop |
| | blinking loop count.
|
| float | m_fTimeShowBlinking |
| | blinking show time.
|
| float | m_fTimeHideBlinking |
| | blinking hide time.
|
| float | m_fTimeBlinking |
| gv_OBJECT_RECT * | m_pParent |
| | for tree node. will be using scene graph. only 2d layer.
|
| gv_OBJECT_RECT * | m_pChild |
| bool | m_copy |
| | this object is copy.
|
| int | m_iReserved |
| int | m_nLoopCountDefault |
| int | m_bisLooped |
| | is loop animation ? animation checking.
|
| bool | m_bisBigTexture |
| | is LTX loaded ?
|
| bool | m_bUpdateable |
| button_one | m_Button |
| | button flag.
|
Private Attributes |
| bool | m_bShow |
| | Show/Hide Flag.
|
Detailed Description
Game Object ver 0.1 todo:.
Definition at line 12 of file gv_object_rect.h.
Constructor & Destructor Documentation
| gv_OBJECT_RECT::gv_OBJECT_RECT |
( |
void |
|
) |
|
| gv_OBJECT_RECT::~gv_OBJECT_RECT |
( |
void |
|
) |
|
Member Function Documentation
| int gv_OBJECT_RECT::Loop |
( |
int |
iValue = 1, |
|
|
float |
fDelayTime = 0.0f, |
|
|
bool |
bStartRandomFrame = false | |
|
) |
| | |
loop count setting.
- Parameters:
-
| iValue,: | loop count. if iValue -1 then infinite looping. |
| fDelayTime,: | loopping start delay time. |
| bStartRandomFrame,: | loopping random start first frame index. |
- Returns:
- if animation texture and start 1 else return 0
| int gv_OBJECT_RECT::LoopRef |
( |
int |
iValue = 1, |
|
|
float |
fDelayTime = 0.0f | |
|
) |
| | |
| int gv_OBJECT_RECT::Render |
( |
void |
|
) |
|
| int gv_OBJECT_RECT::Render3 |
( |
void |
|
) |
|
not use. for debugging wireframe render.
| int gv_OBJECT_RECT::AddTexture |
( |
char * |
szFileName, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
nWidth, |
|
|
int |
nHeight, |
|
|
int |
iValue | |
|
) |
| | |
| int gv_OBJECT_RECT::Render2 |
( |
void |
|
) |
|
Rect ¾øÀÌ ÅØ½ºÃÄ ¹ÙÀεù¸¸.. Â÷ÈÄ¿¡ üũ.
| int gv_OBJECT_RECT::AddRect |
( |
char * |
szFileName, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
iType, |
|
|
bool |
bcache = false | |
|
) |
| | |
object texture create and setting.
- Parameters:
-
| szFileName,: | texture filename. |
| x,: | x coord. |
| y,: | y coord. |
| w,: | width size. if nWidth is -1 |
| h,: | height size. |
| iType,: | not use. |
| bcache,: | compress flag. |
| int gv_OBJECT_RECT::AddBigTexture |
( |
char * |
szFileName, |
|
|
int |
x, |
|
|
int |
y, |
|
|
bool |
bcache = false | |
|
) |
| | |
| int gv_OBJECT_RECT::GotoFrame |
( |
int |
iFrame |
) |
|
setting render image frame.
| int gv_OBJECT_RECT::Action |
( |
int |
iAction |
) |
|
The Action function !!not yet.
- Parameters:
-
| iAction | a parameter of type int |
- Returns:
- int
| int gv_OBJECT_RECT::Update |
( |
void |
|
) |
|
update object. must be called.
| int gv_OBJECT_RECT::IsLooping |
( |
void |
|
) |
|
is looping
- Returns:
- returns 1 if looping and 0 if it is not
| int gv_OBJECT_RECT::LoadObjectConfig |
( |
char * |
szConfigFile |
) |
|
| int gv_OBJECT_RECT::FadeAction |
( |
int |
iFade |
) |
|
| void* gv_OBJECT_RECT::Clone |
( |
void |
|
) |
|
| int gv_OBJECT_RECT::AfterLoopEnd |
( |
int |
iAct, |
|
|
void * |
pVoid | |
|
) |
| | |
| int gv_OBJECT_RECT::StopLoop |
( |
void |
|
) |
|
| int gv_OBJECT_RECT::StopLoopNow |
( |
void |
|
) |
|
| int gv_OBJECT_RECT::SHOW |
( |
bool |
bShow, |
|
|
float |
fDelay = 0.0f | |
|
) |
| | |
| int gv_OBJECT_RECT::isShow |
( |
void |
|
) |
|
| int gv_OBJECT_RECT::SHOW_TIMELIMIT |
( |
bool |
bShow, |
|
|
float |
fLimit = 1.0f | |
|
) |
| | |
| int gv_OBJECT_RECT::IsShow |
( |
void |
|
) |
|
| int gv_OBJECT_RECT::SetBlinking |
( |
bool |
bblink, |
|
|
float |
fTimeShow, |
|
|
float |
fTimeHide, |
|
|
int |
nloop = -1 | |
|
) |
| | |
The SetBlinking function.
- Parameters:
-
| bblink | a parameter of type bool. blinking flag true or false. |
| fTimeShow | a parameter of type float. blinking show on time. |
| fTimeHide | a parameter of type float. blinking show off time. |
| nloop | a parameter of type int. blinking count. if -1 infinite looping. |
- Returns:
- int
| int gv_OBJECT_RECT::SetAniFrameRange |
( |
int |
na, |
|
|
int |
nb | |
|
) |
| | |
set animation frame range.
| int gv_OBJECT_RECT::DoScript |
( |
char * |
szScriptFileName |
) |
|
| int gv_OBJECT_RECT::DoScriptLua |
( |
char * |
szLuaFileName |
) |
|
| bool gv_OBJECT_RECT::IsName |
( |
const char * |
szName |
) |
|
| void gv_OBJECT_RECT::SetUV |
( |
float |
u1, |
|
|
float |
v1, |
|
|
float |
u2, |
|
|
float |
v2 | |
|
) |
| | |
| void gv_OBJECT_RECT::GoTo |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
fTime | |
|
) |
| | |
| bool gv_OBJECT_RECT::IsinRect |
( |
int |
x1, |
|
|
int |
y1, |
|
|
int |
x2, |
|
|
int |
y2 | |
|
) |
| | |
| void gv_OBJECT_RECT::SoundStop |
( |
void |
|
) |
|
if sound playing stop sound.
| void gv_OBJECT_RECT::SetLoopEndFirst |
( |
bool |
bflag = true |
) |
|
| void gv_OBJECT_RECT::Charge |
( |
void |
|
) |
|
heap memory compress byte. result : texture data remove from video ram.
| void gv_OBJECT_RECT::UnCharge |
( |
void |
|
) |
|
heap memory compress byte. result : texture data remove from video ram.
| void gv_OBJECT_RECT::SetFPS |
( |
float |
ffps |
) |
|
set fps set animation speed. if not animation texture then ..nothing.
Member Data Documentation
for tree node. will be using scene graph. only 2d layer.
Definition at line 77 of file gv_object_rect.h.
The documentation for this class was generated from the following file:
|