Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GrapheneApi

[12:14] static extends: object

Generated low-level function wrappers for namespace Graphene.

Members

  • lib

Methods

  • getLib ()

  • box2d_empty ()

    A degenerate #graphene_box2d_t that can only be expanded. The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box2d_t.
  • box2d_infinite ()

    A degenerate #graphene_box2d_t that cannot be expanded. The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box2d_t.
  • box2d_minus_one ()

    A #graphene_box2d_t with the minimum vertex set at (-1, -1) and the maximum vertex set at (0, 0). The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box2d_t.
  • box2d_one ()

    A #graphene_box2d_t with the minimum vertex set at (0, 0) and the maximum vertex set at (1, 1). The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box2d_t.
  • box2d_one_minus_one ()

    A #graphene_box2d_t with the minimum vertex set at (-1, -1) and the maximum vertex set at (1, 1). The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box2d_t.
  • box2d_zero ()

    A #graphene_box2d_t with both the minimum and maximum vertices set at (0, 0). The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box2d_t.
  • box_empty ()

    A degenerate #graphene_box_t that can only be expanded. The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box_t.
  • box_infinite ()

    A degenerate #graphene_box_t that cannot be expanded. The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box_t.
  • box_minus_one ()

    A #graphene_box_t with the minimum vertex set at (-1, -1, -1) and the maximum vertex set at (0, 0, 0). The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box_t.
  • box_one ()

    A #graphene_box_t with the minimum vertex set at (0, 0, 0) and the maximum vertex set at (1, 1, 1). The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box_t.
  • box_one_minus_one ()

    A #graphene_box_t with the minimum vertex set at (-1, -1, -1) and the maximum vertex set at (1, 1, 1). The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box_t.
  • box_zero ()

    A #graphene_box_t with both the minimum and maximum vertices set at (0, 0, 0). The returned value is owned by Graphene and should not be modified or freed.

    • @r a #graphene_box_t.
  • point3d_zero ()

    Retrieves a constant point with all three coordinates set to 0.

    • @r a zero point.
  • point_zero ()

    Returns a point fixed at (0, 0).

    • @r a fixed point.
  • rect_alloc ()

    Allocates a new #graphene_rect_t. The contents of the returned rectangle are undefined.

    • @r the newly allocated rectangle.
  • rect_zero ()

    Returns a degenerate rectangle with origin fixed at (0, 0) and a size of 0, 0.

    • @r a fixed rectangle.
  • size_zero ()

    A constant pointer to a zero #graphene_size_t, useful for equality checks and interpolations.

    • @r a constant size.
  • vec2_one ()

    Retrieves a constant vector with (1, 1) components.

    • @r the one vector.
  • vec2_x_axis ()

    Retrieves a constant vector with (1, 0) components.

    • @r the X axis vector.
  • vec2_y_axis ()

    Retrieves a constant vector with (0, 1) components.

    • @r the Y axis vector.
  • vec2_zero ()

    Retrieves a constant vector with (0, 0) components.

    • @r the zero vector.
  • vec3_one ()

    Provides a constant pointer to a vector with three components, all sets to 1.

    • @r a constant vector.
  • vec3_x_axis ()

    Provides a constant pointer to a vector with three components with values set to (1, 0, 0).

    • @r a constant vector.
  • vec3_y_axis ()

    Provides a constant pointer to a vector with three components with values set to (0, 1, 0).

    • @r a constant vector.
  • vec3_z_axis ()

    Provides a constant pointer to a vector with three components with values set to (0, 0, 1).

    • @r a constant vector.
  • vec3_zero ()

    Provides a constant pointer to a vector with three components, all sets to 0.

    • @r a constant vector.
  • vec4_one ()

    Retrieves a pointer to a #graphene_vec4_t with all its components set to 1.

    • @r a constant vector.
  • vec4_w_axis ()

    Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 0, 0, 1).

    • @r a constant vector.
  • vec4_x_axis ()

    Retrieves a pointer to a #graphene_vec4_t with its components set to (1, 0, 0, 0).

    • @r a constant vector.
  • vec4_y_axis ()

    Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 1, 0, 0).

    • @r a constant vector.
  • vec4_z_axis ()

    Retrieves a pointer to a #graphene_vec4_t with its components set to (0, 0, 1, 0).

    • @r a constant vector.
  • vec4_zero ()

    Retrieves a pointer to a #graphene_vec4_t with all its components set to 0.

    • @r a constant vector.