RenderEngine API: add viewport draw utility functions to bind a GLSL fragment

shader for converting colors from linear to display space, based on the scene
color management settings.

if engine.support_display_space_shader(scene): # test graphics card support
	engine.bind_display_space_shader(scene)
	# draw pixels ..
	engine.unbind_display_space_shader()
This commit is contained in:
Brecht Van Lommel
2013-08-30 23:49:35 +00:00
parent 6785874e7a
commit 60ff60dcdc
11 changed files with 100 additions and 19 deletions

View File

@@ -381,6 +381,11 @@ void FallbackImpl::matrixTransformScale(float * , float * , const float *)
{
}
bool FallbackImpl::supportGLSLDraw(void)
{
return false;
}
bool FallbackImpl::setupGLSLDraw(struct OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRcPtr *processor, bool predivide)
{
return false;