2 #include "mof/real.hpp"
3 #include "mof/Color.hpp"
4 #include "mof/Matrix3D.hpp"
5 #include "mof/VertexTypes.hpp"
6 #include <boost/utility.hpp>
7 #include <boost/scoped_ptr.hpp>
9 #include "mof/Rectangle.hpp"
17 namespace GraphicsDevice
29 void setWorldTransform( const mof::Matrix3D& matrix );
30 void setProjectionTransform( real min , real max );
31 void setViewTransform( const mof::Matrix3D& matrix );
32 const mof::Matrix3D& getWorldTransform( );
33 const mof::Matrix3D& getProjectionTransform( );
34 const mof::Matrix3D& getViewTransform( );
35 void setZBuffer( bool flag );
36 void lightEnable( bool enable );
38 void clearRenderTarget( mof::Color color );
39 void setAlphaBlendingMode( const int flag );
40 mof::Vector2D to2DPosition( const mof::Vector3D& position );
41 void setViewport( const mof::Rectangle<int>& area );
42 int getViewportWidth( );
43 int getViewportHeight( );
44 int get_num_of_displays();
45 std::vector<mof::Vector2D> get_caps(int adapter_id);
47 template <class T> void drawVertexArray
49 const T& front , const T& last ,
50 mof::PRIMITIVE_TYPE type = PRIMITIVE_TYPE_TRIANGLELIST
52 void setMaterial( const mof::Material& material );
53 void setTexture( const mof::Texture* pTexture );
54 mof::Rectangle<int> getClientRegion( );
56 } // namespace GraphicsDevice