PgmRenderPipe3dIFace

PgmRenderPipe3dIFace — An interface to embed 3D API.

Synopsis




                    PgmRenderPipe3dIFace;
PgmRenderError      pgm_render_pipe3d_set_translation   (PgmRenderPipe3dIFace *pipe3d,
                                                         gfloat x,
                                                         gfloat y,
                                                         gfloat z);
PgmRenderError      pgm_render_pipe3d_get_translation   (PgmRenderPipe3dIFace *pipe3d,
                                                         gfloat *x,
                                                         gfloat *y,
                                                         gfloat *z);
PgmRenderError      pgm_render_pipe3d_set_rotation      (PgmRenderPipe3dIFace *pipe3d,
                                                         gfloat x,
                                                         gfloat y,
                                                         gfloat z);
PgmRenderError      pgm_render_pipe3d_get_rotation      (PgmRenderPipe3dIFace *pipe3d,
                                                         gfloat *x,
                                                         gfloat *y,
                                                         gfloat *z);


Description

PgmRenderPipe3dIFace is an interface to add 3D drawing capabilities to an object.

Details

PgmRenderPipe3dIFace

typedef struct _PgmRenderPipe3dIFace PgmRenderPipe3dIFace;


pgm_render_pipe3d_set_translation ()

PgmRenderError      pgm_render_pipe3d_set_translation   (PgmRenderPipe3dIFace *pipe3d,
                                                         gfloat x,
                                                         gfloat y,
                                                         gfloat z);

Add a translation to an object.

pipe3d : A PgmRenderPipe3dIFace object.
x : The x coordinate of the translation.
y : The y coordinate of the translation.
z : The z coordinate of the translation.
Returns : An error status.

pgm_render_pipe3d_get_translation ()

PgmRenderError      pgm_render_pipe3d_get_translation   (PgmRenderPipe3dIFace *pipe3d,
                                                         gfloat *x,
                                                         gfloat *y,
                                                         gfloat *z);

Retrieves the translation of an object.

pipe3d : A PgmRenderPipe3dIFace object.
x : The x coordinate of the translation to fill.
y : The y coordinate of the translation to fill.
z : The z coordinate of the translation to fill.
Returns : An error status.

pgm_render_pipe3d_set_rotation ()

PgmRenderError      pgm_render_pipe3d_set_rotation      (PgmRenderPipe3dIFace *pipe3d,
                                                         gfloat x,
                                                         gfloat y,
                                                         gfloat z);

Add a rotation in degrees to an object.

pipe3d : A PgmRenderPipe3dIFace object.
x : The x angle of rotation in degrees.
y : The y angle of rotation in degrees.
z : The z angle of rotation in degrees.
Returns : An error status.

pgm_render_pipe3d_get_rotation ()

PgmRenderError      pgm_render_pipe3d_get_rotation      (PgmRenderPipe3dIFace *pipe3d,
                                                         gfloat *x,
                                                         gfloat *y,
                                                         gfloat *z);

Retrieves the rotation in degrees of an object.

pipe3d : A PgmRenderPipe3dIFace object.
x : The x angle of rotation in degrees to fill.
y : The y angle of rotation in degrees to fill.
z : The z angle of rotation in degrees to fill.
Returns : An error status.