VR-Vantage 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSprite.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 #include <vrvGraphics/DtQuad.h>
14 
15 namespace makVrv
16 {
17 
18  class DtQuad;
19  class DtPickableQuad;
20  class DtWidgetPicker;
21  class DtOverlayRenderer;
22 
26  {
27  public:
28 
30  DtSprite( DtOverlayRenderer& renderer, DtWidgetPicker& picker );
31 
33  DtSprite* clone( DtOverlayRenderer& renderer, DtWidgetPicker& picker ) const;
34 
36  ~DtSprite();
37 
42  void setEventsEnabled( bool enabled, unsigned long long userData = 0 );
43 
45  bool eventsEnabled() const;
46 
48  void setPosition( float x, float y, float z, float w = 0 );
49 
51  void setPoints( const float points[8] );
52 
54  void setRotation( float angle );
55 
57  void setFillType( DtQuad::FillType type );
58 
60  void setTextureParameter(
62  float left = 0.0f, float right = 1.0f, float bottom = 0.0f,
63  float top = 1.0f );
64 
66  DtOverlayResourceProvider::NativeResourceHandle textureParameter() const;
67 
69  void setColor( float r, float g, float b, float a );
70 
72  void setGroup( unsigned int group );
73 
75  unsigned int group() const;
76 
78  const DtQuad& quad() const;
79 
81  DtPickableQuad* findWidget();
82  const DtPickableQuad* findWidget() const;
83 
84  protected:
85 
89 
90  };
91 
92 }


Copyright © 2005-2018 VT MAK. All Rights Reserved (www.mak.com)