- drawList(Drawable o) {
- Queue<Schrift> q;
- foreach(Drawable child in o) {
- if(child is Schrift) {
- q.Enqueue(child);
- } else {
- drawList(child);
- }
- }
- draw(o);
- if(q.Count == 0) {
- return;
- }
- glDisable(GL_DEPTH_TEST);
- glDepthMask(GL_FALSE);
- foreach(Schrift s in q) {
- drawObject(s);
- }
- glDepthMask(GL_TRUE);
- glEnable(GL_DEPTH_TEST);
- }