mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 21:05:50 +12:00
[GL] More state stuff
This commit is contained in:
parent
64fa970468
commit
adb78bf838
4 changed files with 67 additions and 7 deletions
|
@ -2,7 +2,18 @@
|
|||
|
||||
void GLStateManager::resetBlend() {
|
||||
blendEnabled = false;
|
||||
logicOpEnabled = false;
|
||||
|
||||
OpenGL::disableBlend();
|
||||
OpenGL::disableLogicOp();
|
||||
}
|
||||
|
||||
void GLStateManager::resetClipping() {
|
||||
// Disable all (supported) clip planes
|
||||
enabledClipPlanes = 0;
|
||||
for (int i = 0; i < clipPlaneCount; i++) {
|
||||
OpenGL::disableClipPlane(i);
|
||||
}
|
||||
}
|
||||
|
||||
void GLStateManager::resetColourMask() {
|
||||
|
@ -48,6 +59,7 @@ void GLStateManager::resetProgram() {
|
|||
|
||||
void GLStateManager::reset() {
|
||||
resetBlend();
|
||||
resetClipping();
|
||||
resetColourMask();
|
||||
resetDepth();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue