VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtQuad.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2011 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 namespace makVrv
15 {
16 
17  class DtQuadProxy;
18  class DtBoundingBox;
19  class DtQuadRenderer;
20  class DtOverlayRenderer;
21 
25  {
26  public:
27 
28  enum FillType
29  {
30  Fill_Solid = 0,
32  Fill_Texture
33  };
34 
35  public:
36 
38  DtQuad( DtQuadRenderer& renderer );
39 
41  DtQuad( DtOverlayRenderer& renderer );
42 
44  ~DtQuad();
45 
47  void setPosition( float x, float y, float z, float w );
48 
50  void getPosition( float& x, float& y, float& z, float& w ) const;
51 
53  void setRotation( float angle );
54 
56  void getRotation( float& angle ) const;
57 
60  void setGroup( float order );
61 
63  float group() const;
64 
66  void setColor( float r, float g, float b, float a );
67 
69  void getColor( float& r, float& g, float& b, float& a ) const;
70 
72  void setBounds( const DtBoundingBox& bounds );
73 
75  void getBounds( DtBoundingBox& bounds ) const;
76 
79  void setPoints( const float points[8] );
80 
83  void getPoints( float points[8] );
84 
88  void setFillType( FillType type );
89 
91  FillType fillType() const;
92 
97  void setFillParameter( unsigned int param, unsigned int fullStipplePattern[32] = 0 );
98 
100  void setTextureParameter( DtOverlayResourceProvider::NativeResourceHandle texture,
101  float left = 0.0f, float right = 1.0f, float bottom = 0.0f, float top = 1.0f );
102 
104  DtOverlayResourceProvider::NativeResourceHandle textureParameter() const;
105 
106  protected:
107 
109 
110  };
111 
112 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)