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_rect.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 
00010 extern float patchX(float x);
00017 extern float patchY(float y);
00018 
00019 
00020 //
00023 class gm_rect_2d
00024 {
00025 private:
00027         gm_vb* m_pvb;
00028         v* m_ppv;
00029 
00031         float m_x;
00033         float m_y;
00035         float m_w;
00037         float m_h;
00038         
00040         float orgx;
00041         float orgy;
00042         float orgw;
00043         float orgh;
00044 public: 
00045         gm_rect_2d(void);
00046         ~gm_rect_2d(void);
00047 
00048         
00052         void push_xywh(void);
00056         void pop_xywh(void);
00057 
00061         float getx1(void);
00065         float gety1(void);
00069         float getx2(void);
00073         float gety2(void);
00077         float getwidth(void);
00081         float getheight(void);
00082         
00083 public:
00085         float m_fRotate;        
00087         void init(void);
00101         void set(float x,float y,float w,float h,float u1=0.0f,float v1=0.0f,float u2=1.0f,float v2=1.0f);
00102         void set_w(float x,float y,float w,float h,float u1=0.0f,float v1=0.0f,float u2=1.0f,float v2=1.0f);
00103 
00104         
00112         void set_xy(float x, float y);
00113 
00122         void setcolor(float a,float r,float g,float b);
00134         void setcolor_alphasafe(float a,float r,float g,float b);
00138         void render(void);
00144         void set_rotate(float frad);
00145 };
00146 
00147 
00148 
00153 class gm_rect_3d
00154 {
00155 public:
00156         gm_rect_3d();
00157         ~gm_rect_3d(){};
00158 };
00159 
00160 

Copyright(C) gvSystem & GamePlus All Rights Reserved.