class PF3d::Projector

Defined in:

pf3d/projector.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : Float64 | Int32, height : Float64 | Int32, camera : PF3d::Camera = Camera.new) #

[View source]

Instance Method Detail

def aspect_ratio #

[View source]
def aspect_ratio=(aspect_ratio : Float64 | Nil) #

[View source]
def camera : Camera #

[View source]
def camera=(camera : Camera) #

[View source]
def clipping_plane_far : PF2d::Vec3(Float64) #

[View source]
def clipping_plane_far=(clipping_plane_far : PF2d::Vec3(Float64)) #

[View source]
def clipping_plane_near : PF2d::Vec3(Float64) #

[View source]
def clipping_plane_near=(clipping_plane_near : PF2d::Vec3(Float64)) #

[View source]
def far : Float64 #

[View source]
def far=(far : Float64) #

[View source]
def fov : Float64 #

[View source]
def fov=(value : Float64) #

[View source]
def fov_rad #

[View source]
def height : Int32 | Float64 #

[View source]
def height=(value : Float64 | Int32) #

[View source]
def light : PF2d::Vec3(Float64) #

[View source]
def light=(light : PF2d::Vec3(Float64)) #

[View source]
def mat_proj #

[View source]
def mat_proj=(mat_proj : PF2d::Matrix(Float64, 16) | Nil) #

[View source]
def near : Float64 #

[View source]
def near=(near : Float64) #

[View source]
def project(tris : Array(Tri), camera = @camera, sort : Bool = false) #

Project an array of Triangles into screen space


[View source]
def width : Int32 | Float64 #

[View source]
def width=(value : Float64 | Int32) #

[View source]