class VERTEX

All features

Direct parents

non-conformant parents

SMART_GL

Summary

creation features

exported features

Details

make (cx: REAL, cy: REAL, cz: REAL)

ensure

  • x = cx
  • y = cy
  • z = cz

make_with_color (cx: REAL, cy: REAL, cz: REAL, cr: REAL, cg: REAL, cb: REAL, ca: REAL)
make_with_color_object (cx: REAL, cy: REAL, cz: REAL, co: GL_COLOR)
make (cx: REAL, cy: REAL, cz: REAL)

ensure

  • x = cx
  • y = cy
  • z = cz

make_with_color (cx: REAL, cy: REAL, cz: REAL, cr: REAL, cg: REAL, cb: REAL, ca: REAL)
make_with_color_object (cx: REAL, cy: REAL, cz: REAL, co: GL_COLOR)
set_color (co: GL_COLOR)

require

  • co /= Void

ensure

  • color = co

set_normal (cx: REAL, cy: REAL, cz: REAL)

ensure

  • has_normal = True

set_1d_texture_coord (cs: REAL)

ensure

  • s = cs

set_2d_texture_coord (cs: REAL, ct: REAL)

ensure

  • s = cs
  • t = ct

set_3d_texture_coord (cs: REAL, ct: REAL, cr: REAL)

ensure

  • s = cs
  • t = ct
  • r = cr

set_4d_texture_coord (cs: REAL, ct: REAL, cr: REAL, cq: REAL)

ensure

  • s = cs
  • t = ct
  • r = cr
  • q = cq

x: REAL
y: REAL
z: REAL
nx: REAL
ny: REAL
nz: REAL
s: REAL
t: REAL
r: REAL
q: REAL
color: GL_COLOR
is_translucent: BOOLEAN
render
has_normal: BOOLEAN
render_1d_texture
render_2d_texture
render_3d_texture
render_4d_texture
texture_renderer: PROCEDURE [O_ -> TUPLE][TUPLE]
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