diff options
Diffstat (limited to 'source/blender/draw/DRW_engine.h')
-rw-r--r-- | source/blender/draw/DRW_engine.h | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/source/blender/draw/DRW_engine.h b/source/blender/draw/DRW_engine.h index 4f86e3fcd91..87cfa8e8e3b 100644 --- a/source/blender/draw/DRW_engine.h +++ b/source/blender/draw/DRW_engine.h @@ -26,20 +26,40 @@ #ifndef __DRW_ENGINE_H__ #define __DRW_ENGINE_H__ -//#define WITH_VIEWPORT_CACHE_TEST - +struct CollectionEngineSettings; struct DRWPass; struct Material; struct Scene; +struct DrawEngineType; +struct IDProperty; +struct bContext; +struct Object; + +/* Buffer and textures used by the viewport by default */ +typedef struct DefaultFramebufferList { + struct GPUFrameBuffer *default_fb; +} DefaultFramebufferList; + +typedef struct DefaultTextureList { + struct GPUTexture *color; + struct GPUTexture *depth; +} DefaultTextureList; -void DRW_engines_init(void); +void DRW_engines_register(void); void DRW_engines_free(void); +void DRW_engine_register(struct DrawEngineType *draw_engine_type); + +void DRW_draw_view(const struct bContext *C); + +void DRW_object_engine_data_free(struct Object *ob); + /* This is here because GPUViewport needs it */ void DRW_pass_free(struct DRWPass *pass); -/* Settings */ -void *DRW_material_settings_get(struct Material *ma, const char *engine_name); -void *DRW_render_settings_get(struct Scene *scene, const char *engine_name); +/* Mode engines initialization */ +void OBJECT_collection_settings_create(struct IDProperty *properties); +void EDIT_MESH_collection_settings_create(struct IDProperty *properties); +void EDIT_ARMATURE_collection_settings_create(struct IDProperty *properties); -#endif /* __DRW_ENGINE_H__ */
\ No newline at end of file +#endif /* __DRW_ENGINE_H__ */ |