Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef RENDERER_H
- #define RENDERER_H
- #include "Include.h"
- #define COLOR_WHITE D3DCOLOR_RGBA( 255, 255, 255, 255 )
- #define COLOR_RED D3DCOLOR_RGBA( 255, 0, 0, 255 )
- #define COLOR_GREEN D3DCOLOR_RGBA( 0, 255, 0, 255 )
- #define COLOR_BLUE D3DCOLOR_RGBA( 0, 0, 255, 255 )
- #define COLOR_GRAY D3DCOLOR_RGBA( 100, 100, 100, 255 )
- #define COLOR_BLACK D3DCOLOR_RGBA( 0, 0, 0, 255 )
- #define COLOR_DARK_GRAY D3DCOLOR_RGBA( 50, 50, 50, 255 )
- #define COLOR_CYAN D3DCOLOR_RGBA( 0, 150, 255, 255 )
- #define COLORCODE( r, g, b, a ) D3DCOLOR_ARGB( a, r, g, b )
- class Vector;
- class CRenderer
- {
- public:
- CRenderer( void );
- ~CRenderer( void );
- virtual void Update( IDirect3DDevice9* pDevice );
- virtual void Release( void );
- virtual void SetFont( ID3DXFont* pFont );
- virtual void SetLine( ID3DXLine* pLine );
- virtual void SetDevice( IDirect3DDevice9* pDevice );
- virtual IDirect3DDevice9* GetDevice( void );
- virtual ID3DXFont* GetFont( void );
- virtual ID3DXLine* GetLine( void );
- virtual void DrawRect( int x, int y, int w, int h, DWORD_PTR color );
- virtual void DrawRectOutlined( int x, int y, int w, int h, DWORD_PTR color, DWORD_PTR outlined, int thickness );
- virtual void DrawBorderBox( int x, int y, int w, int h, DWORD_PTR color, int thickness );
- virtual void DrawBorderBoxOutlined( int x, int y, int w, int h, DWORD_PTR color, DWORD_PTR outlined, int thickness );
- virtual void DrawLine( int x0, int y0, int x1, int y1, DWORD_PTR color );
- virtual void DrawLine( Vector x, Vector y, DWORD_PTR color );
- virtual void DrawString( int x, int y, DWORD_PTR color, const char* text, ... );
- virtual void DrawStringOutlined( int x, int y, DWORD_PTR color, const char* text, ... );
- private:
- virtual bool IsReady( void );
- private:
- IDirect3DDevice9* m_pDevice;
- ID3DXFont* m_pFont;
- ID3DXLine* m_pLine;
- };
- extern CRenderer* g_pRenderer;
- #endif // RENDERER_H
Advertisement
Add Comment
Please, Sign In to add comment