struct Eagle::GPU::RenderTargetHandle

Overview

GPU handles for an off-screen render target. Canvas wraps one.

Defined in:

eagle/gpu/device.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(fbo : UInt32, color : UInt32, depth : UInt32, width : Int32, height : Int32, depth_texture : Bool = false) #

Wraps render-target handles.


Instance Method Detail

def color : UInt32 #

Color texture id.


def depth : UInt32 #

Depth buffer or texture id.


def depth_texture? : Bool #

True when #depth is a sampleable depth texture (shadow maps).


def fbo : UInt32 #

Framebuffer object id.


def height : Int32 #

Height in pixels.


def width : Int32 #

Width in pixels.