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

 

 

gm_grp_driver Class Reference

graphic driver class More...

#include <gm_grp_driver.h>

Inheritance diagram for gm_grp_driver:

Inheritance graph
[legend]
Collaboration diagram for gm_grp_driver:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~gm_grp_driver (void)
virtual void init (void)
 initialize.
virtual void shut (void)
 destroy and shut.
virtual void set_view_port (int x, int y, int w, int h)
 set viewport.
virtual void get_view_port (int &x, int &y, int &w, int &h)
virtual void clear_screen (unsigned short x, unsigned short y, unsigned short w, unsigned short h, unsigned short color)
 clear viewport.
virtual void begin_scene (void)
 begin scene flag.
virtual void end_scene (void)
 end scene flag.
virtual void swap (void)
 front and backbuffer swap.
virtual void swap_async (void)
 front and backbuffer swap async.
virtual void * rsrv_tex (unsigned char *pbyte, int w, int h, int bpp)
 create texture. return texture handle.
virtual void away_tex (void *phandle)
 remove texture.
virtual void gp_set_gte_code (const unsigned long *code, unsigned char size)
 gte register command setting.
virtual void set_gte_const (unsigned char idx, const float *fpdata, unsigned char size)
 get register value setting.
virtual void set_texture0 (void *pt, unsigned char addrmode)
 set texture.
virtual void set_texture1 (void *pt, unsigned char addrmode)
 set texture
virtual void set_render_state (unsigned short rs)
 state rendering option.
virtual unsigned short get_render_state (void)
 get state rendering.
virtual void * create_vertex_buf (unsigned long size, unsigned long stride, unsigned long format)
 vertex buffer create.
virtual void release_vertex_buf (void *handle)
 remove vertex buffer.
virtual void * lock_vertex_buf (void *handle)
 lock vertex buffer.
virtual void unlock_vertex_buf (void *handle)
 unlock vertex buffer.
virtual void set_vertex_buf (void *handle)
 vertex buffer pooled.
virtual void draw_vb_primitive (unsigned char render_mode, unsigned char prim_type, unsigned short vertex_cnt)
 draw vertex buffer.
virtual void set_target (int id)
 set render target video.

Public Attributes

int drv_idx

Detailed Description

graphic driver class

Definition at line 175 of file gm_grp_driver.h.


Constructor & Destructor Documentation

virtual gm_grp_driver::~gm_grp_driver ( void   )  [inline, virtual]

Definition at line 181 of file gm_grp_driver.h.


Member Function Documentation

virtual void gm_grp_driver::init ( void   )  [inline, virtual]

initialize.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 184 of file gm_grp_driver.h.

virtual void gm_grp_driver::shut ( void   )  [inline, virtual]

destroy and shut.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 186 of file gm_grp_driver.h.

virtual void gm_grp_driver::set_view_port ( int  x,
int  y,
int  w,
int  h 
) [inline, virtual]

set viewport.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 188 of file gm_grp_driver.h.

virtual void gm_grp_driver::get_view_port ( int &  x,
int &  y,
int &  w,
int &  h 
) [inline, virtual]

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 189 of file gm_grp_driver.h.

virtual void gm_grp_driver::clear_screen ( unsigned short  x,
unsigned short  y,
unsigned short  w,
unsigned short  h,
unsigned short  color 
) [inline, virtual]

clear viewport.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 192 of file gm_grp_driver.h.

virtual void gm_grp_driver::begin_scene ( void   )  [inline, virtual]

begin scene flag.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 194 of file gm_grp_driver.h.

virtual void gm_grp_driver::end_scene ( void   )  [inline, virtual]

end scene flag.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 196 of file gm_grp_driver.h.

virtual void gm_grp_driver::swap ( void   )  [inline, virtual]

front and backbuffer swap.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 198 of file gm_grp_driver.h.

virtual void gm_grp_driver::swap_async ( void   )  [inline, virtual]

front and backbuffer swap async.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 200 of file gm_grp_driver.h.

virtual void* gm_grp_driver::rsrv_tex ( unsigned char *  pbyte,
int  w,
int  h,
int  bpp 
) [inline, virtual]

create texture. return texture handle.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 203 of file gm_grp_driver.h.

virtual void gm_grp_driver::away_tex ( void *  phandle  )  [inline, virtual]

remove texture.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 205 of file gm_grp_driver.h.

virtual void gm_grp_driver::gp_set_gte_code ( const unsigned long *  code,
unsigned char  size 
) [inline, virtual]

gte register command setting.

Definition at line 208 of file gm_grp_driver.h.

virtual void gm_grp_driver::set_gte_const ( unsigned char  idx,
const float *  fpdata,
unsigned char  size 
) [inline, virtual]

get register value setting.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 210 of file gm_grp_driver.h.

virtual void gm_grp_driver::set_texture0 ( void *  pt,
unsigned char  addrmode 
) [inline, virtual]

set texture.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 213 of file gm_grp_driver.h.

virtual void gm_grp_driver::set_texture1 ( void *  pt,
unsigned char  addrmode 
) [inline, virtual]

set texture

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 215 of file gm_grp_driver.h.

virtual void gm_grp_driver::set_render_state ( unsigned short  rs  )  [inline, virtual]

state rendering option.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 218 of file gm_grp_driver.h.

virtual unsigned short gm_grp_driver::get_render_state ( void   )  [inline, virtual]

get state rendering.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 220 of file gm_grp_driver.h.

virtual void* gm_grp_driver::create_vertex_buf ( unsigned long  size,
unsigned long  stride,
unsigned long  format 
) [inline, virtual]

vertex buffer create.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 223 of file gm_grp_driver.h.

virtual void gm_grp_driver::release_vertex_buf ( void *  handle  )  [inline, virtual]

remove vertex buffer.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 225 of file gm_grp_driver.h.

virtual void* gm_grp_driver::lock_vertex_buf ( void *  handle  )  [inline, virtual]

lock vertex buffer.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 227 of file gm_grp_driver.h.

virtual void gm_grp_driver::unlock_vertex_buf ( void *  handle  )  [inline, virtual]

unlock vertex buffer.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 229 of file gm_grp_driver.h.

virtual void gm_grp_driver::set_vertex_buf ( void *  handle  )  [inline, virtual]

vertex buffer pooled.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 231 of file gm_grp_driver.h.

virtual void gm_grp_driver::draw_vb_primitive ( unsigned char  render_mode,
unsigned char  prim_type,
unsigned short  vertex_cnt 
) [inline, virtual]

draw vertex buffer.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 233 of file gm_grp_driver.h.

virtual void gm_grp_driver::set_target ( int  id  )  [inline, virtual]

set render target video.

Reimplemented in gm_grp_driver_opengl, gm_grp_driver_hb3, and gm_grp_driver_znt.

Definition at line 235 of file gm_grp_driver.h.


Member Data Documentation

Definition at line 178 of file gm_grp_driver.h.


The documentation for this class was generated from the following file:

Copyright(C) gvSystem & GamePlus All Rights Reserved.