Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-28 21:03:04 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-28 21:03:04 +0300
commitb6459105b47526cd33851d4e00740fbd9d050ea4 (patch)
treededbd4c93fdb22f040f6740f2d13dc6dc4ce19ed /source/blender/gpu/GPU_extensions.h
parent044f7c5f331209d6f274a7d73a411fbe15746ea3 (diff)
OpenGL Render restored.
I tried to make it integrate more with regular render but couldn't do it well, it still needs a 3D view to take the settings from, and can't run in a separate thread due to OpenGL. However, it is now rendering to an offscreen buffer which then gets displayed in the image window. This requires FBO's to be available, so a fallback creating a new window is still needed. Currently available from the Render menu in the top header.
Diffstat (limited to 'source/blender/gpu/GPU_extensions.h')
-rw-r--r--source/blender/gpu/GPU_extensions.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_extensions.h b/source/blender/gpu/GPU_extensions.h
index a910ff9c3e7..c2af4e8fcb1 100644
--- a/source/blender/gpu/GPU_extensions.h
+++ b/source/blender/gpu/GPU_extensions.h
@@ -48,6 +48,9 @@ typedef struct GPUTexture GPUTexture;
struct GPUFrameBuffer;
typedef struct GPUFrameBuffer GPUFrameBuffer;
+struct GPUOffScreen;
+typedef struct GPUOffScreen GPUOffScreen;
+
struct GPUShader;
typedef struct GPUShader GPUShader;
@@ -107,6 +110,14 @@ void GPU_framebuffer_free(GPUFrameBuffer *fb);
void GPU_framebuffer_restore();
+/* GPU OffScreen
+ - wrapper around framebuffer and texture for simple offscreen drawing */
+
+GPUOffScreen *GPU_offscreen_create(int width, int height);
+void GPU_offscreen_free(GPUOffScreen *ofs);
+void GPU_offscreen_bind(GPUOffScreen *ofs);
+void GPU_offscreen_unbind(GPUOffScreen *ofs);
+
/* GPU Shader
- only for fragment shaders now
- must call texture bind before setting a texture as uniform! */