gthreepointlight

gthreepointlight

Functions

Properties

float decay Read / Write
float distance Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GthreeObject
        ╰── GthreeLight
            ╰── GthreePointLight

Includes

#include <gthree/gthree.h>

Description

Functions

gthree_point_light_new ()

GthreePointLight *
gthree_point_light_new (const graphene_vec3_t *color,
                        float intensity,
                        float distance);

gthree_point_light_set_decay ()

void
gthree_point_light_set_decay (GthreePointLight *light,
                              float decay);

gthree_point_light_get_decay ()

float
gthree_point_light_get_decay (GthreePointLight *light);

gthree_point_light_set_distance ()

void
gthree_point_light_set_distance (GthreePointLight *light,
                                 float distance);

gthree_point_light_get_distance ()

float
gthree_point_light_get_distance (GthreePointLight *light);

Types and Values

GthreePointLight

typedef struct _GthreePointLight GthreePointLight;

GthreePointLightClass

typedef struct {
  GthreeLightClass parent_class;
} GthreePointLightClass;

Property Details

The “decay” property

  “decay”                    float

Decay.

Owner: GthreePointLight

Flags: Read / Write

Allowed values: [0.5,3]

Default value: 1


The “distance” property

  “distance”                 float

Distance.

Owner: GthreePointLight

Flags: Read / Write

Allowed values: >= 0

Default value: 0