gthreespritematerial

gthreespritematerial

Functions

Properties

GrapheneVec3 * color Read / Write
GthreeTexture * map Read / Write
float rotation Read / Write
gboolean size-attenuation Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GthreeMaterial
        ╰── GthreeSpriteMaterial

Includes

#include <gthree/gthree.h>

Description

Functions

gthree_sprite_material_new ()

GthreeSpriteMaterial *
gthree_sprite_material_new (void);

gthree_sprite_material_set_color ()

void
gthree_sprite_material_set_color (GthreeSpriteMaterial *sprite_material,
                                  const graphene_vec3_t *color);

gthree_sprite_material_get_color ()

const graphene_vec3_t *
gthree_sprite_material_get_color (GthreeSpriteMaterial *sprite_material);

gthree_sprite_material_set_map ()

void
gthree_sprite_material_set_map (GthreeSpriteMaterial *sprite_material,
                                GthreeTexture *texture);

gthree_sprite_material_get_map ()

GthreeTexture *
gthree_sprite_material_get_map (GthreeSpriteMaterial *sprite_material);

gthree_sprite_material_set_rotation ()

void
gthree_sprite_material_set_rotation (GthreeSpriteMaterial *sprite_material,
                                     float rotation);

gthree_sprite_material_get_rotation ()

float
gthree_sprite_material_get_rotation (GthreeSpriteMaterial *sprite_material);

gthree_sprite_material_set_size_attenuation ()

void
gthree_sprite_material_set_size_attenuation
                               (GthreeSpriteMaterial *sprite_material,
                                gboolean size_attenuation);

gthree_sprite_material_get_size_attenuation ()

gboolean
gthree_sprite_material_get_size_attenuation
                               (GthreeSpriteMaterial *sprite_material);

Types and Values

GthreeSpriteMaterial

typedef struct _GthreeSpriteMaterial GthreeSpriteMaterial;

GthreeSpriteMaterialClass

typedef struct {
  GthreeMaterialClass parent_class;
} GthreeSpriteMaterialClass;

Property Details

The “color” property

  “color”                    GrapheneVec3 *

Color.

Owner: GthreeSpriteMaterial

Flags: Read / Write


The “map” property

  “map”                      GthreeTexture *

Map.

Owner: GthreeSpriteMaterial

Flags: Read / Write


The “rotation” property

  “rotation”                 float

Rotation.

Owner: GthreeSpriteMaterial

Flags: Read / Write

Default value: 0


The “size-attenuation” property

  “size-attenuation”         gboolean

Size attenuation.

Owner: GthreeSpriteMaterial

Flags: Read / Write

Default value: FALSE