mirror of https://github.com/axmolengine/axmol.git
removed obsolete override of setViewPortInPoints
This commit is contained in:
parent
1a9056cf14
commit
0f64a2d192
|
@ -470,22 +470,6 @@ Vec2 GLViewImpl::GetPoint(PointerEventArgs^ args) {
|
|||
}
|
||||
|
||||
|
||||
void GLViewImpl::setViewPortInPoints(float x , float y , float w , float h)
|
||||
{
|
||||
glViewport((GLint) (x * _scaleX + _viewPortRect.origin.x),
|
||||
(GLint) (y * _scaleY + _viewPortRect.origin.y),
|
||||
(GLsizei) (w * _scaleX),
|
||||
(GLsizei) (h * _scaleY));
|
||||
}
|
||||
|
||||
void GLViewImpl::setScissorInPoints(float x , float y , float w , float h)
|
||||
{
|
||||
glScissor((GLint) (x * _scaleX + _viewPortRect.origin.x),
|
||||
(GLint) (y * _scaleY + _viewPortRect.origin.y),
|
||||
(GLsizei) (w * _scaleX),
|
||||
(GLsizei) (h * _scaleY));
|
||||
}
|
||||
|
||||
void GLViewImpl::QueueBackKeyPress()
|
||||
{
|
||||
std::shared_ptr<BackButtonEvent> e(new BackButtonEvent());
|
||||
|
|
|
@ -52,8 +52,6 @@ public:
|
|||
virtual bool isOpenGLReady();
|
||||
virtual void end();
|
||||
virtual void swapBuffers();
|
||||
virtual void setViewPortInPoints(float x , float y , float w , float h);
|
||||
virtual void setScissorInPoints(float x , float y , float w , float h);
|
||||
|
||||
Windows::Graphics::Display::DisplayOrientations getDeviceOrientation() {return m_orientation;};
|
||||
Size getRenerTargetSize() const { return Size(m_width, m_height); }
|
||||
|
|
Loading…
Reference in New Issue