glu(3)

MODULE
glu - A part of the standard OpenGL Utility api.

DESCRIPTION

A part of the standard OpenGL Utility api. See www.opengl.org <http://www.opengl.org/sdk/docs/man/>

Booleans are represented by integers 0 and 1.

DATA TYPES

    clamp():

        A float clamped between 0.0 - 1.0

    enum():

        An integer defined in gl.hrl

    offset():

        An integer which is an offset in an array

    wx_mem():

        see wx.erl on memory allocation functions

EXPORTS

tesselate(X1::Vec3, Vs::[Vec3]) -> {Triangles, VertexPos}

    Types
        Vec3 = {float(), float(), float()}
        Triangles = [VertexIndex::integer()]
        VertexPos = binary()

    General purpose polygon triangulation. The first argument is the normal and the second a list of vertex positions. Returned is a list of indecies of the vertices and a binary (64bit native float) containing an array of vertex positions, it starts with the vertices in Vs and may contain newly created vertices in the end.

build1DMipmapLevels(Target::enum(), InternalFormat::integer(), Width::integer(), Format::enum(), Type::enum(), Level::integer(), Base::integer(), Max::integer(), Data::binary()) -> integer()

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluBuild1DMipmapLevels.xml> documentation.

build1DMipmaps(Target::enum(), InternalFormat::integer(), Width::integer(), Format::enum(), Type::enum(), Data::binary()) -> integer()

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluBuild1DMipmaps.xml> documentation.

build2DMipmapLevels(Target::enum(), InternalFormat::integer(), Width::integer(), Height::integer(), Format::enum(), Type::enum(), Level::integer(), Base::integer(), Max::integer(), Data::binary()) -> integer()

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluBuild2DMipmapLevels.xml> documentation.

build2DMipmaps(Target::enum(), InternalFormat::integer(), Width::integer(), Height::integer(), Format::enum(), Type::enum(), Data::binary()) -> integer()

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluBuild2DMipmaps.xml> documentation.

build3DMipmapLevels(Target::enum(), InternalFormat::integer(), Width::integer(), Height::integer(), Depth::integer(), Format::enum(), Type::enum(), Level::integer(), Base::integer(), Max::integer(), Data::binary()) -> integer()

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluBuild3DMipmapLevels.xml> documentation.

build3DMipmaps(Target::enum(), InternalFormat::integer(), Width::integer(), Height::integer(), Depth::integer(), Format::enum(), Type::enum(), Data::binary()) -> integer()

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluBuild3DMipmaps.xml> documentation.

checkExtension(ExtName::[integer()], ExtString::[integer()]) -> 0 | 1

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluCheckExtension.xml> documentation.

cylinder(Quad::integer(), Base::float(), Top::float(), Height::float(), Slices::integer(), Stacks::integer()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluCylinder.xml> documentation.

deleteQuadric(Quad::integer()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluDeleteQuadric.xml> documentation.

disk(Quad::integer(), Inner::float(), Outer::float(), Slices::integer(), Loops::integer()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluDisk.xml> documentation.

errorString(Error::enum()) -> string()

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluErrorString.xml> documentation.

getString(Name::enum()) -> string()

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluGetString.xml> documentation.

lookAt(EyeX::float(), EyeY::float(), EyeZ::float(), CenterX::float(), CenterY::float(), CenterZ::float(), UpX::float(), UpY::float(), UpZ::float()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluLookAt.xml> documentation.

newQuadric() -> integer()

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluNewQuadric.xml> documentation.

ortho2D(Left::float(), Right::float(), Bottom::float(), Top::float()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluOrtho2D.xml> documentation.

partialDisk(Quad::integer(), Inner::float(), Outer::float(), Slices::integer(), Loops::integer(), Start::float(), Sweep::float()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluPartialDisk.xml> documentation.

perspective(Fovy::float(), Aspect::float(), ZNear::float(), ZFar::float()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluPerspective.xml> documentation.

pickMatrix(X::float(), Y::float(), DelX::float(), DelY::float(), Viewport::{integer()}) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluPickMatrix.xml> documentation.

project(ObjX::float(), ObjY::float(), ObjZ::float(), Model::{float()}, Proj::{float()}, View::{integer()}) -> {integer(), WinX::float(), WinY::float(), WinZ::float()}

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluProject.xml> documentation.

quadricDrawStyle(Quad::integer(), Draw::enum()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluQuadricDrawStyle.xml> documentation.

quadricNormals(Quad::integer(), Normal::enum()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluQuadricNormals.xml> documentation.

quadricOrientation(Quad::integer(), Orientation::enum()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluQuadricOrientation.xml> documentation.

quadricTexture(Quad::integer(), Texture::0 | 1) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluQuadricTexture.xml> documentation.

scaleImage(Format::enum(), WIn::integer(), HIn::integer(), TypeIn::enum(), DataIn::binary(), WOut::integer(), HOut::integer(), TypeOut::enum(), DataOut::wx_mem() (see module wx)) -> integer()

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluScaleImage.xml> documentation.

sphere(Quad::integer(), Radius::float(), Slices::integer(), Stacks::integer()) -> ok

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluSphere.xml> documentation.

unProject(WinX::float(), WinY::float(), WinZ::float(), Model::{float()}, Proj::{float()}, View::{integer()}) -> {integer(), ObjX::float(), ObjY::float(), ObjZ::float()}

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluUnProject.xml> documentation.

unProject4(WinX::float(), WinY::float(), WinZ::float(), ClipW::float(), Model::{float()}, Proj::{float()}, View::{integer()}, NearVal::float(), FarVal::float()) -> {integer(), ObjX::float(), ObjY::float(), ObjZ::float(), ObjW::float()}

    See external <http://www.opengl.org/sdk/docs/man/xhtml/gluUnProject.xml> documentation.