Safe Haskell | Safe-Infered |
---|
- new :: IO HG3DClass
- delete :: HG3DClass -> IO ()
- getRotation :: HG3DClass -> IO Radians
- setRotation :: HG3DClass -> Radians -> IO ()
- setPosition :: HG3DClass -> Vec3 -> IO ()
- setPosition2 :: HG3DClass -> Float -> Float -> Float -> IO ()
- getPosition :: HG3DClass -> IO Vec3
- setDimensions :: HG3DClass -> Float -> Float -> IO ()
- resetDimensions :: HG3DClass -> IO ()
- setColour :: HG3DClass -> Colour -> IO ()
- getColour :: HG3DClass -> IO Colour
- hasOwnDimensions :: HG3DClass -> IO Bool
- getOwnWidth :: HG3DClass -> IO Float
- getOwnHeight :: HG3DClass -> IO Float
- isUseTexcoordRect :: HG3DClass -> IO Bool
- setTexcoordIndex :: HG3DClass -> Int -> IO ()
- getTexcoordIndex :: HG3DClass -> IO Int
- setTexcoordRect2 :: HG3DClass -> Float -> Float -> Float -> Float -> IO ()
- new'_ :: HG3DClassPtr -> IO ()
- delete'_ :: HG3DClassPtr -> IO ()
- getRotation'_ :: HG3DClassPtr -> RadiansPtr -> IO ()
- setRotation'_ :: HG3DClassPtr -> RadiansPtr -> IO ()
- setPosition'_ :: HG3DClassPtr -> Vec3Ptr -> IO ()
- setPosition2'_ :: HG3DClassPtr -> CFloat -> CFloat -> CFloat -> IO ()
- getPosition'_ :: HG3DClassPtr -> Vec3Ptr -> IO ()
- setDimensions'_ :: HG3DClassPtr -> CFloat -> CFloat -> IO ()
- resetDimensions'_ :: HG3DClassPtr -> IO ()
- setColour'_ :: HG3DClassPtr -> ColourPtr -> IO ()
- getColour'_ :: HG3DClassPtr -> ColourPtr -> IO ()
- hasOwnDimensions'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getOwnWidth'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()
- getOwnHeight'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()
- isUseTexcoordRect'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- setTexcoordIndex'_ :: HG3DClassPtr -> CUShort -> IO ()
- getTexcoordIndex'_ :: HG3DClassPtr -> Ptr CUShort -> IO ()
- setTexcoordRect2'_ :: HG3DClassPtr -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
Documentation
Get the rotation of the billboard. This rotation is relative to the center of the billboard.
Default destructor.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Radians | rotation |
-> IO () |
Set the position of the billboard. This position is relative to a point on the quad which is the billboard. Depending on the BillboardSetBillboardSet::setBillboardOrigin
Set the rotation of the billboard. This rotation is relative to the center of the billboard.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Vec3 | position |
-> IO () |
Set the position of the billboard. This position is relative to a point on the quad which is the billboard. Depending on the BillboardSetBillboardSet::setBillboardOrigin
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | x |
-> Float | y |
-> Float | z |
-> IO () |
Get the position of the billboard. This position is relative to a point on the quad which is the billboard. Depending on the BillboardSetBillboardSet::setBillboardOrigin
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | width |
-> Float | height |
-> IO () |
Resets this BillboardBillboardSet
Sets the width and height for this billboard. Note that it is most efficient for every billboard in a BillboardSetBillboardSet::setDefaultDimensions
Sets the colour of this billboard. Billboards can be tinted based on a base colour. This allows variations in colour irrespective of the base colour of the material allowing more varied billboards. The default colour is white. The tinting is effected using vertex colours.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Colour | colour |
-> IO () |
Gets the colour of this billboard.
Returns true if this billboard deviates from the BillboardSetBillboard::setDimensionsBillboard::setDimensions
Retrieves the billboard's personal width, if hasOwnDimensions is true.
Retrieves the billboard's personal width, if hasOwnDimensions is true.
Returns true if this billboard use individual texture coordinate rect (i.e. if the Billboard::setTexcoordRectBillboardSetBillboard::setTexcoordIndexBillboard::setTexcoordIndex()Billboard::setTexcoordRect()
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | texcoordIndex |
-> IO () |
getTexcoordIndex()setTexcoordIndex()This value is useful only when isUseTexcoordRect return false.
setTexcoordIndex()BillboardSet::setTextureCoords()
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | u0 |
-> Float | v0 |
-> Float | u1 |
-> Float | v1 |
-> IO () |
setTexcoordRect()
new'_ :: HG3DClassPtr -> IO ()Source
delete'_ :: HG3DClassPtr -> IO ()Source
getRotation'_ :: HG3DClassPtr -> RadiansPtr -> IO ()Source
setRotation'_ :: HG3DClassPtr -> RadiansPtr -> IO ()Source
setPosition'_ :: HG3DClassPtr -> Vec3Ptr -> IO ()Source
setPosition2'_ :: HG3DClassPtr -> CFloat -> CFloat -> CFloat -> IO ()Source
getPosition'_ :: HG3DClassPtr -> Vec3Ptr -> IO ()Source
setDimensions'_ :: HG3DClassPtr -> CFloat -> CFloat -> IO ()Source
setColour'_ :: HG3DClassPtr -> ColourPtr -> IO ()Source
getColour'_ :: HG3DClassPtr -> ColourPtr -> IO ()Source
hasOwnDimensions'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getOwnWidth'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()Source
getOwnHeight'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()Source
isUseTexcoordRect'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
setTexcoordIndex'_ :: HG3DClassPtr -> CUShort -> IO ()Source
getTexcoordIndex'_ :: HG3DClassPtr -> Ptr CUShort -> IO ()Source
setTexcoordRect2'_ :: HG3DClassPtr -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()Source