gthreelight

gthreelight

Functions

Properties

GrapheneVec3 * color Read / Write
float intensity Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GthreeObject
        ╰── GthreeLight
            ├── GthreeAmbientLight
            ├── GthreeDirectionalLight
            ╰── GthreePointLight

Includes

#include <gthree/gthree.h>

Description

Functions

gthree_light_new ()

GthreeLight *
gthree_light_new (void);

gthree_light_set_color ()

void
gthree_light_set_color (GthreeLight *light,
                        const graphene_vec3_t *color);

gthree_light_get_color ()

const graphene_vec3_t *
gthree_light_get_color (GthreeLight *light);

gthree_light_set_intensity ()

void
gthree_light_set_intensity (GthreeLight *light,
                            float intensity);

gthree_light_get_intensity ()

float
gthree_light_get_intensity (GthreeLight *light);

Types and Values

GthreeLight

typedef struct _GthreeLight GthreeLight;

GthreeLightClass

typedef struct {
  GthreeObjectClass parent_class;

  void          (*setup) (GthreeLight *light,
                          GthreeCamera *camera,
                          GthreeLightSetup *light_setup);

  gpointer padding[8];
} GthreeLightClass;

GthreeLightSetup

typedef struct _GthreeLightSetup GthreeLightSetup;

Property Details

The “color” property

  “color”                    GrapheneVec3 *

Light color.

Owner: GthreeLight

Flags: Read / Write


The “intensity” property

  “intensity”                float

Intensity.

Owner: GthreeLight

Flags: Read / Write

Allowed values: >= 0

Default value: 1