Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_framebuffer.h
| Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| GPUOffScreen *GPU_offscreen_create(int width, int height, int samples, | GPUOffScreen *GPU_offscreen_create(int width, int height, int samples, | ||||
| bool depth, bool high_bitdepth, char err_out[256]); | bool depth, bool high_bitdepth, char err_out[256]); | ||||
| 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); | |||||
| 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); | ||||
| 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); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __GPU_FRAMEBUFFER_H__ */ | #endif /* __GPU_FRAMEBUFFER_H__ */ | ||||