Gamnit graphical program from the shaders source code

Introduced properties

Redefined properties

redef type SELF: GamnitProgramFromSource

gamnit $ GamnitProgramFromSource :: SELF

Type of this instance, automatically specialized in every class
redef fun fragment_shader: FragmentShader

gamnit $ GamnitProgramFromSource :: fragment_shader

Fragment shader to attach to this program
redef fun vertex_shader: VertexShader

gamnit $ GamnitProgramFromSource :: vertex_shader

Vertex shader to attach to this program

All properties

fun !=(other: nullable Object): Bool

core :: Object :: !=

Have self and other different values?
fun ==(other: nullable Object): Bool

core :: Object :: ==

Have self and other the same value?
type CLASS: Class[SELF]

core :: Object :: CLASS

The type of the class of self.
type SELF: Object

core :: Object :: SELF

Type of this instance, automatically specialized in every class
fun attributes: AttributeMap

gamnit :: GamnitProgram :: attributes

Attributes of this program organized by name
protected fun attributes=(attributes: AttributeMap)

gamnit :: GamnitProgram :: attributes=

Attributes of this program organized by name
protected fun class_factory(name: String): CLASS

core :: Object :: class_factory

Implementation used by get_class to create the specific class.
fun class_name: String

core :: Object :: class_name

The class name of the object.
fun delete

gamnit :: GamnitProgram :: delete

Delete this program if it has not already been deleted
fun deleted: Bool

gamnit :: GamnitProgram :: deleted

Has this program been deleted?
protected fun deleted=(deleted: Bool)

gamnit :: GamnitProgram :: deleted=

Has this program been deleted?
fun diagnose

gamnit :: GamnitProgram :: diagnose

Diagnose possible problems with the shaders of the program
fun error: nullable Error

gamnit :: GamnitProgram :: error

Last error raised by compile_and_link
protected fun error=(error: nullable Error)

gamnit :: GamnitProgram :: error=

Last error raised by compile_and_link
abstract fun fragment_shader: FragmentShader

gamnit :: GamnitProgram :: fragment_shader

Fragment shader to attach to this program
abstract fun fragment_shader_source: Text

gamnit :: GamnitProgramFromSource :: fragment_shader_source

Source code of the fragment shader
fun get_class: CLASS

core :: Object :: get_class

The meta-object representing the dynamic type of self.
fun hash: Int

core :: Object :: hash

The hash code of the object.
init init

core :: Object :: init

fun inspect: String

core :: Object :: inspect

Developer readable representation of self.
protected fun inspect_head: String

core :: Object :: inspect_head

Return "CLASSNAME:#OBJECTID".
intern fun is_same_instance(other: nullable Object): Bool

core :: Object :: is_same_instance

Return true if self and other are the same instance (i.e. same identity).
fun is_same_serialized(other: nullable Object): Bool

core :: Object :: is_same_serialized

Is self the same as other in a serialization context?
intern fun is_same_type(other: Object): Bool

core :: Object :: is_same_type

Return true if self and other have the same dynamic type.
intern fun object_id: Int

core :: Object :: object_id

An internal hash code for the object based on its identity.
fun output

core :: Object :: output

Display self on stdout (debug only).
intern fun output_class_name

core :: Object :: output_class_name

Display class name on stdout (debug only).
fun serialization_hash: Int

core :: Object :: serialization_hash

Hash value use for serialization
intern fun sys: Sys

core :: Object :: sys

Return the global sys object, the only instance of the Sys class.
abstract fun to_jvalue(env: JniEnv): JValue

core :: Object :: to_jvalue

fun to_s: String

core :: Object :: to_s

User readable representation of self.
fun uniforms: UniformMap

gamnit :: GamnitProgram :: uniforms

Uniforms of this program organized by name
protected fun uniforms=(uniforms: UniformMap)

gamnit :: GamnitProgram :: uniforms=

Uniforms of this program organized by name
fun use

gamnit :: GamnitProgram :: use

Notify the GPU to use this program
abstract fun vertex_shader: VertexShader

gamnit :: GamnitProgram :: vertex_shader

Vertex shader to attach to this program
abstract fun vertex_shader_source: Text

gamnit :: GamnitProgramFromSource :: vertex_shader_source

Source code of the vertex shader
package_diagram gamnit::GamnitProgramFromSource GamnitProgramFromSource gamnit::GamnitProgram GamnitProgram gamnit::GamnitProgramFromSource->gamnit::GamnitProgram core::Object Object gamnit::GamnitProgram->core::Object ...core::Object ... ...core::Object->core::Object gamnit::BlinnPhongProgram BlinnPhongProgram gamnit::BlinnPhongProgram->gamnit::GamnitProgramFromSource gamnit::ShadowDepthProgram ShadowDepthProgram gamnit::ShadowDepthProgram->gamnit::GamnitProgramFromSource gamnit::ParticleProgram ParticleProgram gamnit::ParticleProgram->gamnit::GamnitProgramFromSource gamnit::SelectionProgram SelectionProgram gamnit::SelectionProgram->gamnit::GamnitProgramFromSource gamnit::NormalProgram NormalProgram gamnit::NormalProgram->gamnit::BlinnPhongProgram gamnit::NormalProgram... ... gamnit::NormalProgram...->gamnit::NormalProgram gamnit::ExplosionProgram ExplosionProgram gamnit::ExplosionProgram->gamnit::ParticleProgram gamnit::SmokeProgram SmokeProgram gamnit::SmokeProgram->gamnit::ParticleProgram gamnit::ExplosionProgram... ... gamnit::ExplosionProgram...->gamnit::ExplosionProgram gamnit::SmokeProgram... ... gamnit::SmokeProgram...->gamnit::SmokeProgram

Ancestors

interface Object

core :: Object

The root of the class hierarchy.

Parents

abstract class GamnitProgram

gamnit :: GamnitProgram

Gamnit graphical program

Children

class BlinnPhongProgram

gamnit :: BlinnPhongProgram

Graphic program to display 3D models with Blinn-Phong specular lighting
class ParticleProgram

gamnit :: ParticleProgram

Particle drawing program using gl_POINTS
class SelectionProgram

gamnit :: SelectionProgram

Program to draw selection values
class ShadowDepthProgram

gamnit :: ShadowDepthProgram

Efficiently draw actors from the light view

Descendants

class ExplosionProgram

gamnit :: ExplosionProgram

Graphics program to display blowing up particles
class NormalProgram

gamnit :: NormalProgram

Program to color objects from their normal vectors
class SmokeProgram

gamnit :: SmokeProgram

Graphics program to display particles slowly drifting upwards

Class definitions

gamnit $ GamnitProgramFromSource
# Gamnit graphical program from the shaders source code
class GamnitProgramFromSource
	super GamnitProgram

	# Source code of the vertex shader
	fun vertex_shader_source: Text is abstract

	redef var vertex_shader = new VertexShader(vertex_shader_source) is lazy

	# Source code of the fragment shader
	fun fragment_shader_source: Text is abstract

	redef var fragment_shader = new FragmentShader(fragment_shader_source) is lazy
end
lib/gamnit/programs.nit:494,1--507,3