From 47dad82d50a34e8ee4f73425343aed6a58e7bdb3 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Tue, 14 Jul 2015 18:09:58 -0700 Subject: [PATCH] removed dead code --- libraries/render-utils/src/RenderUtil.h | 50 ------------------------- 1 file changed, 50 deletions(-) diff --git a/libraries/render-utils/src/RenderUtil.h b/libraries/render-utils/src/RenderUtil.h index 8c1b1e12e7..b2f244733a 100644 --- a/libraries/render-utils/src/RenderUtil.h +++ b/libraries/render-utils/src/RenderUtil.h @@ -15,54 +15,4 @@ /// Renders a quad from (-1, -1, 0) to (1, 1, 0) with texture coordinates from (sMin, tMin) to (sMax, tMax). void renderFullscreenQuad(float sMin = 0.0f, float sMax = 1.0f, float tMin = 0.0f, float tMax = 1.0f); -template -void withMatrixPush(F f) { - glMatrixMode(matrix); - glPushMatrix(); - f(); - glPopMatrix(); -} - -template -void withProjectionPush(F f) { - withMatrixPush(f); -} - -template -void withProjectionIdentity(F f) { - withProjectionPush([&] { - glLoadIdentity(); - f(); - }); -} - -template -void withProjectionMatrix(GLfloat* matrix, F f) { - withProjectionPush([&] { - glLoadMatrixf(matrix); - f(); - }); -} - -template -void withModelviewPush(F f) { - withMatrixPush(f); -} - -template -void withModelviewIdentity(F f) { - withModelviewPush([&] { - glLoadIdentity(); - f(); - }); -} - -template -void withModelviewMatrix(GLfloat* matrix, F f) { - withModelviewPush([&] { - glLoadMatrixf(matrix); - f(); - }); -} - #endif // hifi_RenderUtil_h