Erlang logo
User's Guide
Reference Manual
Release Notes
PDF
Top

wxErlang
Reference Manual
Version 0.99.1


Expand All
Contract All

Table of Contents

glu

MODULE

glu

MODULE SUMMARY

A part of the standard OpenGL Utility api.

DESCRIPTION

A part of the standard OpenGL Utility api. See www.opengl.org

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

mem()

memory block

offset()

An integer which is an offset in an array

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 documentation.

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

See external 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 documentation.

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

See external 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 documentation.

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

See external documentation.

checkExtension(ExtName::string(), ExtString::string()) -> 0 | 1

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

newQuadric() -> integer()

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.

scaleImage(Format::enum(), WIn::integer(), HIn::integer(), TypeIn::enum(), DataIn::binary(), WOut::integer(), HOut::integer(), TypeOut::enum(), DataOut::mem()) -> integer()

See external documentation.

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

See external documentation.

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

See external documentation.

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

See external documentation.