Module: Rugl

Defined in:
lib/rugl.rb,
lib/rugl/util.rb,
lib/rugl/shader.rb,
lib/rugl/command.rb,
lib/rugl/context.rb,
lib/rugl/dynamic.rb,
lib/rugl/version.rb,
lib/rugl/state/cull.rb,
lib/rugl/state/blend.rb,
lib/rugl/state/depth.rb,
lib/rugl/resources/vao.rb,
lib/rugl/state/scissor.rb,
lib/rugl/state/stencil.rb,
lib/rugl/state_manager.rb,
lib/rugl/resources/base.rb,
lib/rugl/command_compiler.rb,
lib/rugl/resources/buffer.rb,
lib/rugl/state/color_mask.rb,
lib/rugl/resources/texture.rb,
lib/rugl/resources/elements.rb,
lib/rugl/state/polygon_offset.rb,
lib/rugl/resources/framebuffer.rb,
lib/rugl/resources/renderbuffer.rb,
lib/rugl/backends/opengl_bindings.rb

Defined Under Namespace

Modules: Backends, Dynamic, Resources, State, Util Classes: Command, CommandCompiler, CommandError, Context, ContextError, Error, Program, ProgramLinkError, ResourceError, Shader, ShaderCompileError, StateManager

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.context(name) ⇒ Object



21
22
23
# File 'lib/rugl.rb', line 21

def self.context(name)
  Dynamic::ContextVar.new(name)
end

.create(**opts) ⇒ Object



13
14
15
# File 'lib/rugl.rb', line 13

def self.create(**opts)
  Context.new(**opts)
end

.prop(name) ⇒ Object



17
18
19
# File 'lib/rugl.rb', line 17

def self.prop(name)
  Dynamic::Prop.new(name)
end

.this(name) ⇒ Object



25
26
27
# File 'lib/rugl.rb', line 25

def self.this(name)
  Dynamic::ThisVar.new(name)
end