Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

3.9 KB
Raw Blame
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";
import type * as P from "../py";

/** This module provides access to the matrix stack. */
export interface Api {
  /**
   * Return a copy of the model-view matrix.
   * @returns A 4x4 view matrix.
   */
  get_model_view_matrix(...args: any[]): H.Remote<M.Matrix>;
  /**
   * Return a copy of the normal matrix.
   * @returns A 3x3 normal matrix.
   */
  get_normal_matrix(...args: any[]): H.Remote<M.Matrix>;
  /**
   * Return a copy of the projection matrix.
   * @returns A 4x4 projection matrix.
   */
  get_projection_matrix(...args: any[]): H.Remote<M.Matrix>;
  /** Load an identity matrix into the stack. */
  load_identity(...args: any[]): H.Ref<void>;
  /**
   * Load a matrix into the stack.
   * @param matrix A 4x4 matrix.
   */
  load_matrix(matrix: H.In<M.MatrixLike>): H.Ref<void>;
  /**
   * Load a matrix into the stack.
   * @param matrix A 4x4 matrix.
   */
  load_matrix(kw: {
    /** A 4x4 matrix. */
    matrix: H.In<M.MatrixLike>;
  }): H.Ref<void>;
  /**
   * Load a projection matrix into the stack.
   * @param matrix A 4x4 matrix.
   */
  load_projection_matrix(matrix: H.In<M.MatrixLike>): H.Ref<void>;
  /**
   * Load a projection matrix into the stack.
   * @param matrix A 4x4 matrix.
   */
  load_projection_matrix(kw: {
    /** A 4x4 matrix. */
    matrix: H.In<M.MatrixLike>;
  }): H.Ref<void>;
  /**
   * Multiply the current stack matrix.
   * @param matrix A 4x4 matrix.
   */
  multiply_matrix(matrix: H.In<M.MatrixLike>): H.Ref<void>;
  /**
   * Multiply the current stack matrix.
   * @param matrix A 4x4 matrix.
   */
  multiply_matrix(kw: {
    /** A 4x4 matrix. */
    matrix: H.In<M.MatrixLike>;
  }): H.Ref<void>;
  /** Remove the last model-view matrix from the stack. */
  pop(...args: any[]): H.Ref<void>;
  /** Remove the last projection matrix from the stack. */
  pop_projection(...args: any[]): H.Ref<void>;
  /** Add to the model-view matrix stack. */
  push(...args: any[]): H.Ref<void>;
  /**
   * Context manager to ensure balanced push/pop calls, even in the case of an error.
   * @returns The context manager.
   */
  push_pop(...args: any[]): H.Ptr<P.gpu_types.MatrixStackContext>;
  /**
   * Context manager to ensure balanced push/pop calls, even in the case of an error.
   * @returns The context manager.
   */
  push_pop_projection(...args: any[]): H.Ptr<P.gpu_types.MatrixStackContext>;
  /** Add to the projection matrix stack. */
  push_projection(...args: any[]): H.Ref<void>;
  /** Empty stack and set to identity. */
  reset(...args: any[]): H.Ref<void>;
  /**
   * Scale the current stack matrix.
   * @param scale Scale the current stack matrix with 2 or 3 floats.
   */
  scale(scale: H.In<readonly number[]>): H.Ref<void>;
  /**
   * Scale the current stack matrix.
   * @param scale Scale the current stack matrix with 2 or 3 floats.
   */
  scale(kw: {
    /** Scale the current stack matrix with 2 or 3 floats. */
    scale: H.In<readonly number[]>;
  }): H.Ref<void>;
  /**
   * Scale the current stack matrix uniformly.
   * @param scale Uniform scale factor.
   */
  scale_uniform(scale: H.In<number>): H.Ref<void>;
  /**
   * Scale the current stack matrix uniformly.
   * @param scale Uniform scale factor.
   */
  scale_uniform(kw: {
    /** Uniform scale factor. */
    scale: H.In<number>;
  }): H.Ref<void>;
  /**
   * Translate the current stack matrix.
   * @param offset Translate the current stack matrix with 2 or 3 floats.
   */
  translate(offset: H.In<readonly number[]>): H.Ref<void>;
  /**
   * Translate the current stack matrix.
   * @param offset Translate the current stack matrix with 2 or 3 floats.
   */
  translate(kw: {
    /** Translate the current stack matrix with 2 or 3 floats. */
    offset: H.In<readonly number[]>;
  }): H.Ref<void>;
}