gthreecamera

gthreecamera

Functions

Properties

float far Read / Write
float near Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GthreeObject
        ╰── GthreeCamera
            ├── GthreeOrthographicCamera
            ╰── GthreePerspectiveCamera

Includes

#include <gthree/gthree.h>

Description

Functions

gthree_camera_set_far ()

void
gthree_camera_set_far (GthreeCamera *camera,
                       float far);

gthree_camera_get_far ()

float
gthree_camera_get_far (GthreeCamera *camera);

gthree_camera_set_near ()

void
gthree_camera_set_near (GthreeCamera *camera,
                        float near);

gthree_camera_get_near ()

float
gthree_camera_get_near (GthreeCamera *camera);

gthree_camera_get_proj_screen_matrix ()

void
gthree_camera_get_proj_screen_matrix (GthreeCamera *camera,
                                      graphene_matrix_t *res);

gthree_camera_get_projection_matrix ()

const graphene_matrix_t *
gthree_camera_get_projection_matrix (GthreeCamera *camera);

...

Parameters

camera

a GthreeCamera

 

Returns

.

[type Graphene.Matrix]


gthree_camera_get_world_inverse_matrix ()

const graphene_matrix_t *
gthree_camera_get_world_inverse_matrix
                               (GthreeCamera *camera);

gthree_camera_unproject_point3d ()

graphene_point3d_t *
gthree_camera_unproject_point3d (GthreeCamera *camera,
                                 const graphene_point3d_t *screen_point,
                                 graphene_point3d_t *res);

...

Parameters

camera

...

 

pos

.

[type Graphene.Point3D]

res

.

[out caller-allocates][type Graphene.Point3D]

Returns

.

[type Graphene.Point3D]


gthree_camera_update ()

void
gthree_camera_update (GthreeCamera *camera);

gthree_camera_update_matrix ()

void
gthree_camera_update_matrix (GthreeCamera *camera);

Types and Values

GthreeCamera

typedef struct _GthreeCamera GthreeCamera;

GthreeCameraClass

typedef struct {
  GthreeObjectClass parent_class;

  void (*update) (GthreeCamera *camera);

  gpointer padding[8];
} GthreeCameraClass;

Property Details

The “far” property

  “far”                      float

Far.

Owner: GthreeCamera

Flags: Read / Write

Default value: 2000


The “near” property

  “near”                     float

Near.

Owner: GthreeCamera

Flags: Read / Write

Default value: 30