Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 969 vs 970 for /trunk/Source Code/Platform/Video/OpenGL/Headers/GLWrapper.h

Diff revisions: vs.
  @@ -254,6 +254,11 @@
254 254 setScissor(newScissorRect.x, newScissorRect.y, newScissorRect.z, newScissorRect.w);
255 255 }
256 256
257 + static bool setClearColour(const vec4<F32>& colour);
258 + inline static bool setClearColour(const vec4<U8>& colour) {
259 + return setClearColour(Util::ToFloatColour(colour));
260 + }
261 +
257 262 /// Change the current viewport area. Redundancy check is performed in GFXDevice class
258 263 static bool changeViewport(I32 x, I32 y, I32 width, I32 height);
259 264 inline static bool changeViewport(const vec4<I32>& newViewport) {
  @@ -355,6 +360,8 @@
355 360 static vec4<I32> s_activeViewport;
356 361 static vec4<I32> s_previousViewport;
357 362 static vec4<I32> s_activeScissor;
363 + static vec4<F32> s_activeClearColour;
364 +
358 365 /// The main VAO pool. We use a pool to avoid multithreading issues with VAO states
359 366 static GLUtil::glVAOPool s_vaoPool;
360 367