TINYGL: added tglAlphaTest stubs

This commit is contained in:
Pawel Kolodziejski 2014-07-04 08:43:19 +02:00
parent 2bf63a5f52
commit b4962f645e
11 changed files with 61 additions and 7 deletions

View file

@ -86,6 +86,7 @@ FrameBuffer::FrameBuffer(int width, int height, const Graphics::PixelBuffer &fra
this->buffer.pbuf = this->pbuf.getRawBuffer();
this->buffer.zbuf = this->zbuf;
_blendingEnabled = false;
_alphaTestEnabled = false;
}
FrameBuffer::~FrameBuffer() {
@ -171,4 +172,13 @@ void FrameBuffer::enableBlending(bool enable) {
_blendingEnabled = enable;
}
void FrameBuffer::setAlphaTestFunc(int func, float ref) {
_alphaTestFunc = func;
_alphaTestRefVal = (int)(ref * 255);
}
void FrameBuffer::enableAlphaTest(bool enable) {
_alphaTestEnabled = enable;
}
} // end of namespace TinyGL