Main Page | Class List | File List | File Members

omau.h File Reference

Header for the low-level utility libOMAU library. More...

Go to the source code of this file.


Classes

struct  OMAUframe
 A representation of a single OMA_FRAME in struct form. More...

struct  OMAUkeyframe
 A representation of an OMA_KEYFRAME in struct form. More...

struct  OMAUobject
 A representation of an OMA_OBJECT in struct form. More...


Typedefs

typedef OMAUframe OMAUframe
 A representation of a single OMA_FRAME in struct form.

typedef OMAUobject OMAUobject
 A representation of an OMA_OBJECT in struct form.

typedef OMAUkeyframe OMAUkeyframe
 A representation of an OMA_KEYFRAME in struct form.


Functions

OMAUAPI void OMAUAPIENTRY omauInterpolatefv (OMAenum trans, OMAfloat weight, OMAsizei count, const OMAfloat *a, const OMAfloat *b, OMAfloat *c)
 Interpolates between two arrays of OMAfloats.

OMAUAPI void OMAUAPIENTRY omauInterpolate (OMAUframe *frame, OMAfloat index)
 Interpolates and stores the results in a frame from the currently bound chunk.


Detailed Description


Function Documentation

OMAUAPI void OMAUAPIENTRY omauInterpolate OMAUframe frame,
OMAfloat  index
 

omauInterpolate interpolates and stores the results in a frame from the currently bound chunk. If the frame references chunks with non-zero names, thouse chunks will be overwritten instead of creating new chunks. It is up to the caller to delete any chunks passed back in the frame.

The bound chunk must have a type of OMA_KEYFRAME.

Parameters:
frame The frame containing (possibly-zero) names of chunks to store the results in and used to pass back the names of the results.
index The index to use for interpolation. The integer part is used for the frame index selection. The fractional part is use for the weight. This cannot be less than zero.

OMAUAPI void OMAUAPIENTRY omauInterpolatefv OMAenum  trans,
OMAfloat  weight,
OMAsizei  count,
const OMAfloat *  a,
const OMAfloat *  b,
OMAfloat *  c
 

omauInterpolatefv interpolates using the specified algorithm and weight between two arrays of OMAfloats and stores the results in a third array.

Parameters:
trans The "transition" algorithm to use. Can be one of the following:
  • OMA_ROUND_DOWN
    Copy the first array to the destination array.
  • OMA_ROUND_UP
    Copy the second array to the destination array.
  • OMA_ROUND_NEAREST
    If the weight is less than 0.5, copy the first to the destination array. Otherwise, copy the second array to the destination array.
  • OMA_LINEAR_INTERPOLATION
    Copy values that are evenly distributed based upon the weight between the first and second array to the destination array.
  • OMA_CUBIC_INTERPOLATION
    Copy values that are cubicly distributed based upon the weight between the first and second array to the destination array.
weight A weight value with an intended range of [0,1].
count The number of OMAfloats in each of the arrays.
a The "first" array.
b The "second" array.
c The "third", destination array.
SourceForge.net Logo Created with DoxygenValid CSS!