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 140 Lines • ▼ Show 20 Lines | GPUTexture *GPU_texture_create_cube(int w, | ||||
| char err_out[256]); | char err_out[256]); | ||||
| GPUTexture *GPU_texture_create_from_vertbuf(struct GPUVertBuf *vert); | GPUTexture *GPU_texture_create_from_vertbuf(struct GPUVertBuf *vert); | ||||
| GPUTexture *GPU_texture_create_buffer(eGPUTextureFormat data_type, const uint buffer); | GPUTexture *GPU_texture_create_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(struct Image *ima, struct ImageUser *iuser, int textarget); | GPUTexture *GPU_texture_from_blender(struct Image *ima, struct ImageUser *iuser, int textarget); | ||||
| GPUTexture *GPU_texture_from_preview(struct PreviewImage *prv, int mipmap); | GPUTexture *GPU_texture_from_preview(struct PreviewImage *prv, int mipmap); | ||||
| /* movie clip drawing */ | |||||
| GPUTexture *GPU_texture_from_movieclip(struct MovieClip *clip, | |||||
| struct MovieClipUser *cuser, | |||||
| int textarget); | |||||
| void GPU_free_texture_movieclip(struct MovieClip *clip); | |||||
| void GPU_texture_add_mipmap(GPUTexture *tex, | void GPU_texture_add_mipmap(GPUTexture *tex, | ||||
| eGPUDataFormat gpu_data_format, | eGPUDataFormat gpu_data_format, | ||||
| int miplvl, | int miplvl, | ||||
| const void *pixels); | 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(GPUTexture *tex, | void GPU_texture_update_sub(GPUTexture *tex, | ||||
| eGPUDataFormat gpu_data_format, | eGPUDataFormat gpu_data_format, | ||||
| ▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines | |||||