Function glLoadMatrixf

  • glLoadMatrix replaces the current matrix with the one whose elements are specified by m. The current matrix is the projection matrix, modelview matrix, or texture matrix, depending on the current matrix mode (see glMatrixMode).

    The current matrix, M, defines a transformation of coordinates. For instance, assume M refers to the modelview matrix. If ๐ฏ = (๐ฏ[0], ๐ฏ[1], ๐ฏ[2], ๐ฏ[3]) is the set of object coordinates of a vertex, and ๐ฆ points to an array of 16 single- or double-precision floating-point values ๐ฆ = {๐ฆ[0], ๐ฆ[1], ..., ๐ฆ[15]}, then the modelview transformation M(๐ฏ) does the following:

    ใ…คใ…คใ…คใ…คโŽ›๐ฆ[0]ใ…ค๐ฆ[4]ใ…ค๐ฆ[8] ใ…ค๐ฆ[12]โŽžใ…คใ…คใ…คโŽ›๐ฏ[0]โŽž

    ใ…คใ…คใ…คใ…คโŽœ๐ฆ[1]ใ…ค๐ฆ[5]ใ…ค๐ฆ[9] ใ…ค๐ฆ[13]โŽŸใ…คใ…คใ…คโŽœ๐ฏ[1]โŽŸ

    M(๐ฏ) =ใ…คโŽœ๐ฆ[2]ใ…ค๐ฆ[6]ใ…ค๐ฆ[10]ใ…ค๐ฆ[14]โŽŸใ…คร— ใ…คโŽœ๐ฏ[2]โŽŸ

    ใ…คใ…คใ…คใ…คโŽ๐ฆ[3]ใ…ค๐ฆ[7]ใ…ค๐ฆ[11]ใ…ค๐ฆ[15]โŽ ใ…คใ…คใ…คโŽ๐ฏ[3]โŽ 

    Projection and texture transformations are similarly defined.

    Parameters

    • m: number | number[]

      Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 ร— 4 column-major matrix.

    Returns void

    Summary

    replace the current matrix with the specified matrix

    See

    glLoadMatrix

Generated using TypeDoc