~ubuntu-branches/ubuntu/saucy/blender/saucy-proposed

« back to all changes in this revision

Viewing changes to source/blender/gpu/GPU_extensions.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
struct Image;
40
40
struct ImageUser;
41
 
 
 
41
struct PreviewImage;
 
42
        
42
43
struct GPUTexture;
43
44
typedef struct GPUTexture GPUTexture;
44
45
 
107
108
 
108
109
GPUTexture *GPU_texture_create_1D(int w, float *pixels, char err_out[256]);
109
110
GPUTexture *GPU_texture_create_2D(int w, int h, float *pixels, char err_out[256]);
110
 
GPUTexture *GPU_texture_create_3D(int w, int h, int depth, float *fpixels);
 
111
GPUTexture *GPU_texture_create_3D(int w, int h, int depth, int channels, float *fpixels);
111
112
GPUTexture *GPU_texture_create_depth(int w, int h, char err_out[256]);
 
113
GPUTexture *GPU_texture_create_vsm_shadow_map(int size, char err_out[256]);
112
114
GPUTexture *GPU_texture_from_blender(struct Image *ima,
113
 
        struct ImageUser *iuser, double time, int mipmap);
 
115
        struct ImageUser *iuser, int isdata, double time, int mipmap);
 
116
GPUTexture *GPU_texture_from_preview(struct PreviewImage *prv, int mipmap);
 
117
 
114
118
void GPU_texture_free(GPUTexture *tex);
115
119
 
116
120
void GPU_texture_ref(GPUTexture *tex);
140
144
void GPU_framebuffer_free(GPUFrameBuffer *fb);
141
145
 
142
146
void GPU_framebuffer_restore(void);
 
147
void GPU_framebuffer_blur(GPUFrameBuffer *fb, GPUTexture *tex, GPUFrameBuffer *blurfb, GPUTexture *blurtex);
143
148
 
144
149
/* GPU OffScreen
145
150
 * - wrapper around framebuffer and texture for simple offscreen drawing
169
174
 
170
175
int GPU_shader_get_attribute(GPUShader *shader, const char *name);
171
176
 
 
177
/* Builtin/Non-generated shaders */
 
178
typedef enum GPUBuiltinShader {
 
179
        GPU_SHADER_VSM_STORE =                  (1<<0),
 
180
        GPU_SHADER_SEP_GAUSSIAN_BLUR =  (1<<1),
 
181
} GPUBuiltinShader;
 
182
 
 
183
GPUShader *GPU_shader_get_builtin_shader(GPUBuiltinShader shader);
 
184
void GPU_shader_free_builtin_shaders(void);
 
185
 
172
186
/* Vertex attributes for shaders */
173
187
 
174
188
#define GPU_MAX_ATTRIB          32