Skip to contents

Create a new render_texture object.

Usage

render_texture(id, texture, depth)

Arguments

id

A non-negative integer. OpenGL framebuffer object id.

texture

A texture. Color buffer attachment texture.

depth

A texture. Depth buffer attachment texture.

Value

A render_texture

Note

This class has been auto-generated from the following Raylib struct definition:

typedef struct RenderTexture {
    unsigned int id;        // OpenGL framebuffer object id
    Texture texture;        // Color buffer attachment texture
    Texture depth;        // Depth buffer attachment texture
} RenderTexture;

Examples

ren <- render_texture(0L, load_texture("file.png"), load_texture("file.png"))
ren$id
#> [1] 0
ren$texture
#> texture(id = 0, width = 0, height = 0, mipmaps = 0, format = 0)