Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_image.c
| Show First 20 Lines • Show All 392 Lines • ▼ Show 20 Lines | static void rna_Image_resolution_set(PointerRNA *ptr, const float *values) | ||||
| } | } | ||||
| BKE_image_release_ibuf(im, ibuf, lock); | BKE_image_release_ibuf(im, ibuf, lock); | ||||
| } | } | ||||
| static int rna_Image_bindcode_get(PointerRNA *ptr) | static int rna_Image_bindcode_get(PointerRNA *ptr) | ||||
| { | { | ||||
| Image *ima = (Image *)ptr->data; | Image *ima = (Image *)ptr->data; | ||||
| GPUTexture *tex = ima->gputexture[TEXTARGET_TEXTURE_2D]; | GPUTexture *tex = ima->gputexture[TEXTARGET_TEXTURE_2D][0]; | ||||
| return (tex) ? GPU_texture_opengl_bindcode(tex) : 0; | return (tex) ? GPU_texture_opengl_bindcode(tex) : 0; | ||||
| } | } | ||||
| static int rna_Image_depth_get(PointerRNA *ptr) | static int rna_Image_depth_get(PointerRNA *ptr) | ||||
| { | { | ||||
| Image *im = (Image *)ptr->data; | Image *im = (Image *)ptr->data; | ||||
| ImBuf *ibuf; | ImBuf *ibuf; | ||||
| void *lock; | void *lock; | ||||
| ▲ Show 20 Lines • Show All 759 Lines • Show Last 20 Lines | |||||