Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_texture.h
| Show All 30 Lines | |||||
| #endif | #endif | ||||
| struct GPUVertBuf; | struct GPUVertBuf; | ||||
| struct Image; | struct Image; | ||||
| struct ImageUser; | struct ImageUser; | ||||
| struct MovieClip; | struct MovieClip; | ||||
| struct MovieClipUser; | struct MovieClipUser; | ||||
| struct PreviewImage; | struct PreviewImage; | ||||
| struct ImBuf; | |||||
| 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 | ||||
| * - if texture with non square dimensions is created, depending on the | * - if texture with non square dimensions is created, depending on the | ||||
| * graphics card capabilities the texture may actually be stored in a | * graphics card capabilities the texture may actually be stored in a | ||||
| ▲ Show 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | |||||
| GPUTexture *GPU_texture_create_cube(int w, | GPUTexture *GPU_texture_create_cube(int w, | ||||
| eGPUTextureFormat data_type, | eGPUTextureFormat data_type, | ||||
| const float *pixels, | const float *pixels, | ||||
| 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, | |||||
| struct ImBuf *ibuf, | |||||
| 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 */ | /* movie clip drawing */ | ||||
| GPUTexture *GPU_texture_from_movieclip(struct MovieClip *clip, | GPUTexture *GPU_texture_from_movieclip(struct MovieClip *clip, | ||||
| struct MovieClipUser *cuser, | struct MovieClipUser *cuser, | ||||
| int textarget); | int textarget); | ||||
| void GPU_free_texture_movieclip(struct MovieClip *clip); | void GPU_free_texture_movieclip(struct MovieClip *clip); | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||