class GL_COLOR

All features

Direct parents

non-conformant parents

SMART_GL

Summary

creation features

exported features

Details

set_color (r: REAL, g: REAL, b: REAL, a: REAL)
set_from_collection (c: COLLECTION [E_][REAL])

require

  • c.count >= 4

set_from_collection (c: COLLECTION [E_][REAL])

require

  • c.count >= 4

set_color (r: REAL, g: REAL, b: REAL, a: REAL)
set_red (r: REAL)

require

  • color_array /= Void and then color_array.count >= 4
  • r.in_range(0, 1)

set_green (g: REAL)

require

  • color_array /= Void and then color_array.count >= 4
  • g.in_range(0, 1)

set_blue (b: REAL)

require

  • color_array /= Void and then color_array.count >= 4
  • b.in_range(0, 1)

set_alpha (a: REAL)

require

  • color_array /= Void and then color_array.count >= 4
  • a.in_range(0, 1)

red: REAL

require

  • color_array /= Void and then color_array.count >= 4

ensure

  • Result.in_range(0, 1)

green: REAL

require

  • color_array /= Void and then color_array.count >= 4

ensure

  • Result.in_range(0, 1)

blue: REAL

require

  • color_array /= Void and then color_array.count >= 4

ensure

  • Result.in_range(0, 1)

alpha: REAL

require

  • color_array /= Void and then color_array.count >= 4

ensure

  • Result.in_range(0, 1)

render
color_array: FAST_ARRAY [E_][REAL_32]
set_clear_color (red: REAL, green: REAL, blue: REAL, alpha: REAL)
set_clear_depth (depth: REAL)
translate (x: REAL, y: REAL, z: REAL)
rotate (angle: REAL, axis_x: REAL, axis_y: REAL, axis_z: REAL)
scale (x: REAL, y: REAL, z: REAL)
begin_rendering
end_rendering
begin_points

require

  • not has_begun

ensure

  • has_begun

begin_lines

require

  • not has_begun

ensure

  • has_begun

begin_line_strip

require

  • not has_begun

ensure

  • has_begun

begin_line_loop

require

  • not has_begun

ensure

  • has_begun

begin_triangles

require

  • not has_begun

ensure

  • has_begun

begin_triangle_strip

require

  • not has_begun

ensure

  • has_begun

begin_triangle_fan

require

  • not has_begun

ensure

  • has_begun

begin_quads

require

  • not has_begun

ensure

  • has_begun

begin_quad_strip

require

  • not has_begun

ensure

  • has_begun

begin_polygon

require

  • not has_begun

ensure

  • has_begun

end_primitive

require

  • has_begun

ensure

  • not has_begun

vertex (x: REAL, y: REAL, z: REAL)
full_red: GL_COLOR
full_green: GL_COLOR
full_blue: GL_COLOR
full_yellow: GL_COLOR
full_magenta: GL_COLOR
full_cyan: GL_COLOR
full_white: GL_COLOR
full_black: GL_COLOR
clamp (real: REAL): REAL

ensure

  • Result.in_range(0, 1)

has_begun: BOOLEAN
gl: GL
glu: GLU