// //------------------ DOK FILE -------------------------------------------------- +Header core.3d.gl =pkg core.3d.gl =title core.3d.gl =short =desc Documentation in progress... // // //------------------ PROTO ----------------------------------------------------- textureComputeRectangleUV +Proto textureComputeRectangleUV =type fun Texture Int Int Int Int -> Floats =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg texture =type Texture =desc // +arg x =type Int =desc // +arg y =type Int =desc // +arg w =type Int =desc // +arg h =type Int =desc // +arg result =type Floats =desc // // //------------------ PROTO ----------------------------------------------------- textureUpdate +Proto textureUpdate =type fun Texture -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg texture =type Texture =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- textureUpdateRegion +Proto textureUpdateRegion =type fun Texture Int Int Int Int -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg texture =type Texture =desc // +arg x =type Int =desc // +arg y =type Int =desc // +arg w =type Int =desc // +arg h =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- textureCreate +Proto textureCreate =type fun Bitmap Bool -> Texture =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg bmp =type Bitmap =desc // +arg linear =type Bool =desc // +arg result =type Texture =desc // // //------------------ PROTO ----------------------------------------------------- colorMakeARGB +Proto colorMakeARGB =type fun Int -> Floats =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg argb =type Int =desc // +arg result =type Floats =desc // // //------------------ PROTO ----------------------------------------------------- renderTexture +Proto renderTexture =type fun Int Floats Floats Floats -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg mode =type Int =desc // +arg vrt =type Floats =desc // +arg texture =type Floats =desc // +arg color =type Floats =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- renderColors2Lights +Proto renderColors2Lights =type fun Int Floats Floats Floats [Floats Floats Floats] [Floats Floats Floats] -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg mode =type Int =desc // +arg vertices =type Floats =desc // +arg normals =type Floats =desc // +arg colors =type Floats =desc // +arg light0 =type [Floats Floats Floats] =desc // +arg light1 =type [Floats Floats Floats] =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- renderColors1Light +Proto renderColors1Light =type fun Int Floats Floats Floats [Floats Floats Floats] -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg mode =type Int =desc // +arg vertices =type Floats =desc // +arg normals =type Floats =desc // +arg colors =type Floats =desc // +arg light =type [Floats Floats Floats] =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- renderColors +Proto renderColors =type fun Int Floats Floats -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg mode =type Int =desc // +arg vertices =type Floats =desc // +arg colors =type Floats =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- renderFlat +Proto renderFlat =type fun Int Floats Floats -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg mode =type Int =desc // +arg vrt =type Floats =desc // +arg color =type Floats =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glProject3d +Proto glProject3d =type fun Float Float Float -> [Float Float Float] =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg x =type Float =desc // +arg y =type Float =desc // +arg z =type Float =desc // +arg result =type [Float Float Float] =desc // // //------------------ PROTO ----------------------------------------------------- glMultMatrix +Proto glMultMatrix =type fun array Float -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg m =type array Float =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glRotate +Proto glRotate =type fun Float Float Float Float -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg a =type Float =desc // +arg x =type Float =desc // +arg y =type Float =desc // +arg z =type Float =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glScale +Proto glScale =type fun Float Float Float -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg x =type Float =desc // +arg y =type Float =desc // +arg z =type Float =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glTranslate +Proto glTranslate =type fun Float Float Float -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg x =type Float =desc // +arg y =type Float =desc // +arg z =type Float =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glOrtho +Proto glOrtho =type fun Float Float Float Float Float Float -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg left =type Float =desc // +arg right =type Float =desc // +arg bottom =type Float =desc // +arg top =type Float =desc // +arg near =type Float =desc // +arg far =type Float =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glFrustum +Proto glFrustum =type fun Float Float Float Float Float Float -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg left =type Float =desc // +arg right =type Float =desc // +arg bottom =type Float =desc // +arg top =type Float =desc // +arg near =type Float =desc // +arg far =type Float =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glMatrixMode +Proto glMatrixMode =type fun Int -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg v =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glMatrix +Proto glMatrix =type fun Int -> array Float =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg v =type Int =desc // +arg result =type array Float =desc // // //------------------ PROTO ----------------------------------------------------- glLoadIdentity +Proto glLoadIdentity =type fun -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glPopMatrix +Proto glPopMatrix =type fun -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glPushMatrix +Proto glPushMatrix =type fun -> Int =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- glInitShaders +Proto glInitShaders =type fun -> [GlProgram (hashmap Str -> Int) (hashmap Str -> Int)] =mode function =pkg core.3d.gl =impl mcy =link =desc // +arg result =type [GlProgram (hashmap Str -> Int) (hashmap Str -> Int)] =desc // // //------------------ PROTO ----------------------------------------------------- GL_MODELVIEW_MATRIX +Proto GL_MODELVIEW_MATRIX =type Int =mode variable =pkg core.3d.gl =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- GL_PROJECTION_MATRIX +Proto GL_PROJECTION_MATRIX =type Int =mode variable =pkg core.3d.gl =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- GL_MODELVIEW +Proto GL_MODELVIEW =type Int =mode variable =pkg core.3d.gl =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- GL_PROJECTION +Proto GL_PROJECTION =type Int =mode variable =pkg core.3d.gl =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- bmpT +Proto bmpT =type Texture -> Bitmap =mode field =pkg core.3d.gl =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- hT +Proto hT =type Texture -> Float =mode field =pkg core.3d.gl =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- wT +Proto wT =type Texture -> Float =mode field =pkg core.3d.gl =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- glT +Proto glT =type Texture -> GlTexture =mode field =pkg core.3d.gl =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- Texture +Proto Texture =type Texture =mode structure =pkg core.3d.gl =impl mcy =link =desc