Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_texture.h
| Show All 27 Lines | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct GPUVertBuf; | struct GPUVertBuf; | ||||
| struct Image; | struct Image; | ||||
| struct ImageUser; | struct ImageUser; | ||||
| struct MovieClip; | |||||
| struct MovieClipUser; | |||||
| struct PreviewImage; | struct PreviewImage; | ||||
| struct rcti; | struct rcti; | ||||
| struct GPUFrameBuffer; | struct GPUFrameBuffer; | ||||
| typedef struct GPUTexture GPUTexture; | typedef struct GPUTexture GPUTexture; | ||||
| /* GPU Texture | /* GPU Texture | ||||
| * - always returns unsigned char RGBA textures | * - always returns unsigned char RGBA textures | ||||
| ▲ Show 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | |||||
| GPUTexture *GPU_texture_create_from_vertbuf( | GPUTexture *GPU_texture_create_from_vertbuf( | ||||
| struct GPUVertBuf *vert); | struct GPUVertBuf *vert); | ||||
| GPUTexture *GPU_texture_create_buffer( | GPUTexture *GPU_texture_create_buffer( | ||||
| eGPUTextureFormat data_type, const uint buffer); | eGPUTextureFormat data_type, const uint buffer); | ||||
| GPUTexture *GPU_texture_from_bindcode(int textarget, int bindcode); | GPUTexture *GPU_texture_from_bindcode(int textarget, int bindcode); | ||||
| GPUTexture *GPU_texture_from_blender( | GPUTexture *GPU_texture_from_blender( | ||||
| struct Image *ima, struct ImageUser *iuser, int textarget, bool is_data); | struct Image *ima, struct ImageUser *iuser, int textarget, bool is_data); | ||||
| GPUTexture *GPU_texture_from_movieclip( | |||||
| struct MovieClip *clip, struct MovieClipUser *cuser, int textarget, bool is_data); | |||||
| GPUTexture *GPU_texture_from_preview(struct PreviewImage *prv, int mipmap); | GPUTexture *GPU_texture_from_preview(struct PreviewImage *prv, int mipmap); | ||||
| void GPU_texture_add_mipmap(GPUTexture *tex, eGPUDataFormat gpu_data_format, int miplvl, const void *pixels); | void GPU_texture_add_mipmap(GPUTexture *tex, eGPUDataFormat gpu_data_format, int miplvl, const void *pixels); | ||||
| void GPU_texture_update(GPUTexture *tex, eGPUDataFormat data_format, const void *pixels); | void GPU_texture_update(GPUTexture *tex, eGPUDataFormat data_format, const void *pixels); | ||||
| void GPU_texture_update_sub( | void GPU_texture_update_sub( | ||||
| GPUTexture *tex, eGPUDataFormat gpu_data_format, const void *pixels, | GPUTexture *tex, eGPUDataFormat gpu_data_format, const void *pixels, | ||||
| int offset_x, int offset_y, int offset_z, int width, int height, int depth); | int offset_x, int offset_y, int offset_z, int width, int height, int depth); | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||