mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15241 from newnon/v3_gl_program_imageview
GLProgram for ImageView
This commit is contained in:
commit
535d3b3c32
|
@ -302,6 +302,18 @@ ResourceData ImageView::getRenderFile()
|
|||
rData.file = _textureFile;
|
||||
return rData;
|
||||
}
|
||||
|
||||
void ImageView::setGLProgram(GLProgram* glProgram)
|
||||
{
|
||||
Widget::setGLProgram(glProgram);
|
||||
_imageRenderer->setGLProgram(glProgram);
|
||||
}
|
||||
|
||||
void ImageView::setGLProgramState(cocos2d::GLProgramState* glProgramState)
|
||||
{
|
||||
Widget::setGLProgramState(glProgramState);
|
||||
_imageRenderer->setGLProgramState(glProgramState);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -126,6 +126,8 @@ public:
|
|||
|
||||
ResourceData getRenderFile();
|
||||
|
||||
virtual void setGLProgram(GLProgram* glProgram) override;
|
||||
virtual void setGLProgramState(cocos2d::GLProgramState* glProgramState) override;
|
||||
CC_CONSTRUCTOR_ACCESS:
|
||||
//initializes state of widget.
|
||||
virtual bool init() override;
|
||||
|
|
Loading…
Reference in New Issue