rprContextCreateFramebufferFromGLTexture2D

Creates a framebuffer object from an OpenGL texture.

rpr_int rprContextCreateFramebufferFromGLTexture2D(

rpr_context context,

rpr_GLenum target,

rpr_GLint miplevel,

rpr_GLuint texture,

rpr_framebuffer * out_fb);

Parameters

Parameter

Description

rpr_context context

The context from which the image will be generated.

target

Type of a texture. See supported texture types.

miplevel

A value within the mipmap range.

texture

A GLUint handle to the texture.

out_fb

A pointer to the created framebuffer object.

Notes

rpr_GLenum, rpr_GLint and rpr_GLuint correspond to OpenGL types.

Output

A pointer to a framebuffer object.

Return

Returns RPR_SUCCESS in case of success, or RPR_ERROR code if a problem was encountered.

To learn how to handle errors in AMD Radeon ProRender SDK, see Error Handling.