pub type RenderTexture2D = RenderTexture;
Expand description

RenderTexture2D, same as RenderTexture

Aliased Type§

struct RenderTexture2D { /* private fields */ }

Implementations§

source§

impl RenderTexture

source

pub fn width(&self) -> u32

Texture base width

source

pub fn height(&self) -> u32

Texture base height

source

pub fn new(width: u32, height: u32) -> Option<Self>

Load texture for rendering (framebuffer)

Trait Implementations§

source§

impl Clone for RenderTexture

source§

fn clone(&self) -> RenderTexture

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RenderTexture

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for RenderTexture

source§

fn drop(&mut self)

Executes the destructor for this type. Read more