TINYGL: added tglAlphaTest stubs
This commit is contained in:
parent
2bf63a5f52
commit
b4962f645e
11 changed files with 61 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue