Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_framebuffer.h
| Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | |||||
| void GPU_offscreen_free(GPUOffScreen *ofs); | void GPU_offscreen_free(GPUOffScreen *ofs); | ||||
| void GPU_offscreen_bind(GPUOffScreen *ofs, bool save); | void GPU_offscreen_bind(GPUOffScreen *ofs, bool save); | ||||
| void GPU_offscreen_unbind(GPUOffScreen *ofs, bool restore); | void GPU_offscreen_unbind(GPUOffScreen *ofs, bool restore); | ||||
| void GPU_offscreen_read_pixels(GPUOffScreen *ofs, int type, void *pixels); | void GPU_offscreen_read_pixels(GPUOffScreen *ofs, int type, void *pixels); | ||||
| void GPU_offscreen_draw_to_screen(GPUOffScreen *ofs, int x, int y); | void GPU_offscreen_draw_to_screen(GPUOffScreen *ofs, int x, int y); | ||||
| int GPU_offscreen_width(const GPUOffScreen *ofs); | int GPU_offscreen_width(const GPUOffScreen *ofs); | ||||
| int GPU_offscreen_height(const GPUOffScreen *ofs); | int GPU_offscreen_height(const GPUOffScreen *ofs); | ||||
| struct GPUTexture *GPU_offscreen_color_texture(const GPUOffScreen *ofs); | struct GPUTexture *GPU_offscreen_color_texture(const GPUOffScreen *ofs); | ||||
| struct GPUContext *GPU_offscreen_context(const GPUOffScreen *ofs); | |||||
| void GPU_offscreen_viewport_data_get( | void GPU_offscreen_viewport_data_get( | ||||
| GPUOffScreen *ofs, | GPUOffScreen *ofs, | ||||
| GPUFrameBuffer **r_fb, struct GPUTexture **r_color, struct GPUTexture **r_depth); | GPUFrameBuffer **r_fb, struct GPUTexture **r_color, struct GPUTexture **r_depth); | ||||
| void GPU_clear_color(float red, float green, float blue, float alpha); | void GPU_clear_color(float red, float green, float blue, float alpha); | ||||
| void GPU_clear(GPUFrameBufferBits flags); | void GPU_clear(GPUFrameBufferBits flags); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __GPU_FRAMEBUFFER_H__ */ | #endif /* __GPU_FRAMEBUFFER_H__ */ | ||||