2025-08-06 18:48 CEST

spring: develop d48eb29a Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
trepan trepan develop 2008-01-24 10:41:50 develop 895cf951
Changeset * Added gl.ReadPixels(x, y, w, h [,format])

* Added gl.StencilTest(bool)
* Added gl.StencilMask(bits)
* Added gl.StencilFunc(func, ref, mask)
* Added gl.StencilOp(fail, zfail, zpass)

NOTES:

- The engine expects that the stencil buffer be left in a
  state of all 0's when a task has finished with it. This
  is not enforced by the lua backend. Keeping track of the
  stencil state in display lists is a nuisance, so the best
  way to resolve is probably to clear the stencil everytime
  that a new task wants to use it (unfortunate overhead).

- Using FBO stencils in lua does not cause the above problem.



git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@5372 37977431-3df6-0310-b722-df95706aa16b
mod - rts/Lua/LuaFBOs.cpp Diff ] File ]
mod - rts/Lua/LuaOpenGL.cpp Diff ] File ]
mod - rts/Lua/LuaOpenGL.h Diff ] File ]
mod - rts/Lua/LuaUniqueBin.h Diff ] File ]
mod - rts/Lua/LuaUnitRendering.cpp Diff ] File ]