class Boleite::Shape

Included Modules

Defined in:

boleite/graphics/shape.cr
boleite/graphics/shape/vertices.cr

Constructors

Instance Method Summary

Instance methods inherited from module Boleite::Transformable

move(x, y)
move(offset)
move
, origo origo, origo=(origo) origo=, position position, position=(pos) position=, rotate(rot) rotate, rotation rotation, rotation=(rot) rotation=, scale scale, scale=(scale) scale=, transformation transformation, update_transformation update_transformation

Instance methods inherited from module Boleite::Drawable

render(renderer : Renderer, transform : Matrix44f32) : Void render

Constructor Detail

def self.new(p : Primitive) #

[View source]
def self.new #

[View source]

Instance Method Detail

def [](index) : Vector2f32 #

[View source]
def []=(index, pos) #

[View source]
def add_vertex(x, y) #

[View source]
def add_vertex(pos) #

[View source]
def clear_vertices #

[View source]

[View source]
def color=(color : Boleite::VectorImp(Float32, 4)) #

[View source]
def custom_shader : Boleite::Shader? #

[View source]
def custom_shader=(custom_shader : Boleite::Shader | Nil) #

[View source]
def num_vertices #

[View source]
def primitive(*args, **options) #

[View source]
def primitive(*args, **options, &) #

[View source]
def primitive=(p) #

[View source]