27 int windowWidth,
int windowHeight,
int textureWidth,
int textureHeight,
28 SamplerState::Filter
filter, SamplerState::Mode mode0, SamplerState::Mode mode1,
29 bool useColorPShader);
35 int windowWidth,
int windowHeight,
int textureWidth,
int textureHeight,
44 inline void SetOverlayRectangle(std::array<int,4>
const& rectangle);
45 inline std::array<int,4> GetOverlayRectangle()
const;
53 void SetTextureRectangle(std::array<int,4>
const& rectangle);
54 inline std::array<int,4> GetTextureRectangle()
const;
58 void SetRectangles(std::array<int,4>
const& overlayRectangle,
59 std::array<int,4>
const& textureRectangle);
63 bool Contains(
int x,
int y)
const;
68 inline std::shared_ptr<VisualProgram>
const& GetProgram()
const;
69 inline std::shared_ptr<VertexBuffer>
const& GetVertexBuffer()
const;
70 inline std::shared_ptr<IndexBuffer>
const& GetIndexBuffer()
const;
71 inline std::shared_ptr<VisualEffect>
const& GetEffect()
const;
77 void SetTexture(std::shared_ptr<Texture2>
const&
texture);
79 std::shared_ptr<Texture2>
const& texture);
82 void Initialize(
int windowWidth,
int windowHeight,
int textureWidth,
91 void UpdateVertexBuffer();
117 std::array<int, 4>
const& rectangle)
119 mOverlayRectangle = rectangle;
120 UpdateVertexBuffer();
125 return mOverlayRectangle;
130 return mTextureRectangle;
133 inline std::shared_ptr<VisualProgram>
const&
139 inline std::shared_ptr<VertexBuffer>
const&
145 inline std::shared_ptr<IndexBuffer>
const&
151 inline std::shared_ptr<VisualEffect>
const&
std::array< int, 4 > mTextureRectangle
static std::string const msGLSLVSSource
std::shared_ptr< VertexBuffer > mVBuffer
std::shared_ptr< VisualProgram > mProgram
std::shared_ptr< VisualEffect > const & GetEffect() const
Vector2< float > position
std::shared_ptr< VisualProgram > const & GetProgram() const
static std::string const msHLSLVSSource
std::shared_ptr< VisualEffect > mEffect
void SetOverlayRectangle(std::array< int, 4 > const &rectangle)
GLsizei const GLchar *const * string
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
std::array< int, 4 > mOverlayRectangle
static std::string const msHLSLPSColorSource
static std::string const msHLSLPSGraySource
std::array< int, 4 > GetTextureRectangle() const
std::shared_ptr< IndexBuffer > mIBuffer
static std::string const msGLSLPSColorSource
static std::string const msGLSLPSGraySource
std::array< int, 4 > GetOverlayRectangle() const
std::shared_ptr< IndexBuffer > const & GetIndexBuffer() const
std::shared_ptr< VertexBuffer > const & GetVertexBuffer() const