nicol.opengl

GLUtils

object GLUtils extends AnyRef

This module-object is a type-safe. operational safe connection to the OpenGL functions. These are by no means complete, but complete enough for Nicol's 2D areas.

Whereever you can, you should not touch these. For drawing primitive Shapes, refer to nicol.renderer.GeometryRenderer, for images, see Image.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. GLUtils
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Type Members

  1. class DrawingList extends Immutable

    Represents a pre-compiled list in VRAM.

  2. trait PrimitiveMode extends AnyRef

    Attributes
    sealed

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. object LineLoop extends PrimitiveMode with Product with Serializable

  7. object LineStrip extends PrimitiveMode with Product with Serializable

  8. object Lines extends PrimitiveMode with Product with Serializable

  9. object Points extends PrimitiveMode with Product with Serializable

  10. object Polygon extends PrimitiveMode with Product with Serializable

  11. object Quads extends PrimitiveMode with Product with Serializable

  12. object Triangles extends PrimitiveMode with Product with Serializable

  13. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  14. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def colour (r: Float, g: Float, b: Float, a: Float): Unit

    Sets the vertex colour for the next vertices.

    Sets the vertex colour for the next vertices. Valid until overridden.

  16. def colour (r: Float, g: Float, b: Float): Unit

    Sets the vertex colour for the next vertices.

    Sets the vertex colour for the next vertices. Valid until overridden.

  17. def draw (mode: PrimitiveMode)(body: ⇒ Unit): Unit

    Creates a drawing context for the given primitive mode.

    Creates a drawing context for the given primitive mode.

    See also

    texCoort

    ,

    colour

    ,

    vertex

  18. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  19. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  22. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  23. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  24. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  25. def newList (body: ⇒ Unit): DrawingList

    Creates a pre-compiled drawing list.

  26. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  27. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  28. def preserve (body: ⇒ Unit): Unit

    Executes a drawing/transformation operation, using current transforms, but without making changes to them.

  29. def resetTransforms : Unit

  30. def rotate (a: Float): Unit

    Adds a rotation to the transforms.

  31. def scale (s: Float): Unit

    Adds uniform scaling to the transforms.

  32. def scale (sx: Float, sy: Float): Unit

    Adds 2D scaling to the transforms.

  33. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  34. def texCoord (t: Float, u: Float): Unit

    Sets the texture coordinate information for the next vertices.

    Sets the texture coordinate information for the next vertices. Valid until overridden.

  35. def toString (): String

    Definition Classes
    AnyRef → Any
  36. def translate (v: Vector): Unit

  37. def translate (x: Float, y: Float): Unit

    Adds a transation to the transforms.

  38. def vertex (x: Float, y: Float, z: Float): Unit

    Draws a 3D vertex.

  39. def vertex (x: Float, y: Float): Unit

    Draws a 2D vertex.

  40. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  41. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. def withoutTextures (body: ⇒ Unit): Unit

    Removes textures from the enclosed function.

    Removes textures from the enclosed function. All operations for texturing within this context will be ignored.

Inherited from AnyRef

Inherited from Any