Re-exports§
pub extern crate libc;
Modules§
- geom
- Geometric types.
- init
- Types and functionalities to declare and initialize gdnative classes.
- libc
- libc - Raw FFI bindings to platforms’ system libraries
- sys
- Raw C API.
Macros§
- godot_
class - Convenience macro to declare a native class.
- godot_
error - Print an error using the engine’s logging system (visible in the editor).
- godot_
gdnative_ init - Declare the API endpoint to initialize the gdnative API on startup.
- godot_
gdnative_ terminate - Declare the API endpoint invoked during shutdown.
- godot_
nativescript_ init - Declare the API endpoint to initialize nativescript classes on startup.
- godot_
print - Print a message using the engine’s logging system (visible in the editor).
- godot_
warn - Print a warning using the engine’s logging system (visible in the editor).
- godot_
wrap_ constructor - Convenience macro to wrap an object’s constructor into a function pointer that can be passed to the engine when registering a class.
- godot_
wrap_ destructor - Convenience macro to wrap an object’s destructor into a function pointer that can be passed to the engine when registering a class.
- godot_
wrap_ method - Convenience macro to wrap an object’s method into a function pointer that can be passed to the engine when registering a class.
Structs§
- AStar
core class AStar
inheritsReference
(reference counted).- Aabb
- Axis-aligned bounding box.
- Animated
Texture core class AnimatedTexture
inheritsTexture
(reference counted).- Array
Mesh core class ArrayMesh
inheritsMesh
(reference counted).- Atlas
Texture core class AtlasTexture
inheritsTexture
(reference counted).- Back
Buffer Copy core class BackBufferCopy
inheritsNode2D
(unsafe).- Basis
- A 3x3 matrix.
- BitMap
core class BitMap
inheritsResource
(reference counted).- Bitmap
Font core class BitmapFont
inheritsFont
(reference counted).- BoxShape
core class BoxShape
inheritsShape
(reference counted).- Byte
Array - A reference-counted vector of bytes that uses Godot’s pool allocator.
- Camera
core class Camera
inheritsSpatial
(unsafe).- Camera2D
core class Camera2D
inheritsNode2D
(unsafe).- Canvas
Item core class CanvasItem
inheritsNode
(unsafe).- Canvas
Layer core class CanvasLayer
inheritsNode
(unsafe).- Canvas
Modulate core class CanvasModulate
inheritsNode2D
(unsafe).- Capsule
Mesh core class CapsuleMesh
inheritsPrimitiveMesh
(reference counted).- Capsule
Shape core class CapsuleShape
inheritsShape
(reference counted).- Capsule
Shape2D core class CapsuleShape2D
inheritsShape2D
(reference counted).- Circle
Shape2D core class CircleShape2D
inheritsShape2D
(reference counted).- ClassDB
core singleton class ClassDB
inheritsObject
(unsafe).- Collision
Polygon core class CollisionPolygon
inheritsSpatial
(unsafe).- Color
- RGBA color with 32 bits floating point components.
- Color
Array - A reference-counted vector of
ColorArray
that uses Godot’s pool allocator. - Concave
Polygon Shape core class ConcavePolygonShape
inheritsShape
(reference counted).- Concave
Polygon Shape2D core class ConcavePolygonShape2D
inheritsShape2D
(reference counted).- Config
File core class ConfigFile
inheritsReference
(reference counted).- Convex
Polygon Shape core class ConvexPolygonShape
inheritsShape
(reference counted).- Convex
Polygon Shape2D core class ConvexPolygonShape2D
inheritsShape2D
(reference counted).- Cube
Mesh core class CubeMesh
inheritsPrimitiveMesh
(reference counted).- Curve
core class Curve
inheritsResource
(reference counted).- Curve2D
core class Curve2D
inheritsResource
(reference counted).- Curve3D
core class Curve3D
inheritsResource
(reference counted).- Cylinder
Mesh core class CylinderMesh
inheritsPrimitiveMesh
(reference counted).- Cylinder
Shape core class CylinderShape
inheritsShape
(reference counted).- Dictionary
- A reference-counted
Dictionary
ofVariant
key-value pairs. - Directory
core class Directory
inheritsReference
(reference counted).- Dynamic
Font core class DynamicFont
inheritsFont
(reference counted).- Dynamic
Font Data core class DynamicFontData
inheritsResource
(reference counted).- Encoded
Object AsID core class EncodedObjectAsID
inheritsReference
(reference counted).- Engine
core singleton class Engine
inheritsObject
(unsafe).- Environment
core class Environment
inheritsResource
(reference counted).- File
core class File
inheritsReference
(reference counted).- Float32
Array - A reference-counted vector of
f32
that uses Godot’s pool allocator. - Font
core class Font
inheritsResource
(reference counted).- Free
OnDrop - A wrapper that automatically frees the object when dropped.
- FuncRef
core class FuncRef
inheritsReference
(reference counted).- GDNative
core class GDNative
inheritsReference
(reference counted).- GDNative
Library core class GDNativeLibrary
inheritsResource
(reference counted).- GDScript
core class GDScript
inheritsScript
(reference counted).- GDScript
Function State core class GDScriptFunctionState
inheritsReference
(reference counted).- Geometry
core singleton class Geometry
inheritsObject
(unsafe).- Geometry
Instance core class GeometryInstance
inheritsVisualInstance
(unsafe).- Global
Constants core singleton class GlobalConstants
(unsafe).- Godot
String - Godot’s reference-counted string type.
- Gradient
core class Gradient
inheritsResource
(reference counted).- Gradient
Texture core class GradientTexture
inheritsTexture
(reference counted).- GridMap
core class GridMap
inheritsSpatial
(unsafe).- Image
core class Image
inheritsResource
(reference counted).- Image
Texture core class ImageTexture
inheritsTexture
(reference counted).- Immediate
Geometry core class ImmediateGeometry
inheritsGeometryInstance
(unsafe).- Input
core singleton class Input
inheritsObject
(unsafe).- Input
Default core class InputDefault
inheritsInput
(unsafe).- Input
Event core class InputEvent
inheritsResource
(reference counted).- Input
Event Key core class InputEventKey
inheritsInputEventWithModifiers
(reference counted).- Input
Event With Modifiers core class InputEventWithModifiers
inheritsInputEvent
(reference counted).- Input
Map core singleton class InputMap
inheritsObject
(unsafe).- Instance
Placeholder core class InstancePlaceholder
inheritsNode
(unsafe).- Int32
Array - A reference-counted vector of
i32
that uses Godot’s pool allocator. - Interpolated
Camera core class InterpolatedCamera
inheritsCamera
(unsafe).- JSON
core singleton class JSON
inheritsObject
(unsafe).- JSON
Parse Result core class JSONParseResult
inheritsReference
(reference counted).- Java
Script core singleton class JavaScript
inheritsObject
(unsafe).- Large
Texture core class LargeTexture
inheritsTexture
(reference counted).- Line2D
core class Line2D
inheritsNode2D
(unsafe).- Line
Shape2D core class LineShape2D
inheritsShape2D
(reference counted).- Listener
core class Listener
inheritsSpatial
(unsafe).- Main
Loop core class MainLoop
inheritsObject
(unsafe).- Marshalls
core singleton class Marshalls
inheritsReference
(unsafe).- Material
core class Material
inheritsResource
(reference counted).- Mesh
core class Mesh
inheritsResource
(reference counted).- Mesh
Data Tool core class MeshDataTool
inheritsReference
(reference counted).- Mesh
Instance core class MeshInstance
inheritsGeometryInstance
(unsafe).- Mesh
Instance2D core class MeshInstance2D
inheritsNode2D
(unsafe).- Mesh
Library core class MeshLibrary
inheritsResource
(reference counted).- Multi
Mesh core class MultiMesh
inheritsResource
(reference counted).- Multi
Mesh Instance core class MultiMeshInstance
inheritsGeometryInstance
(unsafe).- MultiplayerAPI
core class MultiplayerAPI
inheritsReference
(reference counted).- Mutex
core class Mutex
inheritsReference
(reference counted).- Native
Instance Header - Godot native class implementation detail that must be stored in each instance.
- Native
Ref - A reference to a rust native script.
- Native
Script core class NativeScript
inheritsScript
(reference counted).- Navigation
core class Navigation
inheritsSpatial
(unsafe).- Navigation2D
core class Navigation2D
inheritsNode2D
(unsafe).- Navigation
Mesh core class NavigationMesh
inheritsResource
(reference counted).- Navigation
Mesh Instance core class NavigationMeshInstance
inheritsSpatial
(unsafe).- Navigation
Polygon core class NavigationPolygon
inheritsResource
(reference counted).- Navigation
Polygon Instance core class NavigationPolygonInstance
inheritsNode2D
(unsafe).- Networked
Multiplayer Peer core class NetworkedMultiplayerPeer
inheritsPacketPeer
(reference counted).- Node
core class Node
inheritsObject
(unsafe).- Node2D
core class Node2D
inheritsCanvasItem
(unsafe).- Node
Path - A reference-counted relative or absolute path in a scene tree, for use with
Node.get_node()
and similar functions. It can reference a node, a resource within a node, or a property of a node or resource. - OS
core singleton class OS
inheritsObject
(unsafe).- Object
- The base class of most Godot classes.
- Oriented
Path Follow core class OrientedPathFollow
inheritsSpatial
(unsafe).- PCKPacker
core class PCKPacker
inheritsReference
(reference counted).- PHash
Translation core class PHashTranslation
inheritsTranslation
(reference counted).- Packed
Data Container core class PackedDataContainer
inheritsResource
(reference counted).- Packed
Data Container Ref core class PackedDataContainerRef
inheritsReference
(reference counted).- Packed
Scene core class PackedScene
inheritsResource
(reference counted).- Packet
Peer core class PacketPeer
inheritsReference
(reference counted).- Panorama
Sky core class PanoramaSky
inheritsSky
(reference counted).- Path
core class Path
inheritsSpatial
(unsafe).- Path2D
core class Path2D
inheritsNode2D
(unsafe).- Path
Follow core class PathFollow
inheritsSpatial
(unsafe).- Path
Follow2D core class PathFollow2D
inheritsNode2D
(unsafe).- Performance
core singleton class Performance
inheritsObject
(unsafe).- Plane
- Plane in hessian form.
- Plane
Mesh core class PlaneMesh
inheritsPrimitiveMesh
(reference counted).- Plane
Shape core class PlaneShape
inheritsShape
(reference counted).- Plugin
Script core class PluginScript
inheritsScript
(reference counted).- Polygon2D
core class Polygon2D
inheritsNode2D
(unsafe).- Polygon
Path Finder core class PolygonPathFinder
inheritsResource
(reference counted).- Position2D
core class Position2D
inheritsNode2D
(unsafe).- Position3D
core class Position3D
inheritsSpatial
(unsafe).- Primitive
Mesh core class PrimitiveMesh
inheritsMesh
(reference counted).- Prism
Mesh core class PrismMesh
inheritsPrimitiveMesh
(reference counted).- Procedural
Sky core class ProceduralSky
inheritsSky
(reference counted).- Project
Settings core singleton class ProjectSettings
inheritsObject
(unsafe).- Proximity
Group core class ProximityGroup
inheritsSpatial
(unsafe).- Proxy
Texture core class ProxyTexture
inheritsTexture
(reference counted).- Quad
Mesh core class QuadMesh
inheritsPrimitiveMesh
(reference counted).- Queue
Free OnDrop - A wrapper that automatically enqueues the object for deletion when dropped.
- RayCast
core class RayCast
inheritsSpatial
(unsafe).- RayCast2D
core class RayCast2D
inheritsNode2D
(unsafe).- RayShape
core class RayShape
inheritsShape
(reference counted).- RayShape2D
core class RayShape2D
inheritsShape2D
(reference counted).- Rectangle
Shape2D core class RectangleShape2D
inheritsShape2D
(reference counted).- Reference
- Base class of all reference-counted types. Inherits
Object
. - RegEx
core class RegEx
inheritsReference
(reference counted).- RegEx
Match core class RegExMatch
inheritsReference
(reference counted).- Remote
Transform core class RemoteTransform
inheritsSpatial
(unsafe).- Remote
Transform2D core class RemoteTransform2D
inheritsNode2D
(unsafe).- Resource
core class Resource
inheritsReference
(reference counted).- Resource
Importer core class ResourceImporter
inheritsReference
(reference counted).- Resource
Interactive Loader core class ResourceInteractiveLoader
inheritsReference
(reference counted).- Resource
Loader core singleton class ResourceLoader
inheritsObject
(unsafe).- Resource
Preloader core class ResourcePreloader
inheritsNode
(unsafe).- Resource
Saver core singleton class ResourceSaver
inheritsObject
(unsafe).- Rid
- The RID type is used to access the unique integer ID of a resource. They are opaque, so they do not grant access to the associated resource by themselves.
- Root
Motion View core class RootMotionView
inheritsVisualInstance
(unsafe).- Scene
State core class SceneState
inheritsReference
(reference counted).- Scene
Tree core class SceneTree
inheritsMainLoop
(unsafe).- Scene
Tree Timer core class SceneTreeTimer
inheritsReference
(reference counted).- Script
core class Script
inheritsResource
(reference counted).- Segment
Shape2D core class SegmentShape2D
inheritsShape2D
(reference counted).- Semaphore
core class Semaphore
inheritsReference
(reference counted).- Shader
core class Shader
inheritsResource
(reference counted).- Shape
core class Shape
inheritsResource
(reference counted).- Shape2D
core class Shape2D
inheritsResource
(reference counted).- Sky
core class Sky
inheritsResource
(reference counted).- Spatial
core class Spatial
inheritsNode
(unsafe).- Spatial
Gizmo core class SpatialGizmo
inheritsReference
(reference counted).- Spatial
Velocity Tracker core class SpatialVelocityTracker
inheritsReference
(reference counted).- Sphere
Mesh core class SphereMesh
inheritsPrimitiveMesh
(reference counted).- Sphere
Shape core class SphereShape
inheritsShape
(reference counted).- String
Array - A vector of
GodotString
that uses Godot’s pool allocator. - String
Name - Style
Box core class StyleBox
inheritsResource
(reference counted).- Style
BoxEmpty core class StyleBoxEmpty
inheritsStyleBox
(reference counted).- Style
BoxFlat core class StyleBoxFlat
inheritsStyleBox
(reference counted).- Style
BoxLine core class StyleBoxLine
inheritsStyleBox
(reference counted).- Style
BoxTexture core class StyleBoxTexture
inheritsStyleBox
(reference counted).- Surface
Tool core class SurfaceTool
inheritsReference
(reference counted).- Text
File core class TextFile
inheritsResource
(reference counted).- Texture
core class Texture
inheritsResource
(reference counted).- Thread
core class Thread
inheritsReference
(reference counted).- Timer
core class Timer
inheritsNode
(unsafe).- Transform
- 3D Transformation (3x4 matrix) Using basis + origin representation.
- Translation
core class Translation
inheritsResource
(reference counted).- Translation
Server core singleton class TranslationServer
inheritsObject
(unsafe).- Tree
Item core class TreeItem
inheritsObject
(unsafe).- Triangle
Mesh core class TriangleMesh
inheritsReference
(reference counted).- Variant
- A
Variant
can represent many of godot’s core types. - Variant
Array - A reference-counted
Variant
vector. Godot’s generic array data type. Negative indices can be used to count from the right. - Vector2
Array - A reference-counted vector of
Vector2
that uses Godot’s pool allocator. - Vector3
Array - A reference-counted vector of
Vector3
that uses Godot’s pool allocator. - Viewport
core class Viewport
inheritsNode
(unsafe).- Viewport
Texture core class ViewportTexture
inheritsTexture
(reference counted).- Visibility
Enabler core class VisibilityEnabler
inheritsVisibilityNotifier
(unsafe).- Visibility
Enabler2D core class VisibilityEnabler2D
inheritsVisibilityNotifier2D
(unsafe).- Visibility
Notifier core class VisibilityNotifier
inheritsSpatial
(unsafe).- Visibility
Notifier2D core class VisibilityNotifier2D
inheritsNode2D
(unsafe).- Visual
Instance core class VisualInstance
inheritsSpatial
(unsafe).- WeakRef
core class WeakRef
inheritsReference
(reference counted).- World
core class World
inheritsResource
(reference counted).- World2D
core class World2D
inheritsResource
(reference counted).- World
Environment core class WorldEnvironment
inheritsNode
(unsafe).- XMLParser
core class XMLParser
inheritsReference
(reference counted).- YSort
core class YSort
inheritsNode2D
(unsafe).
Enums§
- Array
Mesh Array Format - Array
Mesh Array Type - Back
Buffer Copy Copy Mode - Camera2D
Anchor Mode - Camera
Doppler Tracking - Camera
Keep Aspect - Camera
Projection - Canvas
Item Blend Mode - Curve
Tangent Mode - Dynamic
Font Data Hinting - Dynamic
Font Spacing Type - EnvironmentBG
Mode - EnvironmentDOF
Blur Quality - Environment
Glow Blend Mode - EnvironmentSSAO
Blur - EnvironmentSSAO
Quality - Environment
Tone Mapper - File
Compression Mode - File
Mode Flags - Geometry
Instance Flags - Geometry
Instance Shadow Casting Setting - Godot
Error - Image
Alpha Mode - Image
Compress Mode - Image
Compress Source - Image
Format - Image
Interpolation - Image
Texture Storage - Input
Cursor Shape - Input
Mouse Mode - Line2D
Line CapMode - Line2D
Line Joint Mode - Line2D
Line Texture Mode - Mesh
Array Format - Mesh
Array Type - Mesh
Blend Shape Mode - Mesh
Primitive Type - Multi
Mesh Color Format - Multi
Mesh Transform Format - MultiplayerAPIRPC
Mode - Networked
Multiplayer Peer Connection Status - Networked
Multiplayer Peer Transfer Mode - Node
Duplicate Flags - Node
Pause Mode - OSMonth
- OSPower
State - OSScreen
Orientation - OSSystem
Dir - OSWeekday
- Object
Connect Flags - Packed
Scene GenEdit State - Path
Follow Rotation Mode - Performance
Monitor - Procedural
SkyTexture Size - Proximity
Group Dispatch Mode - Resource
Saver Saver Flags - Scene
State GenEdit State - Scene
Tree Group Call Flags - Scene
Tree Stretch Aspect - Scene
Tree Stretch Mode - Shader
Mode - SkyRadiance
Size - Style
BoxTexture Axis Stretch Mode - Texture
Flags - Thread
Priority - Timer
Timer Process Mode - Tree
Item Text Align - Tree
Item Tree Cell Mode - Variant
Operator - Variant
Type - Vector3
Axis - Viewport
Clear Mode - Viewport
Debug Draw - ViewportMSAA
- Viewport
Render Info - Viewport
Shadow Atlas Quadrant Subdiv - Viewport
Update Mode - Viewport
Usage - Visibility
Enabler2D Enabler - Visibility
Enabler Enabler - XMLParser
Node Type
Traits§
- Free
- Manually managed Godot classes implementing
free
. - Godot
Object - Internal details.
- Native
Class - Queue
Free - Manually managed Godot classes implementing
queue_free
. - ToVariant
- Types that can be converted to and from a
Variant
.