raylib

package
v0.0.0-...-bc92d6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: Zlib Imports: 5 Imported by: 63

Documentation

Overview

Package raylib provides Go bindings for Raylib.

Package raygui provides Go bindings for Raygui.

Index

Constants

View Source
const (
	// PI as defined in src/raylib.h:96
	PI = 3.14159265358979323846
	// DEG2RAD as defined in src/raylib.h:99
	DEG2RAD = (PI / 180.0)
	// RAD2DEG as defined in src/raylib.h:100
	RAD2DEG = (180.0 / PI)
	// LOC_MAP_DIFFUSE as defined in src/raylib.h:737
	LOC_MAP_DIFFUSE = 0
	// LOC_MAP_SPECULAR as defined in src/raylib.h:738
	LOC_MAP_SPECULAR = 0
	// MAP_DIFFUSE as defined in src/raylib.h:768
	MAP_DIFFUSE = 0
	// MAP_SPECULAR as defined in src/raylib.h:769
	MAP_SPECULAR = 0
)
View Source
const (
	// RAYGUI_VERSION as defined in src/raygui.h:134
	RAYGUI_VERSION = "2.6-dev"
	// RAYGUIDEF as defined in src/raygui.h:154
	RAYGUIDEF = 0
	// NUM_CONTROLS as defined in src/raygui.h:176
	NUM_CONTROLS = 16
	// NUM_PROPS_DEFAULT as defined in src/raygui.h:177
	NUM_PROPS_DEFAULT = 16
	// NUM_PROPS_EXTENDED as defined in src/raygui.h:178
	NUM_PROPS_EXTENDED = 8
	// TEXTEDIT_CURSOR_BLINK_FRAMES as defined in src/raygui.h:180
	TEXTEDIT_CURSOR_BLINK_FRAMES = 20
	// RICON_MAX_ICONS as defined in src/ricons.h:18
	RICON_MAX_ICONS = 256
	// RICON_SIZE as defined in src/ricons.h:19
	RICON_SIZE = 16
	// RICON_MAX_NAME_LENGTH as defined in src/ricons.h:21
	RICON_MAX_NAME_LENGTH = 32
	// RICON_DATA_ELEMENTS as defined in src/ricons.h:27
	RICON_DATA_ELEMENTS = (RICON_SIZE * RICON_SIZE / 32)
)

Variables

View Source
var (
	// Light Gray
	LightGray = CreateColor(200, 200, 200, 255)
	// Gray
	Gray = CreateColor(130, 130, 130, 255)
	// Dark Gray
	DarkGray = CreateColor(80, 80, 80, 255)
	// Yellow
	Yellow = CreateColor(253, 249, 0, 255)
	// Gold
	Gold = CreateColor(255, 203, 0, 255)
	// Orange
	Orange = CreateColor(255, 161, 0, 255)
	// Pink
	Pink = CreateColor(255, 109, 194, 255)
	// Red
	Red = CreateColor(230, 41, 55, 255)
	// Maroon
	Maroon = CreateColor(190, 33, 55, 255)
	// Green
	Green = CreateColor(0, 228, 48, 255)
	// Lime
	Lime = CreateColor(0, 158, 47, 255)
	// Dark Green
	DarkGreen = CreateColor(0, 117, 44, 255)
	// Sky Blue
	SkyBlue = CreateColor(102, 191, 255, 255)
	// Blue
	Blue = CreateColor(0, 121, 241, 255)
	// Dark Blue
	DarkBlue = CreateColor(0, 82, 172, 255)
	// Purple
	Purple = CreateColor(200, 122, 255, 255)
	// Violet
	Violet = CreateColor(135, 60, 190, 255)
	// Dark Purple
	DarkPurple = CreateColor(112, 31, 126, 255)
	// Beige
	Beige = CreateColor(211, 176, 131, 255)
	// Brown
	Brown = CreateColor(127, 106, 79, 255)
	// Dark Brown
	DarkBrown = CreateColor(76, 63, 47, 255)
	// White
	White = CreateColor(255, 255, 255, 255)
	// Black
	Black = CreateColor(0, 0, 0, 255)
	// Blank (Transparent)
	Blank = CreateColor(0, 0, 0, 0)
	// Magenta
	Magenta = CreateColor(255, 0, 255, 255)
	// Ray White (RayLib Logo White)
	RayWhite = CreateColor(245, 245, 245, 255)
)

Functions

func BeginBlendMode

func BeginBlendMode(mode int32)

BeginBlendMode function as declared in src/raylib.h:1443

func BeginDrawing

func BeginDrawing()

BeginDrawing function as declared in src/raylib.h:949

func BeginMode2D

func BeginMode2D(camera Camera2D)

BeginMode2D function as declared in src/raylib.h:951

func BeginMode3D

func BeginMode3D(camera Camera3D)

BeginMode3D function as declared in src/raylib.h:953

func BeginScissorMode

func BeginScissorMode(x int32, y int32, width int32, height int32)

BeginScissorMode function as declared in src/raylib.h:957

func BeginShaderMode

func BeginShaderMode(shader Shader)

BeginShaderMode function as declared in src/raylib.h:1441

func BeginTextureMode

func BeginTextureMode(target RenderTexture2D)

BeginTextureMode function as declared in src/raylib.h:955

func BeginVrDrawing

func BeginVrDrawing()

BeginVrDrawing function as declared in src/raylib.h:1453

func ChangeDirectory

func ChangeDirectory(dir string) bool

ChangeDirectory function as declared in src/raylib.h:1006

func CheckCollisionBoxSphere

func CheckCollisionBoxSphere(box BoundingBox, center Vector3, radius float32) bool

CheckCollisionBoxSphere function as declared in src/raylib.h:1396

func CheckCollisionBoxes

func CheckCollisionBoxes(box1 BoundingBox, box2 BoundingBox) bool

CheckCollisionBoxes function as declared in src/raylib.h:1395

func CheckCollisionCircleRec

func CheckCollisionCircleRec(center Vector2, radius float32, rec Rectangle) bool

CheckCollisionCircleRec function as declared in src/raylib.h:1134

func CheckCollisionCircles

func CheckCollisionCircles(center1 Vector2, radius1 float32, center2 Vector2, radius2 float32) bool

CheckCollisionCircles function as declared in src/raylib.h:1133

func CheckCollisionLines

func CheckCollisionLines(startPos1 Vector2, endPos1 Vector2, startPos2 Vector2, endPos2 Vector2, collisionPoint *Vector2) bool

CheckCollisionLines function as declared in src/raylib.h:1138

func CheckCollisionPointCircle

func CheckCollisionPointCircle(point Vector2, center Vector2, radius float32) bool

CheckCollisionPointCircle function as declared in src/raylib.h:1136

func CheckCollisionPointRec

func CheckCollisionPointRec(point Vector2, rec Rectangle) bool

CheckCollisionPointRec function as declared in src/raylib.h:1135

func CheckCollisionPointTriangle

func CheckCollisionPointTriangle(point Vector2, p1 Vector2, p2 Vector2, p3 Vector2) bool

CheckCollisionPointTriangle function as declared in src/raylib.h:1137

func CheckCollisionRayBox

func CheckCollisionRayBox(ray Ray, box BoundingBox) bool

CheckCollisionRayBox function as declared in src/raylib.h:1399

func CheckCollisionRaySphere

func CheckCollisionRaySphere(ray Ray, center Vector3, radius float32) bool

CheckCollisionRaySphere function as declared in src/raylib.h:1397

func CheckCollisionRaySphereEx

func CheckCollisionRaySphereEx(ray Ray, center Vector3, radius float32, collisionPoint *Vector3) bool

CheckCollisionRaySphereEx function as declared in src/raylib.h:1398

func CheckCollisionRecs

func CheckCollisionRecs(rec1 Rectangle, rec2 Rectangle) bool

CheckCollisionRecs function as declared in src/raylib.h:1132

func CheckCollisionSpheres

func CheckCollisionSpheres(center1 Vector3, radius1 float32, center2 Vector3, radius2 float32) bool

CheckCollisionSpheres function as declared in src/raylib.h:1394

func Clamp

func Clamp(value float32, min float32, max float32) float32

Clamp function as declared in src/raymath.h:148

func ClearBackground

func ClearBackground(color Color)

ClearBackground function as declared in src/raylib.h:948

func ClearDirectoryFiles

func ClearDirectoryFiles()

ClearDirectoryFiles function as declared in src/raylib.h:1005

func ClearDroppedFiles

func ClearDroppedFiles()

ClearDroppedFiles function as declared in src/raylib.h:1009

func ClearWindowState

func ClearWindowState(flags uint32)

ClearWindowState function as declared in src/raylib.h:911

func CloseAudioDevice

func CloseAudioDevice()

CloseAudioDevice function as declared in src/raylib.h:1462

func CloseAudioStream

func CloseAudioStream(stream AudioStream)

CloseAudioStream function as declared in src/raylib.h:1511

func CloseVrSimulator

func CloseVrSimulator()

CloseVrSimulator function as declared in src/raylib.h:1448

func CloseWindow

func CloseWindow()

CloseWindow function as declared in src/raylib.h:901

func CodepointToUtf8

func CodepointToUtf8(codepoint int32, byteLength *int32) string

CodepointToUtf8 function as declared in src/raylib.h:1311

func ColorToInt

func ColorToInt(color Color) int32

ColorToInt function as declared in src/raylib.h:1245

func CompressData

func CompressData(data *byte, dataLength int32, compDataLength *int32) *byte

CompressData function as declared in src/raylib.h:1012

func DecompressData

func DecompressData(compData *byte, compDataLength int32, dataLength *int32) *byte

DecompressData function as declared in src/raylib.h:1013

func DirectoryExists

func DirectoryExists(dirPath string) bool

DirectoryExists function as declared in src/raylib.h:996

func DisableCursor

func DisableCursor()

DisableCursor function as declared in src/raylib.h:944

func DrawBillboard

func DrawBillboard(camera Camera, texture Texture2D, center Vector3, size float32, tint Color)

DrawBillboard function as declared in src/raylib.h:1390

func DrawBillboardRec

func DrawBillboardRec(camera Camera, texture Texture2D, source Rectangle, center Vector3, size float32, tint Color)

DrawBillboardRec function as declared in src/raylib.h:1391

func DrawBoundingBox

func DrawBoundingBox(box BoundingBox, color Color)

DrawBoundingBox function as declared in src/raylib.h:1389

func DrawCircle

func DrawCircle(centerX int32, centerY int32, radius float32, color Color)

DrawCircle function as declared in src/raylib.h:1103

func DrawCircle3D

func DrawCircle3D(center Vector3, radius float32, rotationAxis Vector3, rotationAngle float32, color Color)

DrawCircle3D function as declared in src/raylib.h:1320

func DrawCircleGradient

func DrawCircleGradient(centerX int32, centerY int32, radius float32, color1 Color, color2 Color)

DrawCircleGradient function as declared in src/raylib.h:1106

func DrawCircleLines

func DrawCircleLines(centerX int32, centerY int32, radius float32, color Color)

DrawCircleLines function as declared in src/raylib.h:1108

func DrawCircleSector

func DrawCircleSector(center Vector2, radius float32, startAngle int32, endAngle int32, segments int32, color Color)

DrawCircleSector function as declared in src/raylib.h:1104

func DrawCircleSectorLines

func DrawCircleSectorLines(center Vector2, radius float32, startAngle int32, endAngle int32, segments int32, color Color)

DrawCircleSectorLines function as declared in src/raylib.h:1105

func DrawCircleV

func DrawCircleV(center Vector2, radius float32, color Color)

DrawCircleV function as declared in src/raylib.h:1107

func DrawCube

func DrawCube(position Vector3, width float32, height float32, length float32, color Color)

DrawCube function as declared in src/raylib.h:1323

func DrawCubeTexture

func DrawCubeTexture(texture Texture2D, position Vector3, width float32, height float32, length float32, color Color)

DrawCubeTexture function as declared in src/raylib.h:1327

func DrawCubeV

func DrawCubeV(position Vector3, size Vector3, color Color)

DrawCubeV function as declared in src/raylib.h:1324

func DrawCubeWires

func DrawCubeWires(position Vector3, width float32, height float32, length float32, color Color)

DrawCubeWires function as declared in src/raylib.h:1325

func DrawCubeWiresV

func DrawCubeWiresV(position Vector3, size Vector3, color Color)

DrawCubeWiresV function as declared in src/raylib.h:1326

func DrawCylinder

func DrawCylinder(position Vector3, radiusTop float32, radiusBottom float32, height float32, slices int32, color Color)

DrawCylinder function as declared in src/raylib.h:1331

func DrawCylinderWires

func DrawCylinderWires(position Vector3, radiusTop float32, radiusBottom float32, height float32, slices int32, color Color)

DrawCylinderWires function as declared in src/raylib.h:1332

func DrawEllipse

func DrawEllipse(centerX int32, centerY int32, radiusH float32, radiusV float32, color Color)

DrawEllipse function as declared in src/raylib.h:1109

func DrawEllipseLines

func DrawEllipseLines(centerX int32, centerY int32, radiusH float32, radiusV float32, color Color)

DrawEllipseLines function as declared in src/raylib.h:1110

func DrawFPS

func DrawFPS(posX int32, posY int32)

DrawFPS function as declared in src/raylib.h:1275

func DrawGizmo

func DrawGizmo(position Vector3)

DrawGizmo function as declared in src/raylib.h:1336

func DrawGrid

func DrawGrid(slices int32, spacing float32)

DrawGrid function as declared in src/raylib.h:1335

func DrawLine

func DrawLine(startPosX int32, startPosY int32, endPosX int32, endPosY int32, color Color)

DrawLine function as declared in src/raylib.h:1097

func DrawLine3D

func DrawLine3D(startPos Vector3, endPos Vector3, color Color)

DrawLine3D function as declared in src/raylib.h:1318

func DrawLineBezier

func DrawLineBezier(startPos Vector2, endPos Vector2, thick float32, color Color)

DrawLineBezier function as declared in src/raylib.h:1100

func DrawLineBezierQuad

func DrawLineBezierQuad(startPos Vector2, endPos Vector2, controlPos Vector2, thick float32, color Color)

DrawLineBezierQuad function as declared in src/raylib.h:1101

func DrawLineEx

func DrawLineEx(startPos Vector2, endPos Vector2, thick float32, color Color)

DrawLineEx function as declared in src/raylib.h:1099

func DrawLineStrip

func DrawLineStrip(points *Vector2, pointsCount int32, color Color)

DrawLineStrip function as declared in src/raylib.h:1102

func DrawLineV

func DrawLineV(startPos Vector2, endPos Vector2, color Color)

DrawLineV function as declared in src/raylib.h:1098

func DrawModel

func DrawModel(model Model, position Vector3, scale float32, tint Color)

DrawModel function as declared in src/raylib.h:1385

func DrawModelEx

func DrawModelEx(model Model, position Vector3, rotationAxis Vector3, rotationAngle float32, scale Vector3, tint Color)

DrawModelEx function as declared in src/raylib.h:1386

func DrawModelWires

func DrawModelWires(model Model, position Vector3, scale float32, tint Color)

DrawModelWires function as declared in src/raylib.h:1387

func DrawModelWiresEx

func DrawModelWiresEx(model Model, position Vector3, rotationAxis Vector3, rotationAngle float32, scale Vector3, tint Color)

DrawModelWiresEx function as declared in src/raylib.h:1388

func DrawPixel

func DrawPixel(posX int32, posY int32, color Color)

DrawPixel function as declared in src/raylib.h:1095

func DrawPixelV

func DrawPixelV(position Vector2, color Color)

DrawPixelV function as declared in src/raylib.h:1096

func DrawPlane

func DrawPlane(centerPos Vector3, size Vector2, color Color)

DrawPlane function as declared in src/raylib.h:1333

func DrawPoint3D

func DrawPoint3D(position Vector3, color Color)

DrawPoint3D function as declared in src/raylib.h:1319

func DrawPoly

func DrawPoly(center Vector2, sides int32, radius float32, rotation float32, color Color)

DrawPoly function as declared in src/raylib.h:1128

func DrawPolyLines

func DrawPolyLines(center Vector2, sides int32, radius float32, rotation float32, color Color)

DrawPolyLines function as declared in src/raylib.h:1129

func DrawRay

func DrawRay(ray Ray, color Color)

DrawRay function as declared in src/raylib.h:1334

func DrawRectangle

func DrawRectangle(posX int32, posY int32, width int32, height int32, color Color)

DrawRectangle function as declared in src/raylib.h:1113

func DrawRectangleGradientEx

func DrawRectangleGradientEx(rec Rectangle, col1 Color, col2 Color, col3 Color, col4 Color)

DrawRectangleGradientEx function as declared in src/raylib.h:1119

func DrawRectangleGradientH

func DrawRectangleGradientH(posX int32, posY int32, width int32, height int32, color1 Color, color2 Color)

DrawRectangleGradientH function as declared in src/raylib.h:1118

func DrawRectangleGradientV

func DrawRectangleGradientV(posX int32, posY int32, width int32, height int32, color1 Color, color2 Color)

DrawRectangleGradientV function as declared in src/raylib.h:1117

func DrawRectangleLines

func DrawRectangleLines(posX int32, posY int32, width int32, height int32, color Color)

DrawRectangleLines function as declared in src/raylib.h:1120

func DrawRectangleLinesEx

func DrawRectangleLinesEx(rec Rectangle, lineThick int32, color Color)

DrawRectangleLinesEx function as declared in src/raylib.h:1121

func DrawRectanglePro

func DrawRectanglePro(rec Rectangle, origin Vector2, rotation float32, color Color)

DrawRectanglePro function as declared in src/raylib.h:1116

func DrawRectangleRec

func DrawRectangleRec(rec Rectangle, color Color)

DrawRectangleRec function as declared in src/raylib.h:1115

func DrawRectangleRounded

func DrawRectangleRounded(rec Rectangle, roundness float32, segments int32, color Color)

DrawRectangleRounded function as declared in src/raylib.h:1122

func DrawRectangleRoundedLines

func DrawRectangleRoundedLines(rec Rectangle, roundness float32, segments int32, lineThick int32, color Color)

DrawRectangleRoundedLines function as declared in src/raylib.h:1123

func DrawRectangleV

func DrawRectangleV(position Vector2, size Vector2, color Color)

DrawRectangleV function as declared in src/raylib.h:1114

func DrawRing

func DrawRing(center Vector2, innerRadius float32, outerRadius float32, startAngle int32, endAngle int32, segments int32, color Color)

DrawRing function as declared in src/raylib.h:1111

func DrawRingLines

func DrawRingLines(center Vector2, innerRadius float32, outerRadius float32, startAngle int32, endAngle int32, segments int32, color Color)

DrawRingLines function as declared in src/raylib.h:1112

func DrawSphere

func DrawSphere(centerPos Vector3, radius float32, color Color)

DrawSphere function as declared in src/raylib.h:1328

func DrawSphereEx

func DrawSphereEx(centerPos Vector3, radius float32, rings int32, slices int32, color Color)

DrawSphereEx function as declared in src/raylib.h:1329

func DrawSphereWires

func DrawSphereWires(centerPos Vector3, radius float32, rings int32, slices int32, color Color)

DrawSphereWires function as declared in src/raylib.h:1330

func DrawText

func DrawText(text string, posX int32, posY int32, fontSize int32, color Color)

DrawText function as declared in src/raylib.h:1276

func DrawTextCodepoint

func DrawTextCodepoint(font Font, codepoint int32, position Vector2, fontSize float32, tint Color)

DrawTextCodepoint function as declared in src/raylib.h:1281

func DrawTextEx

func DrawTextEx(font Font, text string, position Vector2, fontSize float32, spacing float32, tint Color)

DrawTextEx function as declared in src/raylib.h:1277

func DrawTextRec

func DrawTextRec(font Font, text string, rec Rectangle, fontSize float32, spacing float32, wordWrap bool, tint Color)

DrawTextRec function as declared in src/raylib.h:1278

func DrawTextRecEx

func DrawTextRecEx(font Font, text string, rec Rectangle, fontSize float32, spacing float32, wordWrap bool, tint Color, selectStart int32, selectLength int32, selectTint Color, selectBackTint Color)

DrawTextRecEx function as declared in src/raylib.h:1279

func DrawTexture

func DrawTexture(texture Texture2D, posX int32, posY int32, tint Color)

DrawTexture function as declared in src/raylib.h:1234

func DrawTextureEx

func DrawTextureEx(texture Texture2D, position Vector2, rotation float32, scale float32, tint Color)

DrawTextureEx function as declared in src/raylib.h:1236

func DrawTextureNPatch

func DrawTextureNPatch(texture Texture2D, nPatchInfo NPatchInfo, dest Rectangle, origin Vector2, rotation float32, tint Color)

DrawTextureNPatch function as declared in src/raylib.h:1241

func DrawTexturePro

func DrawTexturePro(texture Texture2D, source Rectangle, dest Rectangle, origin Vector2, rotation float32, tint Color)

DrawTexturePro function as declared in src/raylib.h:1240

func DrawTextureQuad

func DrawTextureQuad(texture Texture2D, tiling Vector2, offset Vector2, quad Rectangle, tint Color)

DrawTextureQuad function as declared in src/raylib.h:1238

func DrawTextureRec

func DrawTextureRec(texture Texture2D, source Rectangle, position Vector2, tint Color)

DrawTextureRec function as declared in src/raylib.h:1237

func DrawTextureTiled

func DrawTextureTiled(texture Texture2D, source Rectangle, dest Rectangle, origin Vector2, rotation float32, scale float32, tint Color)

DrawTextureTiled function as declared in src/raylib.h:1239

func DrawTextureV

func DrawTextureV(texture Texture2D, position Vector2, tint Color)

DrawTextureV function as declared in src/raylib.h:1235

func DrawTriangle

func DrawTriangle(v1 Vector2, v2 Vector2, v3 Vector2, color Color)

DrawTriangle function as declared in src/raylib.h:1124

func DrawTriangle3D

func DrawTriangle3D(v1 Vector3, v2 Vector3, v3 Vector3, color Color)

DrawTriangle3D function as declared in src/raylib.h:1321

func DrawTriangleFan

func DrawTriangleFan(points *Vector2, pointsCount int32, color Color)

DrawTriangleFan function as declared in src/raylib.h:1126

func DrawTriangleLines

func DrawTriangleLines(v1 Vector2, v2 Vector2, v3 Vector2, color Color)

DrawTriangleLines function as declared in src/raylib.h:1125

func DrawTriangleStrip

func DrawTriangleStrip(points *Vector2, pointsCount int32, color Color)

DrawTriangleStrip function as declared in src/raylib.h:1127

func DrawTriangleStrip3D

func DrawTriangleStrip3D(points *Vector3, pointsCount int32, color Color)

DrawTriangleStrip3D function as declared in src/raylib.h:1322

func EaseBackIn

func EaseBackIn(t float32, b float32, c float32, d float32) float32

EaseBackIn function as declared in src/easings.h:154

func EaseBackInOut

func EaseBackInOut(t float32, b float32, c float32, d float32) float32

EaseBackInOut function as declared in src/easings.h:168

func EaseBackOut

func EaseBackOut(t float32, b float32, c float32, d float32) float32

EaseBackOut function as declared in src/easings.h:161

func EaseBounceIn

func EaseBounceIn(t float32, b float32, c float32, d float32) float32

EaseBounceIn function as declared in src/easings.h:206

func EaseBounceInOut

func EaseBounceInOut(t float32, b float32, c float32, d float32) float32

EaseBounceInOut function as declared in src/easings.h:207

func EaseBounceOut

func EaseBounceOut(t float32, b float32, c float32, d float32) float32

EaseBounceOut function as declared in src/easings.h:183

func EaseCircIn

func EaseCircIn(t float32, b float32, c float32, d float32) float32

EaseCircIn function as declared in src/easings.h:115

func EaseCircInOut

func EaseCircInOut(t float32, b float32, c float32, d float32) float32

EaseCircInOut function as declared in src/easings.h:117

func EaseCircOut

func EaseCircOut(t float32, b float32, c float32, d float32) float32

EaseCircOut function as declared in src/easings.h:116

func EaseCubicIn

func EaseCubicIn(t float32, b float32, c float32, d float32) float32

EaseCubicIn function as declared in src/easings.h:124

func EaseCubicInOut

func EaseCubicInOut(t float32, b float32, c float32, d float32) float32

EaseCubicInOut function as declared in src/easings.h:126

func EaseCubicOut

func EaseCubicOut(t float32, b float32, c float32, d float32) float32

EaseCubicOut function as declared in src/easings.h:125

func EaseElasticIn

func EaseElasticIn(t float32, b float32, c float32, d float32) float32

EaseElasticIn function as declared in src/easings.h:214

func EaseElasticInOut

func EaseElasticInOut(t float32, b float32, c float32, d float32) float32

EaseElasticInOut function as declared in src/easings.h:239

func EaseElasticOut

func EaseElasticOut(t float32, b float32, c float32, d float32) float32

EaseElasticOut function as declared in src/easings.h:227

func EaseExpoIn

func EaseExpoIn(t float32, b float32, c float32, d float32) float32

EaseExpoIn function as declared in src/easings.h:142

func EaseExpoInOut

func EaseExpoInOut(t float32, b float32, c float32, d float32) float32

EaseExpoInOut function as declared in src/easings.h:144

func EaseExpoOut

func EaseExpoOut(t float32, b float32, c float32, d float32) float32

EaseExpoOut function as declared in src/easings.h:143

func EaseLinearIn

func EaseLinearIn(t float32, b float32, c float32, d float32) float32

EaseLinearIn function as declared in src/easings.h:105

func EaseLinearInOut

func EaseLinearInOut(t float32, b float32, c float32, d float32) float32

EaseLinearInOut function as declared in src/easings.h:107

func EaseLinearNone

func EaseLinearNone(t float32, b float32, c float32, d float32) float32

EaseLinearNone function as declared in src/easings.h:104

func EaseLinearOut

func EaseLinearOut(t float32, b float32, c float32, d float32) float32

EaseLinearOut function as declared in src/easings.h:106

func EaseQuadIn

func EaseQuadIn(t float32, b float32, c float32, d float32) float32

EaseQuadIn function as declared in src/easings.h:133

func EaseQuadInOut

func EaseQuadInOut(t float32, b float32, c float32, d float32) float32

EaseQuadInOut function as declared in src/easings.h:135

func EaseQuadOut

func EaseQuadOut(t float32, b float32, c float32, d float32) float32

EaseQuadOut function as declared in src/easings.h:134

func EaseSineIn

func EaseSineIn(t float32, b float32, c float32, d float32) float32

EaseSineIn function as declared in src/easings.h:110

func EaseSineInOut

func EaseSineInOut(t float32, b float32, c float32, d float32) float32

EaseSineInOut function as declared in src/easings.h:112

func EaseSineOut

func EaseSineOut(t float32, b float32, c float32, d float32) float32

EaseSineOut function as declared in src/easings.h:111

func EnableCursor

func EnableCursor()

EnableCursor function as declared in src/raylib.h:943

func EndBlendMode

func EndBlendMode()

EndBlendMode function as declared in src/raylib.h:1444

func EndDrawing

func EndDrawing()

EndDrawing function as declared in src/raylib.h:950

func EndMode2D

func EndMode2D()

EndMode2D function as declared in src/raylib.h:952

func EndMode3D

func EndMode3D()

EndMode3D function as declared in src/raylib.h:954

func EndScissorMode

func EndScissorMode()

EndScissorMode function as declared in src/raylib.h:958

func EndShaderMode

func EndShaderMode()

EndShaderMode function as declared in src/raylib.h:1442

func EndTextureMode

func EndTextureMode()

EndTextureMode function as declared in src/raylib.h:956

func EndVrDrawing

func EndVrDrawing()

EndVrDrawing function as declared in src/raylib.h:1454

func ExportImage

func ExportImage(image Image, fileName string) bool

ExportImage function as declared in src/raylib.h:1152

func ExportImageAsCode

func ExportImageAsCode(image Image, fileName string) bool

ExportImageAsCode function as declared in src/raylib.h:1153

func ExportMesh

func ExportMesh(mesh Mesh, fileName string) bool

ExportMesh function as declared in src/raylib.h:1351

func ExportWave

func ExportWave(wave Wave, fileName string) bool

ExportWave function as declared in src/raylib.h:1474

func ExportWaveAsCode

func ExportWaveAsCode(wave Wave, fileName string) bool

ExportWaveAsCode function as declared in src/raylib.h:1475

func FileExists

func FileExists(fileName string) bool

FileExists function as declared in src/raylib.h:995

func GenTextureMipmaps

func GenTextureMipmaps(texture *Texture2D)

GenTextureMipmaps function as declared in src/raylib.h:1229

func GetCharPressed

func GetCharPressed() int32

GetCharPressed function as declared in src/raylib.h:1032

func GetClipboardText

func GetClipboardText() string

GetClipboardText function as declared in src/raylib.h:937

func GetCodepoints

func GetCodepoints(text string, count *int32) *int32

GetCodepoints function as declared in src/raylib.h:1308

func GetCodepointsCount

func GetCodepointsCount(text string) int32

GetCodepointsCount function as declared in src/raylib.h:1309

func GetCurrentMonitor

func GetCurrentMonitor() int32

GetCurrentMonitor function as declared in src/raylib.h:926

func GetDirectoryFiles

func GetDirectoryFiles(dirPath string, count *int32) **byte

GetDirectoryFiles function as declared in src/raylib.h:1004

func GetDirectoryPath

func GetDirectoryPath(filePath string) string

GetDirectoryPath function as declared in src/raylib.h:1001

func GetDroppedFiles

func GetDroppedFiles(count *int32) **byte

GetDroppedFiles function as declared in src/raylib.h:1008

func GetFPS

func GetFPS() int32

GetFPS function as declared in src/raylib.h:971

func GetFileExtension

func GetFileExtension(fileName string) string

GetFileExtension function as declared in src/raylib.h:998

func GetFileModTime

func GetFileModTime(fileName string) int

GetFileModTime function as declared in src/raylib.h:1010

func GetFileName

func GetFileName(filePath string) string

GetFileName function as declared in src/raylib.h:999

func GetFileNameWithoutExt

func GetFileNameWithoutExt(filePath string) string

GetFileNameWithoutExt function as declared in src/raylib.h:1000

func GetFrameTime

func GetFrameTime() float32

GetFrameTime function as declared in src/raylib.h:972

func GetGamepadAxisCount

func GetGamepadAxisCount(gamepad int32) int32

GetGamepadAxisCount function as declared in src/raylib.h:1043

func GetGamepadAxisMovement

func GetGamepadAxisMovement(gamepad int32, axis int32) float32

GetGamepadAxisMovement function as declared in src/raylib.h:1044

func GetGamepadButtonPressed

func GetGamepadButtonPressed() int32

GetGamepadButtonPressed function as declared in src/raylib.h:1042

func GetGamepadName

func GetGamepadName(gamepad int32) string

GetGamepadName function as declared in src/raylib.h:1037

func GetGestureDetected

func GetGestureDetected() int32

GetGestureDetected function as declared in src/raylib.h:1071

func GetGestureDragAngle

func GetGestureDragAngle() float32

GetGestureDragAngle function as declared in src/raylib.h:1075

func GetGestureHoldDuration

func GetGestureHoldDuration() float32

GetGestureHoldDuration function as declared in src/raylib.h:1073

func GetGesturePinchAngle

func GetGesturePinchAngle() float32

GetGesturePinchAngle function as declared in src/raylib.h:1077

func GetGlyphIndex

func GetGlyphIndex(font Font, codepoint int32) int32

GetGlyphIndex function as declared in src/raylib.h:1286

func GetKeyPressed

func GetKeyPressed() int32

GetKeyPressed function as declared in src/raylib.h:1031

func GetMonitorCount

func GetMonitorCount() int32

GetMonitorCount function as declared in src/raylib.h:925

func GetMonitorHeight

func GetMonitorHeight(monitor int32) int32

GetMonitorHeight function as declared in src/raylib.h:929

func GetMonitorName

func GetMonitorName(monitor int32) string

GetMonitorName function as declared in src/raylib.h:935

func GetMonitorPhysicalHeight

func GetMonitorPhysicalHeight(monitor int32) int32

GetMonitorPhysicalHeight function as declared in src/raylib.h:931

func GetMonitorPhysicalWidth

func GetMonitorPhysicalWidth(monitor int32) int32

GetMonitorPhysicalWidth function as declared in src/raylib.h:930

func GetMonitorRefreshRate

func GetMonitorRefreshRate(monitor int32) int32

GetMonitorRefreshRate function as declared in src/raylib.h:932

func GetMonitorWidth

func GetMonitorWidth(monitor int32) int32

GetMonitorWidth function as declared in src/raylib.h:928

func GetMouseCursor

func GetMouseCursor() int32

GetMouseCursor function as declared in src/raylib.h:1058

func GetMouseWheelMove

func GetMouseWheelMove() float32

GetMouseWheelMove function as declared in src/raylib.h:1057

func GetMouseX

func GetMouseX() int32

GetMouseX function as declared in src/raylib.h:1051

func GetMouseY

func GetMouseY() int32

GetMouseY function as declared in src/raylib.h:1052

func GetMusicTimeLength

func GetMusicTimeLength(music Music) float32

GetMusicTimeLength function as declared in src/raylib.h:1505

func GetMusicTimePlayed

func GetMusicTimePlayed(music Music) float32

GetMusicTimePlayed function as declared in src/raylib.h:1506

func GetNextCodepoint

func GetNextCodepoint(text string, bytesProcessed *int32) int32

GetNextCodepoint function as declared in src/raylib.h:1310

func GetPixelDataSize

func GetPixelDataSize(width int32, height int32, format int32) int32

GetPixelDataSize function as declared in src/raylib.h:1255

func GetPrevDirectoryPath

func GetPrevDirectoryPath(dirPath string) string

GetPrevDirectoryPath function as declared in src/raylib.h:1002

func GetRandomValue

func GetRandomValue(min int32, max int32) int32

GetRandomValue function as declared in src/raylib.h:986

func GetScreenHeight

func GetScreenHeight() int32

GetScreenHeight function as declared in src/raylib.h:924

func GetScreenWidth

func GetScreenWidth() int32

GetScreenWidth function as declared in src/raylib.h:923

func GetShaderLocation

func GetShaderLocation(shader Shader, uniformName string) int32

GetShaderLocation function as declared in src/raylib.h:1422

func GetShaderLocationAttrib

func GetShaderLocationAttrib(shader Shader, attribName string) int32

GetShaderLocationAttrib function as declared in src/raylib.h:1423

func GetSoundsPlaying

func GetSoundsPlaying() int32

GetSoundsPlaying function as declared in src/raylib.h:1484

func GetTime

func GetTime() float64

GetTime function as declared in src/raylib.h:973

func GetTouchPointsCount

func GetTouchPointsCount() int32

GetTouchPointsCount function as declared in src/raylib.h:1072

func GetTouchX

func GetTouchX() int32

GetTouchX function as declared in src/raylib.h:1062

func GetTouchY

func GetTouchY() int32

GetTouchY function as declared in src/raylib.h:1063

func GetWindowHandle

func GetWindowHandle() unsafe.Pointer

GetWindowHandle function as declared in src/raylib.h:922

func GetWorkingDirectory

func GetWorkingDirectory() string

GetWorkingDirectory function as declared in src/raylib.h:1003

func GuiButton

func GuiButton(bounds Rectangle, text string) bool

GuiButton function as declared in src/raygui.h:451

func GuiCheckBox

func GuiCheckBox(bounds Rectangle, text string, checked bool) bool

GuiCheckBox function as declared in src/raygui.h:457

func GuiClearTooltip

func GuiClearTooltip()

GuiClearTooltip function as declared in src/raygui.h:440

func GuiColorBarAlpha

func GuiColorBarAlpha(bounds Rectangle, alpha float32) float32

GuiColorBarAlpha function as declared in src/raygui.h:479

func GuiColorBarHue

func GuiColorBarHue(bounds Rectangle, value float32) float32

GuiColorBarHue function as declared in src/raygui.h:480

func GuiComboBox

func GuiComboBox(bounds Rectangle, text string, active int32) int32

GuiComboBox function as declared in src/raygui.h:458

func GuiDisable

func GuiDisable()

GuiDisable function as declared in src/raygui.h:421

func GuiDisableTooltip

func GuiDisableTooltip()

GuiDisableTooltip function as declared in src/raygui.h:438

func GuiDropdownBox

func GuiDropdownBox(bounds Rectangle, text string, active *int32, editMode bool) bool

GuiDropdownBox function as declared in src/raygui.h:459

func GuiDummyRec

func GuiDummyRec(bounds Rectangle, text string)

GuiDummyRec function as declared in src/raygui.h:468

func GuiEnable

func GuiEnable()

GuiEnable function as declared in src/raygui.h:420

func GuiEnableTooltip

func GuiEnableTooltip()

GuiEnableTooltip function as declared in src/raygui.h:437

func GuiFade

func GuiFade(alpha float32)

GuiFade function as declared in src/raygui.h:424

func GuiGetState

func GuiGetState() int32

GuiGetState function as declared in src/raygui.h:426

func GuiGetStyle

func GuiGetStyle(control int32, property int32) int32

GuiGetStyle function as declared in src/raygui.h:434

func GuiGroupBox

func GuiGroupBox(bounds Rectangle, text string)

GuiGroupBox function as declared in src/raygui.h:444

func GuiIconText

func GuiIconText(iconId int32, text string) string

GuiIconText function as declared in src/raygui.h:492

func GuiImageButton

func GuiImageButton(bounds Rectangle, text string, texture Texture2D) bool

GuiImageButton function as declared in src/raygui.h:453

func GuiImageButtonEx

func GuiImageButtonEx(bounds Rectangle, text string, texture Texture2D, texSource Rectangle) bool

GuiImageButtonEx function as declared in src/raygui.h:454

func GuiLabel

func GuiLabel(bounds Rectangle, text string)

GuiLabel function as declared in src/raygui.h:450

func GuiLabelButton

func GuiLabelButton(bounds Rectangle, text string) bool

GuiLabelButton function as declared in src/raygui.h:452

func GuiLine

func GuiLine(bounds Rectangle, text string)

GuiLine function as declared in src/raygui.h:445

func GuiListView

func GuiListView(bounds Rectangle, text string, scrollIndex *int32, active int32) int32

GuiListView function as declared in src/raygui.h:473

func GuiListViewEx

func GuiListViewEx(bounds Rectangle, text *MultiText, count int32, focus *int32, scrollIndex *int32, active int32) int32

GuiListViewEx function as declared in src/raygui.h:479

func GuiLoadStyle

func GuiLoadStyle(fileName string)

GuiLoadStyle function as declared in src/raygui.h:483

func GuiLoadStyleDefault

func GuiLoadStyleDefault()

GuiLoadStyleDefault function as declared in src/raygui.h:484

func GuiLock

func GuiLock()

GuiLock function as declared in src/raygui.h:422

func GuiMessageBox

func GuiMessageBox(bounds Rectangle, title string, message string, buttons string) int32

GuiMessageBox function as declared in src/raygui.h:475

func GuiPanel

func GuiPanel(bounds Rectangle)

GuiPanel function as declared in src/raygui.h:446

func GuiProgressBar

func GuiProgressBar(bounds Rectangle, textLeft string, textRight string, value float32, minValue float32, maxValue float32) float32

GuiProgressBar function as declared in src/raygui.h:466

func GuiScrollBar

func GuiScrollBar(bounds Rectangle, value int32, minValue int32, maxValue int32) int32

GuiScrollBar function as declared in src/raygui.h:469

func GuiSetFont

func GuiSetFont(font Font)

GuiSetFont function as declared in src/raygui.h:429

func GuiSetState

func GuiSetState(state int32)

GuiSetState function as declared in src/raygui.h:425

func GuiSetStyle

func GuiSetStyle(control int32, property int32, value int32)

GuiSetStyle function as declared in src/raygui.h:433

func GuiSetTooltip

func GuiSetTooltip(tooltip string)

GuiSetTooltip function as declared in src/raygui.h:439

func GuiSlider

func GuiSlider(bounds Rectangle, textLeft string, textRight string, value float32, minValue float32, maxValue float32) float32

GuiSlider function as declared in src/raygui.h:464

func GuiSliderBar

func GuiSliderBar(bounds Rectangle, textLeft string, textRight string, value float32, minValue float32, maxValue float32) float32

GuiSliderBar function as declared in src/raygui.h:465

func GuiSliderPro

func GuiSliderPro(bounds Rectangle, textLeft string, textRight string, value float32, minValue float32, maxValue float32, sliderWidth int32) float32

GuiSliderPro function as declared in src/raygui.h:496

func GuiSpinner

func GuiSpinner(bounds Rectangle, text string, value *int32, minValue int32, maxValue int32, editMode bool) bool

GuiSpinner function as declared in src/raygui.h:460

func GuiStatusBar

func GuiStatusBar(bounds Rectangle, text string)

GuiStatusBar function as declared in src/raygui.h:467

func GuiTextBox

func GuiTextBox(bounds Rectangle, text *byte, textSize int32, editMode bool) bool

GuiTextBox function as declared in src/raygui.h:462

func GuiTextBoxMulti

func GuiTextBoxMulti(bounds Rectangle, text *byte, textSize int32, editMode bool) bool

GuiTextBoxMulti function as declared in src/raygui.h:463

func GuiTextInputBox

func GuiTextInputBox(bounds Rectangle, title string, message string, buttons string, text *byte) int32

GuiTextInputBox function as declared in src/raygui.h:476

func GuiToggle

func GuiToggle(bounds Rectangle, text string, active bool) bool

GuiToggle function as declared in src/raygui.h:455

func GuiToggleGroup

func GuiToggleGroup(bounds Rectangle, text string, active int32) int32

GuiToggleGroup function as declared in src/raygui.h:456

func GuiUnlock

func GuiUnlock()

GuiUnlock function as declared in src/raygui.h:423

func GuiValueBox

func GuiValueBox(bounds Rectangle, text string, value *int32, minValue int32, maxValue int32, editMode bool) bool

GuiValueBox function as declared in src/raygui.h:461

func GuiWindowBox

func GuiWindowBox(bounds Rectangle, title string) bool

GuiWindowBox function as declared in src/raygui.h:443

func HideCursor

func HideCursor()

HideCursor function as declared in src/raylib.h:941

func ImageAlphaClear

func ImageAlphaClear(image *Image, color Color, threshold float32)

ImageAlphaClear function as declared in src/raylib.h:1174

func ImageAlphaCrop

func ImageAlphaCrop(image *Image, threshold float32)

ImageAlphaCrop function as declared in src/raylib.h:1173

func ImageAlphaMask

func ImageAlphaMask(image *Image, alphaMask Image)

ImageAlphaMask function as declared in src/raylib.h:1175

func ImageAlphaPremultiply

func ImageAlphaPremultiply(image *Image)

ImageAlphaPremultiply function as declared in src/raylib.h:1176

func ImageClearBackground

func ImageClearBackground(dst *Image, color Color)

ImageClearBackground function as declared in src/raylib.h:1200

func ImageColorBrightness

func ImageColorBrightness(image *Image, brightness int32)

ImageColorBrightness function as declared in src/raylib.h:1190

func ImageColorContrast

func ImageColorContrast(image *Image, contrast float32)

ImageColorContrast function as declared in src/raylib.h:1189

func ImageColorGrayscale

func ImageColorGrayscale(image *Image)

ImageColorGrayscale function as declared in src/raylib.h:1188

func ImageColorInvert

func ImageColorInvert(image *Image)

ImageColorInvert function as declared in src/raylib.h:1187

func ImageColorReplace

func ImageColorReplace(image *Image, color Color, replace Color)

ImageColorReplace function as declared in src/raylib.h:1191

func ImageColorTint

func ImageColorTint(image *Image, color Color)

ImageColorTint function as declared in src/raylib.h:1186

func ImageCrop

func ImageCrop(image *Image, crop Rectangle)

ImageCrop function as declared in src/raylib.h:1172

func ImageDither

func ImageDither(image *Image, rBpp int32, gBpp int32, bBpp int32, aBpp int32)

ImageDither function as declared in src/raylib.h:1181

func ImageDraw

func ImageDraw(dst *Image, src Image, srcRec Rectangle, dstRec Rectangle, tint Color)

ImageDraw function as declared in src/raylib.h:1211

func ImageDrawCircle

func ImageDrawCircle(dst *Image, centerX int32, centerY int32, radius int32, color Color)

ImageDrawCircle function as declared in src/raylib.h:1205

func ImageDrawCircleV

func ImageDrawCircleV(dst *Image, center Vector2, radius int32, color Color)

ImageDrawCircleV function as declared in src/raylib.h:1206

func ImageDrawLine

func ImageDrawLine(dst *Image, startPosX int32, startPosY int32, endPosX int32, endPosY int32, color Color)

ImageDrawLine function as declared in src/raylib.h:1203

func ImageDrawLineV

func ImageDrawLineV(dst *Image, start Vector2, end Vector2, color Color)

ImageDrawLineV function as declared in src/raylib.h:1204

func ImageDrawPixel

func ImageDrawPixel(dst *Image, posX int32, posY int32, color Color)

ImageDrawPixel function as declared in src/raylib.h:1201

func ImageDrawPixelV

func ImageDrawPixelV(dst *Image, position Vector2, color Color)

ImageDrawPixelV function as declared in src/raylib.h:1202

func ImageDrawRectangle

func ImageDrawRectangle(dst *Image, posX int32, posY int32, width int32, height int32, color Color)

ImageDrawRectangle function as declared in src/raylib.h:1207

func ImageDrawRectangleLines

func ImageDrawRectangleLines(dst *Image, rec Rectangle, thick int32, color Color)

ImageDrawRectangleLines function as declared in src/raylib.h:1210

func ImageDrawRectangleRec

func ImageDrawRectangleRec(dst *Image, rec Rectangle, color Color)

ImageDrawRectangleRec function as declared in src/raylib.h:1209

func ImageDrawRectangleV

func ImageDrawRectangleV(dst *Image, position Vector2, size Vector2, color Color)

ImageDrawRectangleV function as declared in src/raylib.h:1208

func ImageDrawText

func ImageDrawText(dst *Image, text string, posX int32, posY int32, fontSize int32, color Color)

ImageDrawText function as declared in src/raylib.h:1212

func ImageDrawTextEx

func ImageDrawTextEx(dst *Image, font Font, text string, position Vector2, fontSize float32, spacing float32, tint Color)

ImageDrawTextEx function as declared in src/raylib.h:1213

func ImageFlipHorizontal

func ImageFlipHorizontal(image *Image)

ImageFlipHorizontal function as declared in src/raylib.h:1183

func ImageFlipVertical

func ImageFlipVertical(image *Image)

ImageFlipVertical function as declared in src/raylib.h:1182

func ImageFormat

func ImageFormat(image *Image, newFormat int32)

ImageFormat function as declared in src/raylib.h:1170

func ImageMipmaps

func ImageMipmaps(image *Image)

ImageMipmaps function as declared in src/raylib.h:1180

func ImageResize

func ImageResize(image *Image, newWidth int32, newHeight int32)

ImageResize function as declared in src/raylib.h:1177

func ImageResizeCanvas

func ImageResizeCanvas(image *Image, newWidth int32, newHeight int32, offsetX int32, offsetY int32, fill Color)

ImageResizeCanvas function as declared in src/raylib.h:1179

func ImageResizeNN

func ImageResizeNN(image *Image, newWidth int32, newHeight int32)

ImageResizeNN function as declared in src/raylib.h:1178

func ImageRotateCCW

func ImageRotateCCW(image *Image)

ImageRotateCCW function as declared in src/raylib.h:1185

func ImageRotateCW

func ImageRotateCW(image *Image)

ImageRotateCW function as declared in src/raylib.h:1184

func ImageToPOT

func ImageToPOT(image *Image, fill Color)

ImageToPOT function as declared in src/raylib.h:1171

func InitAudioDevice

func InitAudioDevice()

InitAudioDevice function as declared in src/raylib.h:1461

func InitVrSimulator

func InitVrSimulator()

InitVrSimulator function as declared in src/raylib.h:1447

func InitWindow

func InitWindow(width int32, height int32, title string)

InitWindow function as declared in src/raylib.h:899

func IsAudioDeviceReady

func IsAudioDeviceReady() bool

IsAudioDeviceReady function as declared in src/raylib.h:1463

func IsAudioStreamPlaying

func IsAudioStreamPlaying(stream AudioStream) bool

IsAudioStreamPlaying function as declared in src/raylib.h:1516

func IsAudioStreamProcessed

func IsAudioStreamProcessed(stream AudioStream) bool

IsAudioStreamProcessed function as declared in src/raylib.h:1512

func IsCursorHidden

func IsCursorHidden() bool

IsCursorHidden function as declared in src/raylib.h:942

func IsCursorOnScreen

func IsCursorOnScreen() bool

IsCursorOnScreen function as declared in src/raylib.h:945

func IsFileDropped

func IsFileDropped() bool

IsFileDropped function as declared in src/raylib.h:1007

func IsFileExtension

func IsFileExtension(fileName string, ext string) bool

IsFileExtension function as declared in src/raylib.h:997

func IsGamepadAvailable

func IsGamepadAvailable(gamepad int32) bool

IsGamepadAvailable function as declared in src/raylib.h:1035

func IsGamepadButtonDown

func IsGamepadButtonDown(gamepad int32, button int32) bool

IsGamepadButtonDown function as declared in src/raylib.h:1039

func IsGamepadButtonPressed

func IsGamepadButtonPressed(gamepad int32, button int32) bool

IsGamepadButtonPressed function as declared in src/raylib.h:1038

func IsGamepadButtonReleased

func IsGamepadButtonReleased(gamepad int32, button int32) bool

IsGamepadButtonReleased function as declared in src/raylib.h:1040

func IsGamepadButtonUp

func IsGamepadButtonUp(gamepad int32, button int32) bool

IsGamepadButtonUp function as declared in src/raylib.h:1041

func IsGamepadName

func IsGamepadName(gamepad int32, name string) bool

IsGamepadName function as declared in src/raylib.h:1036

func IsGestureDetected

func IsGestureDetected(gesture int32) bool

IsGestureDetected function as declared in src/raylib.h:1070

func IsKeyDown

func IsKeyDown(key int32) bool

IsKeyDown function as declared in src/raylib.h:1027

func IsKeyPressed

func IsKeyPressed(key int32) bool

IsKeyPressed function as declared in src/raylib.h:1026

func IsKeyReleased

func IsKeyReleased(key int32) bool

IsKeyReleased function as declared in src/raylib.h:1028

func IsKeyUp

func IsKeyUp(key int32) bool

IsKeyUp function as declared in src/raylib.h:1029

func IsModelAnimationValid

func IsModelAnimationValid(model Model, anim ModelAnimation) bool

IsModelAnimationValid function as declared in src/raylib.h:1364

func IsMouseButtonDown

func IsMouseButtonDown(button int32) bool

IsMouseButtonDown function as declared in src/raylib.h:1048

func IsMouseButtonPressed

func IsMouseButtonPressed(button int32) bool

IsMouseButtonPressed function as declared in src/raylib.h:1047

func IsMouseButtonReleased

func IsMouseButtonReleased(button int32) bool

IsMouseButtonReleased function as declared in src/raylib.h:1049

func IsMouseButtonUp

func IsMouseButtonUp(button int32) bool

IsMouseButtonUp function as declared in src/raylib.h:1050

func IsMusicPlaying

func IsMusicPlaying(music Music) bool

IsMusicPlaying function as declared in src/raylib.h:1502

func IsSoundPlaying

func IsSoundPlaying(sound Sound) bool

IsSoundPlaying function as declared in src/raylib.h:1485

func IsVrSimulatorReady

func IsVrSimulatorReady() bool

IsVrSimulatorReady function as declared in src/raylib.h:1451

func IsWindowFocused

func IsWindowFocused() bool

IsWindowFocused function as declared in src/raylib.h:907

func IsWindowFullscreen

func IsWindowFullscreen() bool

IsWindowFullscreen function as declared in src/raylib.h:903

func IsWindowHidden

func IsWindowHidden() bool

IsWindowHidden function as declared in src/raylib.h:904

func IsWindowMaximized

func IsWindowMaximized() bool

IsWindowMaximized function as declared in src/raylib.h:906

func IsWindowMinimized

func IsWindowMinimized() bool

IsWindowMinimized function as declared in src/raylib.h:905

func IsWindowReady

func IsWindowReady() bool

IsWindowReady function as declared in src/raylib.h:902

func IsWindowResized

func IsWindowResized() bool

IsWindowResized function as declared in src/raylib.h:908

func IsWindowState

func IsWindowState(flag uint32) bool

IsWindowState function as declared in src/raylib.h:909

func Lerp

func Lerp(start float32, end float32, amount float32) float32

Lerp function as declared in src/raymath.h:155

func LoadFileData

func LoadFileData(fileName string, bytesRead *uint32) *byte

LoadFileData function as declared in src/raylib.h:989

func LoadFileText

func LoadFileText(fileName string) *byte

LoadFileText function as declared in src/raylib.h:992

func LoadStorageValue

func LoadStorageValue(position uint32) int32

LoadStorageValue function as declared in src/raylib.h:1017

func LoadWaveSamples

func LoadWaveSamples(wave Wave) *float32

LoadWaveSamples function as declared in src/raylib.h:1491

func MatrixDeterminant

func MatrixDeterminant(mat Matrix) float32

MatrixDeterminant function as declared in src/raymath.h:629

func MaximizeWindow

func MaximizeWindow()

MaximizeWindow function as declared in src/raylib.h:913

func MeasureText

func MeasureText(text string, fontSize int32) int32

MeasureText function as declared in src/raylib.h:1284

func MemAlloc

func MemAlloc(size int32) unsafe.Pointer

MemAlloc function as declared in src/raylib.h:983

func MemFree

func MemFree(ptr unsafe.Pointer)

MemFree function as declared in src/raylib.h:984

func MeshBinormals

func MeshBinormals(mesh *Mesh)

MeshBinormals function as declared in src/raylib.h:1381

func MeshNormalsSmooth

func MeshNormalsSmooth(mesh *Mesh)

MeshNormalsSmooth function as declared in src/raylib.h:1382

func MeshTangents

func MeshTangents(mesh *Mesh)

MeshTangents function as declared in src/raylib.h:1380

func MinimizeWindow

func MinimizeWindow()

MinimizeWindow function as declared in src/raylib.h:914

func NewBytes

func NewBytes(str string, count int) []byte

func Normalize

func Normalize(value float32, start float32, end float32) float32

Normalize function as declared in src/raymath.h:161

func OpenURL

func OpenURL(url string)

OpenURL function as declared in src/raylib.h:1019

func PauseAudioStream

func PauseAudioStream(stream AudioStream)

PauseAudioStream function as declared in src/raylib.h:1514

func PauseMusicStream

func PauseMusicStream(music Music)

PauseMusicStream function as declared in src/raylib.h:1500

func PauseSound

func PauseSound(sound Sound)

PauseSound function as declared in src/raylib.h:1480

func PlayAudioStream

func PlayAudioStream(stream AudioStream)

PlayAudioStream function as declared in src/raylib.h:1513

func PlayMusicStream

func PlayMusicStream(music Music)

PlayMusicStream function as declared in src/raylib.h:1497

func PlaySound

func PlaySound(sound Sound)

PlaySound function as declared in src/raylib.h:1478

func PlaySoundMulti

func PlaySoundMulti(sound Sound)

PlaySoundMulti function as declared in src/raylib.h:1482

func QuaternionLength

func QuaternionLength(q Quaternion) float32

QuaternionLength function as declared in src/raymath.h:1163

func QuaternionToAxisAngle

func QuaternionToAxisAngle(q Quaternion, outAxis *Vector3, outAngle *float32)

QuaternionToAxisAngle function as declared in src/raymath.h:1410

func Remap

func Remap(value float32, inputStart float32, inputEnd float32, outputStart float32, outputEnd float32) float32

Remap function as declared in src/raymath.h:167

func RestoreWindow

func RestoreWindow()

RestoreWindow function as declared in src/raylib.h:915

func ResumeAudioStream

func ResumeAudioStream(stream AudioStream)

ResumeAudioStream function as declared in src/raylib.h:1515

func ResumeMusicStream

func ResumeMusicStream(music Music)

ResumeMusicStream function as declared in src/raylib.h:1501

func ResumeSound

func ResumeSound(sound Sound)

ResumeSound function as declared in src/raylib.h:1481

func SaveFileData

func SaveFileData(fileName string, data unsafe.Pointer, bytesToWrite uint32) bool

SaveFileData function as declared in src/raylib.h:991

func SaveFileText

func SaveFileText(fileName string, text *byte) bool

SaveFileText function as declared in src/raylib.h:994

func SaveStorageValue

func SaveStorageValue(position uint32, value int32) bool

SaveStorageValue function as declared in src/raylib.h:1016

func SetAudioStreamBufferSizeDefault

func SetAudioStreamBufferSizeDefault(size int32)

SetAudioStreamBufferSizeDefault function as declared in src/raylib.h:1520

func SetAudioStreamPitch

func SetAudioStreamPitch(stream AudioStream, pitch float32)

SetAudioStreamPitch function as declared in src/raylib.h:1519

func SetAudioStreamVolume

func SetAudioStreamVolume(stream AudioStream, volume float32)

SetAudioStreamVolume function as declared in src/raylib.h:1518

func SetCameraAltControl

func SetCameraAltControl(keyAlt int32)

SetCameraAltControl function as declared in src/raylib.h:1086

func SetCameraMode

func SetCameraMode(camera Camera, mode int32)

SetCameraMode function as declared in src/raylib.h:1082

func SetCameraMoveControls

func SetCameraMoveControls(keyFront int32, keyBack int32, keyRight int32, keyLeft int32, keyUp int32, keyDown int32)

SetCameraMoveControls function as declared in src/raylib.h:1088

func SetCameraPanControl

func SetCameraPanControl(keyPan int32)

SetCameraPanControl function as declared in src/raylib.h:1085

func SetCameraSmoothZoomControl

func SetCameraSmoothZoomControl(keySmoothZoom int32)

SetCameraSmoothZoomControl function as declared in src/raylib.h:1087

func SetClipboardText

func SetClipboardText(text string)

SetClipboardText function as declared in src/raylib.h:936

func SetConfigFlags

func SetConfigFlags(flags uint32)

SetConfigFlags function as declared in src/raylib.h:976

func SetExitKey

func SetExitKey(key int32)

SetExitKey function as declared in src/raylib.h:1030

func SetGesturesEnabled

func SetGesturesEnabled(gestureFlags uint32)

SetGesturesEnabled function as declared in src/raylib.h:1069

func SetMasterVolume

func SetMasterVolume(volume float32)

SetMasterVolume function as declared in src/raylib.h:1464

func SetMaterialTexture

func SetMaterialTexture(material *Material, mapType int32, texture Texture2D)

SetMaterialTexture function as declared in src/raylib.h:1357

func SetMatrixModelview

func SetMatrixModelview(view Matrix)

SetMatrixModelview function as declared in src/raylib.h:1429

func SetMatrixProjection

func SetMatrixProjection(proj Matrix)

SetMatrixProjection function as declared in src/raylib.h:1428

func SetModelMeshMaterial

func SetModelMeshMaterial(model *Model, meshId int32, materialId int32)

SetModelMeshMaterial function as declared in src/raylib.h:1358

func SetMouseCursor

func SetMouseCursor(cursor int32)

SetMouseCursor function as declared in src/raylib.h:1059

func SetMouseOffset

func SetMouseOffset(offsetX int32, offsetY int32)

SetMouseOffset function as declared in src/raylib.h:1055

func SetMousePosition

func SetMousePosition(x int32, y int32)

SetMousePosition function as declared in src/raylib.h:1054

func SetMouseScale

func SetMouseScale(scaleX float32, scaleY float32)

SetMouseScale function as declared in src/raylib.h:1056

func SetMusicPitch

func SetMusicPitch(music Music, pitch float32)

SetMusicPitch function as declared in src/raylib.h:1504

func SetMusicVolume

func SetMusicVolume(music Music, volume float32)

SetMusicVolume function as declared in src/raylib.h:1503

func SetPixelColor

func SetPixelColor(dstPtr unsafe.Pointer, color Color, format int32)

SetPixelColor function as declared in src/raylib.h:1254

func SetShaderValue

func SetShaderValue(shader Shader, uniformLoc int32, value unsafe.Pointer, uniformType int32)

SetShaderValue function as declared in src/raylib.h:1424

func SetShaderValueMatrix

func SetShaderValueMatrix(shader Shader, uniformLoc int32, mat Matrix)

SetShaderValueMatrix function as declared in src/raylib.h:1426

func SetShaderValueTexture

func SetShaderValueTexture(shader Shader, uniformLoc int32, texture Texture2D)

SetShaderValueTexture function as declared in src/raylib.h:1427

func SetShaderValueV

func SetShaderValueV(shader Shader, uniformLoc int32, value unsafe.Pointer, uniformType int32, count int32)

SetShaderValueV function as declared in src/raylib.h:1425

func SetShapesTexture

func SetShapesTexture(texture Texture2D, source Rectangle)

SetShapesTexture function as declared in src/raylib.h:1419

func SetSoundPitch

func SetSoundPitch(sound Sound, pitch float32)

SetSoundPitch function as declared in src/raylib.h:1487

func SetSoundVolume

func SetSoundVolume(sound Sound, volume float32)

SetSoundVolume function as declared in src/raylib.h:1486

func SetTargetFPS

func SetTargetFPS(fps int32)

SetTargetFPS function as declared in src/raylib.h:970

func SetTextureFilter

func SetTextureFilter(texture Texture2D, filterMode int32)

SetTextureFilter function as declared in src/raylib.h:1230

func SetTextureWrap

func SetTextureWrap(texture Texture2D, wrapMode int32)

SetTextureWrap function as declared in src/raylib.h:1231

func SetVrConfiguration

func SetVrConfiguration(info VrDeviceInfo, distortion Shader)

SetVrConfiguration function as declared in src/raylib.h:1450

func SetWindowIcon

func SetWindowIcon(image Image)

SetWindowIcon function as declared in src/raylib.h:916

func SetWindowMinSize

func SetWindowMinSize(width int32, height int32)

SetWindowMinSize function as declared in src/raylib.h:920

func SetWindowMonitor

func SetWindowMonitor(monitor int32)

SetWindowMonitor function as declared in src/raylib.h:919

func SetWindowPosition

func SetWindowPosition(x int32, y int32)

SetWindowPosition function as declared in src/raylib.h:918

func SetWindowSize

func SetWindowSize(width int32, height int32)

SetWindowSize function as declared in src/raylib.h:921

func SetWindowState

func SetWindowState(flags uint32)

SetWindowState function as declared in src/raylib.h:910

func SetWindowTitle

func SetWindowTitle(title string)

SetWindowTitle function as declared in src/raylib.h:917

func ShowCursor

func ShowCursor()

ShowCursor function as declared in src/raylib.h:940

func StopAudioStream

func StopAudioStream(stream AudioStream)

StopAudioStream function as declared in src/raylib.h:1517

func StopMusicStream

func StopMusicStream(music Music)

StopMusicStream function as declared in src/raylib.h:1499

func StopSound

func StopSound(sound Sound)

StopSound function as declared in src/raylib.h:1479

func StopSoundMulti

func StopSoundMulti()

StopSoundMulti function as declared in src/raylib.h:1483

func TakeScreenshot

func TakeScreenshot(fileName string)

TakeScreenshot function as declared in src/raylib.h:985

func TextAppend

func TextAppend(text *byte, append string, position *int32)

TextAppend function as declared in src/raylib.h:1299

func TextCopy

func TextCopy(dst *byte, src string) int32

TextCopy function as declared in src/raylib.h:1290

func TextFindIndex

func TextFindIndex(text string, find string) int32

TextFindIndex function as declared in src/raylib.h:1300

func TextInsert

func TextInsert(text string, insert string, position int32) *byte

TextInsert function as declared in src/raylib.h:1296

func TextIsEqual

func TextIsEqual(text1 string, text2 string) bool

TextIsEqual function as declared in src/raylib.h:1291

func TextJoin

func TextJoin(textList *MultiText, count int32, delimiter string) string

TextJoin function as declared in src/raylib.h:1244

func TextLength

func TextLength(text string) uint32

TextLength function as declared in src/raylib.h:1292

func TextReplace

func TextReplace(text *byte, replace string, by string) *byte

TextReplace function as declared in src/raylib.h:1295

func TextSplit

func TextSplit(text string, delimiter byte, count *int32) *string

TextSplit function as declared in src/raylib.h:1298

func TextSubtext

func TextSubtext(text string, position int32, length int32) string

TextSubtext function as declared in src/raylib.h:1294

func TextToInteger

func TextToInteger(text string) int32

TextToInteger function as declared in src/raylib.h:1304

func TextToLower

func TextToLower(text string) string

TextToLower function as declared in src/raylib.h:1302

func TextToPascal

func TextToPascal(text string) string

TextToPascal function as declared in src/raylib.h:1303

func TextToUpper

func TextToUpper(text string) string

TextToUpper function as declared in src/raylib.h:1301

func TextToUtf8

func TextToUtf8(codepoints *int32, length int32) *byte

TextToUtf8 function as declared in src/raylib.h:1305

func ToBool

func ToBool(i interface{}) bool

func ToInt32

func ToInt32(i interface{}) int32

func ToString

func ToString(i interface{}, index int32) (raw string)

func ToggleFullscreen

func ToggleFullscreen()

ToggleFullscreen function as declared in src/raylib.h:912

func ToggleVrMode

func ToggleVrMode()

ToggleVrMode function as declared in src/raylib.h:1452

func UnloadColors

func UnloadColors(color *Color)

func UnloadFileData

func UnloadFileData(data *byte)

UnloadFileData function as declared in src/raylib.h:990

func UnloadFileText

func UnloadFileText(text *byte)

UnloadFileText function as declared in src/raylib.h:993

func UnloadFont

func UnloadFont(font Font)

UnloadFont function as declared in src/raylib.h:1272

func UnloadFontData

func UnloadFontData(chars *CharInfo, charsCount int32)

UnloadFontData function as declared in src/raylib.h:1271

func UnloadImage

func UnloadImage(image Image)

UnloadImage function as declared in src/raylib.h:1151

func UnloadImageColors

func UnloadImageColors(colors *Color)

UnloadImageColors function as declared in src/raylib.h:1194

func UnloadImagePalette

func UnloadImagePalette(colors *Color)

UnloadImagePalette function as declared in src/raylib.h:1195

func UnloadMaterial

func UnloadMaterial(material Material)

UnloadMaterial function as declared in src/raylib.h:1356

func UnloadMesh

func UnloadMesh(mesh Mesh)

UnloadMesh function as declared in src/raylib.h:1350

func UnloadModel

func UnloadModel(model Model)

UnloadModel function as declared in src/raylib.h:1345

func UnloadModelAnimation

func UnloadModelAnimation(anim ModelAnimation)

UnloadModelAnimation function as declared in src/raylib.h:1363

func UnloadModelKeepMeshes

func UnloadModelKeepMeshes(model Model)

UnloadModelKeepMeshes function as declared in src/raylib.h:1346

func UnloadMusicStream

func UnloadMusicStream(music Music)

UnloadMusicStream function as declared in src/raylib.h:1496

func UnloadRenderTexture

func UnloadRenderTexture(target RenderTexture2D)

UnloadRenderTexture function as declared in src/raylib.h:1222

func UnloadShader

func UnloadShader(shader Shader)

UnloadShader function as declared in src/raylib.h:1413

func UnloadSound

func UnloadSound(sound Sound)

UnloadSound function as declared in src/raylib.h:1473

func UnloadTexture

func UnloadTexture(texture Texture2D)

UnloadTexture function as declared in src/raylib.h:1221

func UnloadWave

func UnloadWave(wave Wave)

UnloadWave function as declared in src/raylib.h:1472

func UnloadWaveSamples

func UnloadWaveSamples(samples *float32)

UnloadWaveSamples function as declared in src/raylib.h:1492

func UpdateAudioStream

func UpdateAudioStream(stream AudioStream, data unsafe.Pointer, samplesCount int32)

UpdateAudioStream function as declared in src/raylib.h:1510

func UpdateCamera

func UpdateCamera(camera *Camera)

UpdateCamera function as declared in src/raylib.h:1083

func UpdateModelAnimation

func UpdateModelAnimation(model Model, anim ModelAnimation, frame int32)

UpdateModelAnimation function as declared in src/raylib.h:1362

func UpdateMusicStream

func UpdateMusicStream(music Music)

UpdateMusicStream function as declared in src/raylib.h:1498

func UpdateSound

func UpdateSound(sound Sound, data unsafe.Pointer, samplesCount int32)

UpdateSound function as declared in src/raylib.h:1471

func UpdateTexture

func UpdateTexture(texture Texture2D, pixels unsafe.Pointer)

UpdateTexture function as declared in src/raylib.h:1223

func UpdateTextureRec

func UpdateTextureRec(texture Texture2D, rec Rectangle, pixels unsafe.Pointer)

UpdateTextureRec function as declared in src/raylib.h:1224

func UpdateVrTracking

func UpdateVrTracking(camera *Camera)

UpdateVrTracking function as declared in src/raylib.h:1449

func Vector2Angle

func Vector2Angle(v1 Vector2, v2 Vector2) float32

Vector2Angle function as declared in src/raymath.h:247

func Vector2Distance

func Vector2Distance(v1 Vector2, v2 Vector2) float32

Vector2Distance function as declared in src/raymath.h:240

func Vector2DotProduct

func Vector2DotProduct(v1 Vector2, v2 Vector2) float32

Vector2DotProduct function as declared in src/raymath.h:233

func Vector2Length

func Vector2Length(v Vector2) float32

Vector2Length function as declared in src/raymath.h:219

func Vector2LengthSqr

func Vector2LengthSqr(v Vector2) float32

Vector2LengthSqr function as declared in src/raymath.h:226

func Vector3Distance

func Vector3Distance(v1 Vector3, v2 Vector3) float32

Vector3Distance function as declared in src/raymath.h:454

func Vector3DotProduct

func Vector3DotProduct(v1 Vector3, v2 Vector3) float32

Vector3DotProduct function as declared in src/raymath.h:447

func Vector3Length

func Vector3Length(v Vector3) float32

Vector3Length function as declared in src/raymath.h:433

func Vector3LengthSqr

func Vector3LengthSqr(v Vector3) float32

Vector3LengthSqr function as declared in src/raymath.h:440

func Vector3OrthoNormalize

func Vector3OrthoNormalize(v1 *Vector3, v2 *Vector3)

Vector3OrthoNormalize function as declared in src/raymath.h:497

func WaveCrop

func WaveCrop(wave *Wave, initSample int32, finalSample int32)

WaveCrop function as declared in src/raylib.h:1490

func WaveFormat

func WaveFormat(wave *Wave, sampleRate int32, sampleSize int32, channels int32)

WaveFormat function as declared in src/raylib.h:1488

func WindowShouldClose

func WindowShouldClose() bool

WindowShouldClose function as declared in src/raylib.h:900

Types

type AndroidButton

type AndroidButton int32

AndroidButton as declared in src/raylib.h:625

const (
	KEY_BACK        AndroidButton = 4
	KEY_MENU        AndroidButton = 82
	KEY_VOLUME_UP   AndroidButton = 24
	KEY_VOLUME_DOWN AndroidButton = 25
)

AndroidButton enumeration from src/raylib.h:625

type AudioStream

type AudioStream struct {
	SampleRate uint32
	SampleSize uint32
	Channels   uint32
	Buffer     *C.rAudioBuffer
}

func AllocAudioStream

func AllocAudioStream(cSampleRate uint32, cSampleSize uint32, cChannels uint32) (*AudioStream, *cgoAllocMap)

AllocAudioStream new Go object and Mapping to C object.

func InitAudioStream

func InitAudioStream(sampleRate uint32, sampleSize uint32, channels uint32) AudioStream

InitAudioStream function as declared in src/raylib.h:1509

func NewAudioStream

func NewAudioStream(cSampleRate uint32, cSampleSize uint32, cChannels uint32) AudioStream

NewAudioStream new Go object and Mapping to C object.

func (*AudioStream) GC

func (x *AudioStream) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*AudioStream) Index

func (x *AudioStream) Index(index int32) *AudioStream

Index reads Go data structure out from plain C format.

type BlendMode

type BlendMode int32

BlendMode as declared in src/raylib.h:842

const (
	BLEND_ALPHA           BlendMode = iota
	BLEND_ADDITIVE        BlendMode = 1
	BLEND_MULTIPLIED      BlendMode = 2
	BLEND_ADD_COLORS      BlendMode = 3
	BLEND_SUBTRACT_COLORS BlendMode = 4
	BLEND_CUSTOM          BlendMode = 5
)

BlendMode enumeration from src/raylib.h:842

type BoneInfo

type BoneInfo struct {
	Name   [32]byte
	Parent int32
}

func AllocBoneInfo

func AllocBoneInfo(cName [32]byte, cParent int32) (*BoneInfo, *cgoAllocMap)

AllocBoneInfo new Go object and Mapping to C object.

func NewBoneInfo

func NewBoneInfo(cName [32]byte, cParent int32) BoneInfo

NewBoneInfo new Go object and Mapping to C object.

func (*BoneInfo) GC

func (x *BoneInfo) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*BoneInfo) Index

func (x *BoneInfo) Index(index int32) *BoneInfo

Index reads Go data structure out from plain C format.

type BoundingBox

type BoundingBox struct {
	Min Vector3
	Max Vector3
}

func AllocBoundingBox

func AllocBoundingBox(cMin Vector3, cMax Vector3) (*BoundingBox, *cgoAllocMap)

AllocBoundingBox new Go object and Mapping to C object.

func MeshBoundingBox

func MeshBoundingBox(mesh Mesh) BoundingBox

MeshBoundingBox function as declared in src/raylib.h:1379

func NewBoundingBox

func NewBoundingBox(cMin Vector3, cMax Vector3) BoundingBox

NewBoundingBox new Go object and Mapping to C object.

func (*BoundingBox) GC

func (x *BoundingBox) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*BoundingBox) Index

func (x *BoundingBox) Index(index int32) *BoundingBox

Index reads Go data structure out from plain C format.

type Camera

type Camera struct {
	Position Vector3
	Target   Vector3
	Up       Vector3
	Fovy     float32
	Type     int32
}

func AllocCamera

func AllocCamera(cPosition Vector3, cTarget Vector3, cUp Vector3, cFovy float32, cType int32) (*Camera, *cgoAllocMap)

AllocCamera new Go object and Mapping to C object.

func NewCamera

func NewCamera(cPosition Vector3, cTarget Vector3, cUp Vector3, cFovy float32, cType int32) Camera

NewCamera new Go object and Mapping to C object.

func (*Camera) GC

func (x *Camera) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Camera) Index

func (x *Camera) Index(index int32) *Camera

Index reads Go data structure out from plain C format.

type Camera2D

type Camera2D struct {
	Offset   Vector2
	Target   Vector2
	Rotation float32
	Zoom     float32
}

func AllocCamera2D

func AllocCamera2D(cOffset Vector2, cTarget Vector2, cRotation float32, cZoom float32) (*Camera2D, *cgoAllocMap)

AllocCamera2D new Go object and Mapping to C object.

func NewCamera2D

func NewCamera2D(cOffset Vector2, cTarget Vector2, cRotation float32, cZoom float32) Camera2D

NewCamera2D new Go object and Mapping to C object.

func (*Camera2D) GC

func (x *Camera2D) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Camera2D) Index

func (x *Camera2D) Index(index int32) *Camera2D

Index reads Go data structure out from plain C format.

type Camera3D

type Camera3D struct {
	Position Vector3
	Target   Vector3
	Up       Vector3
	Fovy     float32
	Type     int32
}

func AllocCamera3D

func AllocCamera3D(cPosition Vector3, cTarget Vector3, cUp Vector3, cFovy float32, cType int32) (*Camera3D, *cgoAllocMap)

AllocCamera3D new Go object and Mapping to C object.

func NewCamera3D

func NewCamera3D(cPosition Vector3, cTarget Vector3, cUp Vector3, cFovy float32, cType int32) Camera3D

NewCamera3D new Go object and Mapping to C object.

func (*Camera3D) GC

func (x *Camera3D) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Camera3D) Index

func (x *Camera3D) Index(index int32) *Camera3D

Index reads Go data structure out from plain C format.

type CameraMode

type CameraMode int32

CameraMode as declared in src/raylib.h:867

const (
	CAMERA_CUSTOM       CameraMode = iota
	CAMERA_FREE         CameraMode = 1
	CAMERA_ORBITAL      CameraMode = 2
	CAMERA_FIRST_PERSON CameraMode = 3
	CAMERA_THIRD_PERSON CameraMode = 4
)

CameraMode enumeration from src/raylib.h:867

type CameraType

type CameraType int32

CameraType as declared in src/raylib.h:873

const (
	CAMERA_PERSPECTIVE  CameraType = iota
	CAMERA_ORTHOGRAPHIC CameraType = 1
)

CameraType enumeration from src/raylib.h:873

type CharInfo

type CharInfo struct {
	Value    int32
	OffsetX  int32
	OffsetY  int32
	AdvanceX int32
	Image    Image
}

func AllocCharInfo

func AllocCharInfo(cValue int32, cOffsetX int32, cOffsetY int32, cAdvanceX int32, cImage Image) (*CharInfo, *cgoAllocMap)

AllocCharInfo new Go object and Mapping to C object.

func LoadFontData

func LoadFontData(fileData *byte, dataSize int32, fontSize int32, fontChars *int32, charsCount int32, kind int32) *CharInfo

LoadFontData function as declared in src/raylib.h:1268

func NewCharInfo

func NewCharInfo(cValue int32, cOffsetX int32, cOffsetY int32, cAdvanceX int32, cImage Image) CharInfo

NewCharInfo new Go object and Mapping to C object.

func (*CharInfo) GC

func (x *CharInfo) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*CharInfo) Index

func (x *CharInfo) Index(index int32) *CharInfo

Index reads Go data structure out from plain C format.

type Color

type Color struct {
	R byte
	G byte
	B byte
	A byte
}

func AllocColor

func AllocColor(cR byte, cG byte, cB byte, cA byte) (*Color, *cgoAllocMap)

AllocColor new Go object and Mapping to C object.

func ColorAlpha

func ColorAlpha(color Color, alpha float32) Color

ColorAlpha function as declared in src/raylib.h:1250

func ColorAlphaBlend

func ColorAlphaBlend(dst Color, src Color, tint Color) Color

ColorAlphaBlend function as declared in src/raylib.h:1251

func ColorFromHSV

func ColorFromHSV(hue float32, saturation float32, value float32) Color

ColorFromHSV function as declared in src/raylib.h:1249

func ColorFromNormalized

func ColorFromNormalized(normalized Vector4) Color

ColorFromNormalized function as declared in src/raylib.h:1247

func CreateColor

func CreateColor(r, g, b, a uint8) Color

NewColor - Returns new Color

func Fade

func Fade(color Color, alpha float32) Color

Fade function as declared in src/raylib.h:1244

func GetColor

func GetColor(hexValue int32) Color

GetColor function as declared in src/raylib.h:1252

func GetPixelColor

func GetPixelColor(srcPtr unsafe.Pointer, format int32) Color

GetPixelColor function as declared in src/raylib.h:1253

func GuiColorPanel

func GuiColorPanel(bounds Rectangle, color Color) Color

GuiColorPanel function as declared in src/raygui.h:478

func GuiColorPanelEx

func GuiColorPanelEx(bounds Rectangle, color Color, hue float32) Color

GuiColorPanelEx function as declared in src/raygui.h:495

func GuiColorPicker

func GuiColorPicker(bounds Rectangle, color Color) Color

GuiColorPicker function as declared in src/raygui.h:477

func LoadImageColors

func LoadImageColors(image Image) *Color

LoadImageColors function as declared in src/raylib.h:1192

func LoadImagePalette

func LoadImagePalette(image Image, maxPaletteSize int32, colorsCount *int32) *Color

LoadImagePalette function as declared in src/raylib.h:1193

func NewColor

func NewColor(cR byte, cG byte, cB byte, cA byte) Color

NewColor new Go object and Mapping to C object.

func (*Color) GC

func (x *Color) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Color) Index

func (x *Color) Index(index int32) *Color

Index reads Go data structure out from plain C format.

type ConfigFlag

type ConfigFlag int32

ConfigFlag as declared in src/raylib.h:489

const (
	FLAG_VSYNC_HINT         ConfigFlag = 0x00000040
	FLAG_FULLSCREEN_MODE    ConfigFlag = 0x00000002
	FLAG_WINDOW_RESIZABLE   ConfigFlag = 0x00000004
	FLAG_WINDOW_UNDECORATED ConfigFlag = 0x00000008
	FLAG_WINDOW_HIDDEN      ConfigFlag = 0x00000080
	FLAG_WINDOW_MINIMIZED   ConfigFlag = 0x00000200
	FLAG_WINDOW_MAXIMIZED   ConfigFlag = 0x00000400
	FLAG_WINDOW_UNFOCUSED   ConfigFlag = 0x00000800
	FLAG_WINDOW_TOPMOST     ConfigFlag = 0x00001000
	FLAG_WINDOW_ALWAYS_RUN  ConfigFlag = 0x00000100
	FLAG_WINDOW_TRANSPARENT ConfigFlag = 0x00000010
	FLAG_WINDOW_HIGHDPI     ConfigFlag = 0x00002000
	FLAG_MSAA_4X_HINT       ConfigFlag = 0x00000020
	FLAG_INTERLACED_HINT    ConfigFlag = 0x00010000
)

ConfigFlag enumeration from src/raylib.h:489

type CubemapLayoutType

type CubemapLayoutType int32

CubemapLayoutType as declared in src/raylib.h:825

const (
	CUBEMAP_AUTO_DETECT         CubemapLayoutType = iota
	CUBEMAP_LINE_VERTICAL       CubemapLayoutType = 1
	CUBEMAP_LINE_HORIZONTAL     CubemapLayoutType = 2
	CUBEMAP_CROSS_THREE_BY_FOUR CubemapLayoutType = 3
	CUBEMAP_CROSS_FOUR_BY_THREE CubemapLayoutType = 4
	CUBEMAP_PANORAMA            CubemapLayoutType = 5
)

CubemapLayoutType enumeration from src/raylib.h:825

type Font

type Font struct {
	BaseSize     int32
	CharsCount   int32
	CharsPadding int32
	Texture      Texture
	Recs         *Rectangle
	Chars        *CharInfo
}

func AllocFont

func AllocFont(cBaseSize int32, cCharsCount int32, cCharsPadding int32, cTexture Texture2D, cRecs []Rectangle, cChars []CharInfo) (*Font, *cgoAllocMap)

AllocFont new Go object and Mapping to C object.

func GetFontDefault

func GetFontDefault() Font

GetFontDefault function as declared in src/raylib.h:1262

func GuiGetFont

func GuiGetFont() Font

GuiGetFont function as declared in src/raygui.h:430

func LoadFont

func LoadFont(fileName string) Font

LoadFont function as declared in src/raylib.h:1263

func LoadFontEx

func LoadFontEx(fileName string, fontSize int32, fontChars *int32, charsCount int32) Font

LoadFontEx function as declared in src/raylib.h:1264

func LoadFontFromImage

func LoadFontFromImage(image Image, key Color, firstChar int32) Font

LoadFontFromImage function as declared in src/raylib.h:1265

func LoadFontFromMemory

func LoadFontFromMemory(fileType string, fileData []byte, dataSize int32, fontSize int32, fontChars *int32, charsCount int32) Font

LoadFontFromMemory function as declared in src/raylib.h:1266

func NewFont

func NewFont(cBaseSize int32, cCharsCount int32, cCharsPadding int32, cTexture Texture2D, cRecs []Rectangle, cChars []CharInfo) Font

NewFont new Go object and Mapping to C object.

func (*Font) Charser

func (x *Font) Charser(index int32) *CharInfo

Chars returns a reference to C object within a struct

func (*Font) GC

func (x *Font) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Font) Index

func (x *Font) Index(index int32) *Font

Index reads Go data structure out from plain C format.

func (*Font) Recser

func (x *Font) Recser(index int32) *Rectangle

Recs returns a reference to C object within a struct

type FontType

type FontType int32

FontType as declared in src/raylib.h:832

const (
	FONT_DEFAULT FontType = iota
	FONT_BITMAP  FontType = 1
	FONT_SDF     FontType = 2
)

FontType enumeration from src/raylib.h:832

type GamepadAxis

type GamepadAxis int32

GamepadAxis as declared in src/raylib.h:706

const (
	GAMEPAD_AXIS_LEFT_X        GamepadAxis = iota
	GAMEPAD_AXIS_LEFT_Y        GamepadAxis = 1
	GAMEPAD_AXIS_RIGHT_X       GamepadAxis = 2
	GAMEPAD_AXIS_RIGHT_Y       GamepadAxis = 3
	GAMEPAD_AXIS_LEFT_TRIGGER  GamepadAxis = 4
	GAMEPAD_AXIS_RIGHT_TRIGGER GamepadAxis = 5
)

GamepadAxis enumeration from src/raylib.h:706

type GamepadButton

type GamepadButton int32

GamepadButton as declared in src/raylib.h:691

const (
	GAMEPAD_BUTTON_UNKNOWN          GamepadButton = iota
	GAMEPAD_BUTTON_LEFT_FACE_UP     GamepadButton = 1
	GAMEPAD_BUTTON_LEFT_FACE_RIGHT  GamepadButton = 2
	GAMEPAD_BUTTON_LEFT_FACE_DOWN   GamepadButton = 3
	GAMEPAD_BUTTON_LEFT_FACE_LEFT   GamepadButton = 4
	GAMEPAD_BUTTON_RIGHT_FACE_UP    GamepadButton = 5
	GAMEPAD_BUTTON_RIGHT_FACE_RIGHT GamepadButton = 6
	GAMEPAD_BUTTON_RIGHT_FACE_DOWN  GamepadButton = 7
	GAMEPAD_BUTTON_RIGHT_FACE_LEFT  GamepadButton = 8
	GAMEPAD_BUTTON_LEFT_TRIGGER_1   GamepadButton = 9
	GAMEPAD_BUTTON_LEFT_TRIGGER_2   GamepadButton = 10
	GAMEPAD_BUTTON_RIGHT_TRIGGER_1  GamepadButton = 11
	GAMEPAD_BUTTON_RIGHT_TRIGGER_2  GamepadButton = 12
	GAMEPAD_BUTTON_MIDDLE_LEFT      GamepadButton = 13
	GAMEPAD_BUTTON_MIDDLE           GamepadButton = 14
	GAMEPAD_BUTTON_MIDDLE_RIGHT     GamepadButton = 15
	GAMEPAD_BUTTON_LEFT_THUMB       GamepadButton = 16
	GAMEPAD_BUTTON_RIGHT_THUMB      GamepadButton = 17
)

GamepadButton enumeration from src/raylib.h:691

type GamepadNumber

type GamepadNumber int32

GamepadNumber as declared in src/raylib.h:655

const (
	GAMEPAD_PLAYER1 GamepadNumber = iota
	GAMEPAD_PLAYER2 GamepadNumber = 1
	GAMEPAD_PLAYER3 GamepadNumber = 2
	GAMEPAD_PLAYER4 GamepadNumber = 3
)

GamepadNumber enumeration from src/raylib.h:655

type GestureType

type GestureType int32

GestureType as declared in src/raylib.h:858

const (
	GESTURE_NONE        GestureType = iota
	GESTURE_TAP         GestureType = 1
	GESTURE_DOUBLETAP   GestureType = 2
	GESTURE_HOLD        GestureType = 4
	GESTURE_DRAG        GestureType = 8
	GESTURE_SWIPE_RIGHT GestureType = 16
	GESTURE_SWIPE_LEFT  GestureType = 32
	GESTURE_SWIPE_UP    GestureType = 64
	GESTURE_SWIPE_DOWN  GestureType = 128
	GESTURE_PINCH_IN    GestureType = 256
	GESTURE_PINCH_OUT   GestureType = 512
)

GestureType enumeration from src/raylib.h:858

type GuiCheckBoxProperty

type GuiCheckBoxProperty int32

GuiCheckBoxProperty as declared in src/raygui.h:349

const (
	CHECK_PADDING GuiCheckBoxProperty = 16
)

GuiCheckBoxProperty enumeration from src/raygui.h:349

type GuiColorPickerProperty

type GuiColorPickerProperty int32

GuiColorPickerProperty as declared in src/raygui.h:408

const (
	COLOR_SELECTOR_SIZE      GuiColorPickerProperty = 16
	HUEBAR_WIDTH             GuiColorPickerProperty = 17
	HUEBAR_PADDING           GuiColorPickerProperty = 18
	HUEBAR_SELECTOR_HEIGHT   GuiColorPickerProperty = 19
	HUEBAR_SELECTOR_OVERFLOW GuiColorPickerProperty = 20
)

GuiColorPickerProperty enumeration from src/raygui.h:408

type GuiComboBoxProperty

type GuiComboBoxProperty int32

GuiComboBoxProperty as declared in src/raygui.h:355

const (
	COMBO_BUTTON_WIDTH   GuiComboBoxProperty = 16
	COMBO_BUTTON_PADDING GuiComboBoxProperty = 17
)

GuiComboBoxProperty enumeration from src/raygui.h:355

type GuiControl

type GuiControl int32

GuiControl as declared in src/raygui.h:291

const (
	DEFAULT     GuiControl = iota
	LABEL       GuiControl = 1
	BUTTON      GuiControl = 2
	TOGGLE      GuiControl = 3
	SLIDER      GuiControl = 4
	PROGRESSBAR GuiControl = 5
	CHECKBOX    GuiControl = 6
	COMBOBOX    GuiControl = 7
	DROPDOWNBOX GuiControl = 8
	TEXTBOX     GuiControl = 9
	VALUEBOX    GuiControl = 10
	SPINNER     GuiControl = 11
	LISTVIEW    GuiControl = 12
	COLORPICKER GuiControl = 13
	SCROLLBAR   GuiControl = 14
	STATUSBAR   GuiControl = 15
)

GuiControl enumeration from src/raygui.h:291

type GuiControlProperty

type GuiControlProperty int32

GuiControlProperty as declared in src/raygui.h:311

const (
	BORDER_COLOR_NORMAL   GuiControlProperty = iota
	BASE_COLOR_NORMAL     GuiControlProperty = 1
	TEXT_COLOR_NORMAL     GuiControlProperty = 2
	BORDER_COLOR_FOCUSED  GuiControlProperty = 3
	BASE_COLOR_FOCUSED    GuiControlProperty = 4
	TEXT_COLOR_FOCUSED    GuiControlProperty = 5
	BORDER_COLOR_PRESSED  GuiControlProperty = 6
	BASE_COLOR_PRESSED    GuiControlProperty = 7
	TEXT_COLOR_PRESSED    GuiControlProperty = 8
	BORDER_COLOR_DISABLED GuiControlProperty = 9
	BASE_COLOR_DISABLED   GuiControlProperty = 10
	TEXT_COLOR_DISABLED   GuiControlProperty = 11
	BORDER_WIDTH          GuiControlProperty = 12
	TEXT_PADDING          GuiControlProperty = 13
	TEXT_ALIGNMENT        GuiControlProperty = 14
	RESERVED              GuiControlProperty = 15
)

GuiControlProperty enumeration from src/raygui.h:311

type GuiControlState

type GuiControlState int32

GuiControlState as declared in src/raygui.h:264

const (
	GUI_STATE_NORMAL   GuiControlState = iota
	GUI_STATE_FOCUSED  GuiControlState = 1
	GUI_STATE_PRESSED  GuiControlState = 2
	GUI_STATE_DISABLED GuiControlState = 3
)

GuiControlState enumeration from src/raygui.h:264

type GuiDefaultProperty

type GuiDefaultProperty int32

GuiDefaultProperty as declared in src/raygui.h:322

const (
	TEXT_SIZE        GuiDefaultProperty = 16
	TEXT_SPACING     GuiDefaultProperty = 17
	LINE_COLOR       GuiDefaultProperty = 18
	BACKGROUND_COLOR GuiDefaultProperty = 19
)

GuiDefaultProperty enumeration from src/raygui.h:322

type GuiDropdownBoxProperty

type GuiDropdownBoxProperty int32

GuiDropdownBoxProperty as declared in src/raygui.h:361

const (
	ARROW_PADDING          GuiDropdownBoxProperty = 16
	DROPDOWN_ITEMS_PADDING GuiDropdownBoxProperty = 17
)

GuiDropdownBoxProperty enumeration from src/raygui.h:361

type GuiIconName

type GuiIconName int32

GuiIconName as declared in src/ricons.h:289

const (
	RICON_NONE                    GuiIconName = iota
	RICON_FOLDER_FILE_OPEN        GuiIconName = 1
	RICON_FILE_SAVE_CLASSIC       GuiIconName = 2
	RICON_FOLDER_OPEN             GuiIconName = 3
	RICON_FOLDER_SAVE             GuiIconName = 4
	RICON_FILE_OPEN               GuiIconName = 5
	RICON_FILE_SAVE               GuiIconName = 6
	RICON_FILE_EXPORT             GuiIconName = 7
	RICON_FILE_NEW                GuiIconName = 8
	RICON_FILE_DELETE             GuiIconName = 9
	RICON_FILETYPE_TEXT           GuiIconName = 10
	RICON_FILETYPE_AUDIO          GuiIconName = 11
	RICON_FILETYPE_IMAGE          GuiIconName = 12
	RICON_FILETYPE_PLAY           GuiIconName = 13
	RICON_FILETYPE_VIDEO          GuiIconName = 14
	RICON_FILETYPE_INFO           GuiIconName = 15
	RICON_FILE_COPY               GuiIconName = 16
	RICON_FILE_CUT                GuiIconName = 17
	RICON_FILE_PASTE              GuiIconName = 18
	RICON_CURSOR_HAND             GuiIconName = 19
	RICON_CURSOR_POINTER          GuiIconName = 20
	RICON_CURSOR_CLASSIC          GuiIconName = 21
	RICON_PENCIL                  GuiIconName = 22
	RICON_PENCIL_BIG              GuiIconName = 23
	RICON_BRUSH_CLASSIC           GuiIconName = 24
	RICON_BRUSH_PAINTER           GuiIconName = 25
	RICON_WATER_DROP              GuiIconName = 26
	RICON_COLOR_PICKER            GuiIconName = 27
	RICON_RUBBER                  GuiIconName = 28
	RICON_COLOR_BUCKET            GuiIconName = 29
	RICON_TEXT_T                  GuiIconName = 30
	RICON_TEXT_A                  GuiIconName = 31
	RICON_SCALE                   GuiIconName = 32
	RICON_RESIZE                  GuiIconName = 33
	RICON_FILTER_POINT            GuiIconName = 34
	RICON_FILTER_BILINEAR         GuiIconName = 35
	RICON_CROP                    GuiIconName = 36
	RICON_CROP_ALPHA              GuiIconName = 37
	RICON_SQUARE_TOGGLE           GuiIconName = 38
	RICON_SYMMETRY                GuiIconName = 39
	RICON_SYMMETRY_HORIZONTAL     GuiIconName = 40
	RICON_SYMMETRY_VERTICAL       GuiIconName = 41
	RICON_LENS                    GuiIconName = 42
	RICON_LENS_BIG                GuiIconName = 43
	RICON_EYE_ON                  GuiIconName = 44
	RICON_EYE_OFF                 GuiIconName = 45
	RICON_FILTER_TOP              GuiIconName = 46
	RICON_FILTER                  GuiIconName = 47
	RICON_TARGET_POINT            GuiIconName = 48
	RICON_TARGET_SMALL            GuiIconName = 49
	RICON_TARGET_BIG              GuiIconName = 50
	RICON_TARGET_MOVE             GuiIconName = 51
	RICON_CURSOR_MOVE             GuiIconName = 52
	RICON_CURSOR_SCALE            GuiIconName = 53
	RICON_CURSOR_SCALE_RIGHT      GuiIconName = 54
	RICON_CURSOR_SCALE_LEFT       GuiIconName = 55
	RICON_UNDO                    GuiIconName = 56
	RICON_REDO                    GuiIconName = 57
	RICON_REREDO                  GuiIconName = 58
	RICON_MUTATE                  GuiIconName = 59
	RICON_ROTATE                  GuiIconName = 60
	RICON_REPEAT                  GuiIconName = 61
	RICON_SHUFFLE                 GuiIconName = 62
	RICON_EMPTYBOX                GuiIconName = 63
	RICON_TARGET                  GuiIconName = 64
	RICON_TARGET_SMALL_FILL       GuiIconName = 65
	RICON_TARGET_BIG_FILL         GuiIconName = 66
	RICON_TARGET_MOVE_FILL        GuiIconName = 67
	RICON_CURSOR_MOVE_FILL        GuiIconName = 68
	RICON_CURSOR_SCALE_FILL       GuiIconName = 69
	RICON_CURSOR_SCALE_RIGHT_FILL GuiIconName = 70
	RICON_CURSOR_SCALE_LEFT_FILL  GuiIconName = 71
	RICON_UNDO_FILL               GuiIconName = 72
	RICON_REDO_FILL               GuiIconName = 73
	RICON_REREDO_FILL             GuiIconName = 74
	RICON_MUTATE_FILL             GuiIconName = 75
	RICON_ROTATE_FILL             GuiIconName = 76
	RICON_REPEAT_FILL             GuiIconName = 77
	RICON_SHUFFLE_FILL            GuiIconName = 78
	RICON_EMPTYBOX_SMALL          GuiIconName = 79
	RICON_BOX                     GuiIconName = 80
	RICON_BOX_TOP                 GuiIconName = 81
	RICON_BOX_TOP_RIGHT           GuiIconName = 82
	RICON_BOX_RIGHT               GuiIconName = 83
	RICON_BOX_BOTTOM_RIGHT        GuiIconName = 84
	RICON_BOX_BOTTOM              GuiIconName = 85
	RICON_BOX_BOTTOM_LEFT         GuiIconName = 86
	RICON_BOX_LEFT                GuiIconName = 87
	RICON_BOX_TOP_LEFT            GuiIconName = 88
	RICON_BOX_CENTER              GuiIconName = 89
	RICON_BOX_CIRCLE_MASK         GuiIconName = 90
	RICON_POT                     GuiIconName = 91
	RICON_ALPHA_MULTIPLY          GuiIconName = 92
	RICON_ALPHA_CLEAR             GuiIconName = 93
	RICON_DITHERING               GuiIconName = 94
	RICON_MIPMAPS                 GuiIconName = 95
	RICON_BOX_GRID                GuiIconName = 96
	RICON_GRID                    GuiIconName = 97
	RICON_BOX_CORNERS_SMALL       GuiIconName = 98
	RICON_BOX_CORNERS_BIG         GuiIconName = 99
	RICON_FOUR_BOXES              GuiIconName = 100
	RICON_GRID_FILL               GuiIconName = 101
	RICON_BOX_MULTISIZE           GuiIconName = 102
	RICON_ZOOM_SMALL              GuiIconName = 103
	RICON_ZOOM_MEDIUM             GuiIconName = 104
	RICON_ZOOM_BIG                GuiIconName = 105
	RICON_ZOOM_ALL                GuiIconName = 106
	RICON_ZOOM_CENTER             GuiIconName = 107
	RICON_BOX_DOTS_SMALL          GuiIconName = 108
	RICON_BOX_DOTS_BIG            GuiIconName = 109
	RICON_BOX_CONCENTRIC          GuiIconName = 110
	RICON_BOX_GRID_BIG            GuiIconName = 111
	RICON_OK_TICK                 GuiIconName = 112
	RICON_CROSS                   GuiIconName = 113
	RICON_ARROW_LEFT              GuiIconName = 114
	RICON_ARROW_RIGHT             GuiIconName = 115
	RICON_ARROW_BOTTOM            GuiIconName = 116
	RICON_ARROW_TOP               GuiIconName = 117
	RICON_ARROW_LEFT_FILL         GuiIconName = 118
	RICON_ARROW_RIGHT_FILL        GuiIconName = 119
	RICON_ARROW_BOTTOM_FILL       GuiIconName = 120
	RICON_ARROW_TOP_FILL          GuiIconName = 121
	RICON_AUDIO                   GuiIconName = 122
	RICON_FX                      GuiIconName = 123
	RICON_WAVE                    GuiIconName = 124
	RICON_WAVE_SINUS              GuiIconName = 125
	RICON_WAVE_SQUARE             GuiIconName = 126
	RICON_WAVE_TRIANGULAR         GuiIconName = 127
	RICON_CROSS_SMALL             GuiIconName = 128
	RICON_PLAYER_PREVIOUS         GuiIconName = 129
	RICON_PLAYER_PLAY_BACK        GuiIconName = 130
	RICON_PLAYER_PLAY             GuiIconName = 131
	RICON_PLAYER_PAUSE            GuiIconName = 132
	RICON_PLAYER_STOP             GuiIconName = 133
	RICON_PLAYER_NEXT             GuiIconName = 134
	RICON_PLAYER_RECORD           GuiIconName = 135
	RICON_MAGNET                  GuiIconName = 136
	RICON_LOCK_CLOSE              GuiIconName = 137
	RICON_LOCK_OPEN               GuiIconName = 138
	RICON_CLOCK                   GuiIconName = 139
	RICON_TOOLS                   GuiIconName = 140
	RICON_GEAR                    GuiIconName = 141
	RICON_GEAR_BIG                GuiIconName = 142
	RICON_BIN                     GuiIconName = 143
	RICON_HAND_POINTER            GuiIconName = 144
	RICON_LASER                   GuiIconName = 145
	RICON_COIN                    GuiIconName = 146
	RICON_EXPLOSION               GuiIconName = 147
	RICON_1UP                     GuiIconName = 148
	RICON_PLAYER                  GuiIconName = 149
	RICON_PLAYER_JUMP             GuiIconName = 150
	RICON_KEY                     GuiIconName = 151
	RICON_DEMON                   GuiIconName = 152
	RICON_TEXT_POPUP              GuiIconName = 153
	RICON_GEAR_EX                 GuiIconName = 154
	RICON_CRACK                   GuiIconName = 155
	RICON_CRACK_POINTS            GuiIconName = 156
	RICON_STAR                    GuiIconName = 157
	RICON_DOOR                    GuiIconName = 158
	RICON_EXIT                    GuiIconName = 159
	RICON_MODE_2D                 GuiIconName = 160
	RICON_MODE_3D                 GuiIconName = 161
	RICON_CUBE                    GuiIconName = 162
	RICON_CUBE_FACE_TOP           GuiIconName = 163
	RICON_CUBE_FACE_LEFT          GuiIconName = 164
	RICON_CUBE_FACE_FRONT         GuiIconName = 165
	RICON_CUBE_FACE_BOTTOM        GuiIconName = 166
	RICON_CUBE_FACE_RIGHT         GuiIconName = 167
	RICON_CUBE_FACE_BACK          GuiIconName = 168
	RICON_CAMERA                  GuiIconName = 169
	RICON_SPECIAL                 GuiIconName = 170
	RICON_LINK_NET                GuiIconName = 171
	RICON_LINK_BOXES              GuiIconName = 172
	RICON_LINK_MULTI              GuiIconName = 173
	RICON_LINK                    GuiIconName = 174
	RICON_LINK_BROKE              GuiIconName = 175
	RICON_TEXT_NOTES              GuiIconName = 176
	RICON_NOTEBOOK                GuiIconName = 177
	RICON_SUITCASE                GuiIconName = 178
	RICON_SUITCASE_ZIP            GuiIconName = 179
	RICON_MAILBOX                 GuiIconName = 180
	RICON_MONITOR                 GuiIconName = 181
	RICON_PRINTER                 GuiIconName = 182
	RICON_PHOTO_CAMERA            GuiIconName = 183
	RICON_PHOTO_CAMERA_FLASH      GuiIconName = 184
	RICON_HOUSE                   GuiIconName = 185
	RICON_HEART                   GuiIconName = 186
	RICON_CORNER                  GuiIconName = 187
	RICON_VERTICAL_BARS           GuiIconName = 188
	RICON_VERTICAL_BARS_FILL      GuiIconName = 189
	RICON_LIFE_BARS               GuiIconName = 190
	RICON_INFO                    GuiIconName = 191
	RICON_CROSSLINE               GuiIconName = 192
	RICON_HELP                    GuiIconName = 193
	RICON_FILETYPE_ALPHA          GuiIconName = 194
	RICON_FILETYPE_HOME           GuiIconName = 195
	RICON_LAYERS_VISIBLE          GuiIconName = 196
	RICON_LAYERS                  GuiIconName = 197
	RICON_WINDOW                  GuiIconName = 198
	RICON_HIDPI                   GuiIconName = 199
	RICON_200                     GuiIconName = 200
	RICON_201                     GuiIconName = 201
	RICON_202                     GuiIconName = 202
	RICON_203                     GuiIconName = 203
	RICON_204                     GuiIconName = 204
	RICON_205                     GuiIconName = 205
	RICON_206                     GuiIconName = 206
	RICON_207                     GuiIconName = 207
	RICON_208                     GuiIconName = 208
	RICON_209                     GuiIconName = 209
	RICON_210                     GuiIconName = 210
	RICON_211                     GuiIconName = 211
	RICON_212                     GuiIconName = 212
	RICON_213                     GuiIconName = 213
	RICON_214                     GuiIconName = 214
	RICON_215                     GuiIconName = 215
	RICON_216                     GuiIconName = 216
	RICON_217                     GuiIconName = 217
	RICON_218                     GuiIconName = 218
	RICON_219                     GuiIconName = 219
	RICON_220                     GuiIconName = 220
	RICON_221                     GuiIconName = 221
	RICON_222                     GuiIconName = 222
	RICON_223                     GuiIconName = 223
	RICON_224                     GuiIconName = 224
	RICON_225                     GuiIconName = 225
	RICON_226                     GuiIconName = 226
	RICON_227                     GuiIconName = 227
	RICON_228                     GuiIconName = 228
	RICON_229                     GuiIconName = 229
	RICON_230                     GuiIconName = 230
	RICON_231                     GuiIconName = 231
	RICON_232                     GuiIconName = 232
	RICON_233                     GuiIconName = 233
	RICON_234                     GuiIconName = 234
	RICON_235                     GuiIconName = 235
	RICON_236                     GuiIconName = 236
	RICON_237                     GuiIconName = 237
	RICON_238                     GuiIconName = 238
	RICON_239                     GuiIconName = 239
	RICON_240                     GuiIconName = 240
	RICON_241                     GuiIconName = 241
	RICON_242                     GuiIconName = 242
	RICON_243                     GuiIconName = 243
	RICON_244                     GuiIconName = 244
	RICON_245                     GuiIconName = 245
	RICON_246                     GuiIconName = 246
	RICON_247                     GuiIconName = 247
	RICON_248                     GuiIconName = 248
	RICON_249                     GuiIconName = 249
	RICON_250                     GuiIconName = 250
	RICON_251                     GuiIconName = 251
	RICON_252                     GuiIconName = 252
	RICON_253                     GuiIconName = 253
	RICON_254                     GuiIconName = 254
	RICON_255                     GuiIconName = 255
)

GuiIconName enumeration from src/ricons.h:289

type GuiListViewProperty

type GuiListViewProperty int32

GuiListViewProperty as declared in src/raygui.h:399

const (
	LIST_ITEMS_HEIGHT  GuiListViewProperty = 16
	LIST_ITEMS_PADDING GuiListViewProperty = 17
	SCROLLBAR_WIDTH    GuiListViewProperty = 18
	SCROLLBAR_SIDE     GuiListViewProperty = 19
)

GuiListViewProperty enumeration from src/raygui.h:399

type GuiProgressBarProperty

type GuiProgressBarProperty int32

GuiProgressBarProperty as declared in src/raygui.h:344

const (
	PROGRESS_PADDING GuiProgressBarProperty = 16
)

GuiProgressBarProperty enumeration from src/raygui.h:344

type GuiScrollBarProperty

type GuiScrollBarProperty int32

GuiScrollBarProperty as declared in src/raygui.h:385

const (
	ARROWS_SIZE           GuiScrollBarProperty = 16
	ARROWS_VISIBLE        GuiScrollBarProperty = 17
	SCROLL_SLIDER_PADDING GuiScrollBarProperty = 18
	SCROLL_SLIDER_SIZE    GuiScrollBarProperty = 19
	SCROLL_PADDING        GuiScrollBarProperty = 20
	SCROLL_SPEED          GuiScrollBarProperty = 21
)

GuiScrollBarProperty enumeration from src/raygui.h:385

type GuiScrollBarSide

type GuiScrollBarSide int32

GuiScrollBarSide as declared in src/raygui.h:391

const (
	SCROLLBAR_LEFT_SIDE  GuiScrollBarSide = iota
	SCROLLBAR_RIGHT_SIDE GuiScrollBarSide = 1
)

GuiScrollBarSide enumeration from src/raygui.h:391

type GuiSliderProperty

type GuiSliderProperty int32

GuiSliderProperty as declared in src/raygui.h:339

const (
	SLIDER_WIDTH   GuiSliderProperty = 16
	SLIDER_PADDING GuiSliderProperty = 17
)

GuiSliderProperty enumeration from src/raygui.h:339

type GuiSpinnerProperty

type GuiSpinnerProperty int32

GuiSpinnerProperty as declared in src/raygui.h:375

const (
	SPIN_BUTTON_WIDTH   GuiSpinnerProperty = 16
	SPIN_BUTTON_PADDING GuiSpinnerProperty = 17
)

GuiSpinnerProperty enumeration from src/raygui.h:375

type GuiStyleProp

type GuiStyleProp struct {
	ControlId     uint16
	PropertyId    uint16
	PropertyValue int32
}

func AllocGuiStyleProp

func AllocGuiStyleProp(cControlId uint16, cPropertyId uint16, cPropertyValue int32) (*GuiStyleProp, *cgoAllocMap)

AllocGuiStyleProp new Go object and Mapping to C object.

func NewGuiStyleProp

func NewGuiStyleProp(cControlId uint16, cPropertyId uint16, cPropertyValue int32) GuiStyleProp

NewGuiStyleProp new Go object and Mapping to C object.

func (*GuiStyleProp) GC

func (x *GuiStyleProp) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*GuiStyleProp) Index

func (x *GuiStyleProp) Index(index int32) *GuiStyleProp

Index reads Go data structure out from plain C format.

type GuiTextAlignment

type GuiTextAlignment int32

GuiTextAlignment as declared in src/raygui.h:271

const (
	GUI_TEXT_ALIGN_LEFT   GuiTextAlignment = iota
	GUI_TEXT_ALIGN_CENTER GuiTextAlignment = 1
	GUI_TEXT_ALIGN_RIGHT  GuiTextAlignment = 2
)

GuiTextAlignment enumeration from src/raygui.h:271

type GuiTextBoxProperty

type GuiTextBoxProperty int32

GuiTextBoxProperty as declared in src/raygui.h:369

const (
	TEXT_INNER_PADDING GuiTextBoxProperty = 16
	TEXT_LINES_PADDING GuiTextBoxProperty = 17
	COLOR_SELECTED_FG  GuiTextBoxProperty = 18
	COLOR_SELECTED_BG  GuiTextBoxProperty = 19
)

GuiTextBoxProperty enumeration from src/raygui.h:369

type GuiToggleProperty

type GuiToggleProperty int32

GuiToggleProperty as declared in src/raygui.h:333

const (
	GROUP_PADDING GuiToggleProperty = 16
)

GuiToggleProperty enumeration from src/raygui.h:333

type Image

type Image struct {
	Data    unsafe.Pointer
	Width   int32
	Height  int32
	Mipmaps int32
	Format  int32
}

func AllocImage

func AllocImage(cData unsafe.Pointer, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) (*Image, *cgoAllocMap)

AllocImage new Go object and Mapping to C object.

func GenImageCellular

func GenImageCellular(width int32, height int32, tileSize int32) Image

GenImageCellular function as declared in src/raylib.h:1163

func GenImageChecked

func GenImageChecked(width int32, height int32, checksX int32, checksY int32, col1 Color, col2 Color) Image

GenImageChecked function as declared in src/raylib.h:1160

func GenImageColor

func GenImageColor(width int32, height int32, color Color) Image

GenImageColor function as declared in src/raylib.h:1156

func GenImageFontAtlas

func GenImageFontAtlas(chars *CharInfo, recs **Rectangle, charsCount int32, fontSize int32, padding int32, packMethod int32) Image

GenImageFontAtlas function as declared in src/raylib.h:1218

func GenImageGradientH

func GenImageGradientH(width int32, height int32, left Color, right Color) Image

GenImageGradientH function as declared in src/raylib.h:1158

func GenImageGradientRadial

func GenImageGradientRadial(width int32, height int32, density float32, inner Color, outer Color) Image

GenImageGradientRadial function as declared in src/raylib.h:1159

func GenImageGradientV

func GenImageGradientV(width int32, height int32, top Color, bottom Color) Image

GenImageGradientV function as declared in src/raylib.h:1157

func GenImagePerlinNoise

func GenImagePerlinNoise(width int32, height int32, offsetX int32, offsetY int32, scale float32) Image

GenImagePerlinNoise function as declared in src/raylib.h:1162

func GenImageWhiteNoise

func GenImageWhiteNoise(width int32, height int32, factor float32) Image

GenImageWhiteNoise function as declared in src/raylib.h:1161

func GetScreenData

func GetScreenData() Image

GetScreenData function as declared in src/raylib.h:1226

func GetTextureData

func GetTextureData(texture Texture2D) Image

GetTextureData function as declared in src/raylib.h:1225

func ImageCopy

func ImageCopy(image Image) Image

ImageCopy function as declared in src/raylib.h:1166

func ImageFromImage

func ImageFromImage(image Image, rec Rectangle) Image

ImageFromImage function as declared in src/raylib.h:1167

func ImageText

func ImageText(text string, fontSize int32, color Color) Image

ImageText function as declared in src/raylib.h:1168

func ImageTextEx

func ImageTextEx(font Font, text string, fontSize float32, spacing float32, tint Color) Image

ImageTextEx function as declared in src/raylib.h:1169

func LoadImage

func LoadImage(fileName string) Image

LoadImage function as declared in src/raylib.h:1147

func LoadImageAnim

func LoadImageAnim(fileName string, frames *int32) Image

LoadImageAnim function as declared in src/raylib.h:1149

func LoadImageFromMemory

func LoadImageFromMemory(fileType string, fileData []byte, dataSize int32) Image

LoadImageFromMemory function as declared in src/raylib.h:1150

func LoadImageRaw

func LoadImageRaw(fileName string, width int32, height int32, format int32, headerSize int32) Image

LoadImageRaw function as declared in src/raylib.h:1148

func NewImage

func NewImage(cData unsafe.Pointer, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) Image

NewImage new Go object and Mapping to C object.

func (*Image) GC

func (x *Image) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Image) Index

func (x *Image) Index(index int32) *Image

Index reads Go data structure out from plain C format.

type KeyboardKey

type KeyboardKey int32

KeyboardKey as declared in src/raylib.h:617

const (
	KEY_APOSTROPHE    KeyboardKey = 39
	KEY_COMMA         KeyboardKey = 44
	KEY_MINUS         KeyboardKey = 45
	KEY_PERIOD        KeyboardKey = 46
	KEY_SLASH         KeyboardKey = 47
	KEY_ZERO          KeyboardKey = 48
	KEY_ONE           KeyboardKey = 49
	KEY_TWO           KeyboardKey = 50
	KEY_THREE         KeyboardKey = 51
	KEY_FOUR          KeyboardKey = 52
	KEY_FIVE          KeyboardKey = 53
	KEY_SIX           KeyboardKey = 54
	KEY_SEVEN         KeyboardKey = 55
	KEY_EIGHT         KeyboardKey = 56
	KEY_NINE          KeyboardKey = 57
	KEY_SEMICOLON     KeyboardKey = 59
	KEY_EQUAL         KeyboardKey = 61
	KEY_A             KeyboardKey = 65
	KEY_B             KeyboardKey = 66
	KEY_C             KeyboardKey = 67
	KEY_D             KeyboardKey = 68
	KEY_E             KeyboardKey = 69
	KEY_F             KeyboardKey = 70
	KEY_G             KeyboardKey = 71
	KEY_H             KeyboardKey = 72
	KEY_I             KeyboardKey = 73
	KEY_J             KeyboardKey = 74
	KEY_K             KeyboardKey = 75
	KEY_L             KeyboardKey = 76
	KEY_M             KeyboardKey = 77
	KEY_N             KeyboardKey = 78
	KEY_O             KeyboardKey = 79
	KEY_P             KeyboardKey = 80
	KEY_Q             KeyboardKey = 81
	KEY_R             KeyboardKey = 82
	KEY_S             KeyboardKey = 83
	KEY_T             KeyboardKey = 84
	KEY_U             KeyboardKey = 85
	KEY_V             KeyboardKey = 86
	KEY_W             KeyboardKey = 87
	KEY_X             KeyboardKey = 88
	KEY_Y             KeyboardKey = 89
	KEY_Z             KeyboardKey = 90
	KEY_SPACE         KeyboardKey = 32
	KEY_ESCAPE        KeyboardKey = 256
	KEY_ENTER         KeyboardKey = 257
	KEY_TAB           KeyboardKey = 258
	KEY_BACKSPACE     KeyboardKey = 259
	KEY_INSERT        KeyboardKey = 260
	KEY_DELETE        KeyboardKey = 261
	KEY_RIGHT         KeyboardKey = 262
	KEY_LEFT          KeyboardKey = 263
	KEY_DOWN          KeyboardKey = 264
	KEY_UP            KeyboardKey = 265
	KEY_PAGE_UP       KeyboardKey = 266
	KEY_PAGE_DOWN     KeyboardKey = 267
	KEY_HOME          KeyboardKey = 268
	KEY_END           KeyboardKey = 269
	KEY_CAPS_LOCK     KeyboardKey = 280
	KEY_SCROLL_LOCK   KeyboardKey = 281
	KEY_NUM_LOCK      KeyboardKey = 282
	KEY_PRINT_SCREEN  KeyboardKey = 283
	KEY_PAUSE         KeyboardKey = 284
	KEY_F1            KeyboardKey = 290
	KEY_F2            KeyboardKey = 291
	KEY_F3            KeyboardKey = 292
	KEY_F4            KeyboardKey = 293
	KEY_F5            KeyboardKey = 294
	KEY_F6            KeyboardKey = 295
	KEY_F7            KeyboardKey = 296
	KEY_F8            KeyboardKey = 297
	KEY_F9            KeyboardKey = 298
	KEY_F10           KeyboardKey = 299
	KEY_F11           KeyboardKey = 300
	KEY_F12           KeyboardKey = 301
	KEY_LEFT_SHIFT    KeyboardKey = 340
	KEY_LEFT_CONTROL  KeyboardKey = 341
	KEY_LEFT_ALT      KeyboardKey = 342
	KEY_LEFT_SUPER    KeyboardKey = 343
	KEY_RIGHT_SHIFT   KeyboardKey = 344
	KEY_RIGHT_CONTROL KeyboardKey = 345
	KEY_RIGHT_ALT     KeyboardKey = 346
	KEY_RIGHT_SUPER   KeyboardKey = 347
	KEY_KB_MENU       KeyboardKey = 348
	KEY_LEFT_BRACKET  KeyboardKey = 91
	KEY_BACKSLASH     KeyboardKey = 92
	KEY_RIGHT_BRACKET KeyboardKey = 93
	KEY_GRAVE         KeyboardKey = 96
	KEY_KP_0          KeyboardKey = 320
	KEY_KP_1          KeyboardKey = 321
	KEY_KP_2          KeyboardKey = 322
	KEY_KP_3          KeyboardKey = 323
	KEY_KP_4          KeyboardKey = 324
	KEY_KP_5          KeyboardKey = 325
	KEY_KP_6          KeyboardKey = 326
	KEY_KP_7          KeyboardKey = 327
	KEY_KP_8          KeyboardKey = 328
	KEY_KP_9          KeyboardKey = 329
	KEY_KP_DECIMAL    KeyboardKey = 330
	KEY_KP_DIVIDE     KeyboardKey = 331
	KEY_KP_MULTIPLY   KeyboardKey = 332
	KEY_KP_SUBTRACT   KeyboardKey = 333
	KEY_KP_ADD        KeyboardKey = 334
	KEY_KP_ENTER      KeyboardKey = 335
	KEY_KP_EQUAL      KeyboardKey = 336
)

KeyboardKey enumeration from src/raylib.h:617

type Material

type Material struct {
	Shader Shader
	Maps   *MaterialMap
	Params *float32
}

func AllocMaterial

func AllocMaterial(cShader Shader, cMaps []MaterialMap, cParams []float32) (*Material, *cgoAllocMap)

AllocMaterial new Go object and Mapping to C object.

func LoadMaterialDefault

func LoadMaterialDefault() Material

LoadMaterialDefault function as declared in src/raylib.h:1355

func LoadMaterials

func LoadMaterials(fileName string, materialCount *int32) *Material

LoadMaterials function as declared in src/raylib.h:1354

func NewMaterial

func NewMaterial(cShader Shader, cMaps []MaterialMap, cParams []float32) Material

NewMaterial new Go object and Mapping to C object.

func (*Material) GC

func (x *Material) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Material) Index

func (x *Material) Index(index int32) *Material

Index reads Go data structure out from plain C format.

func (*Material) Mapser

func (x *Material) Mapser(index int32) *MaterialMap

Maps returns a reference to C object within a struct

func (*Material) Paramser

func (x *Material) Paramser(index int32) *float32

Params returns a reference to C object within a struct

type MaterialMap

type MaterialMap struct {
	Texture Texture
	Color   Color
	Value   float32
}

func AllocMaterialMap

func AllocMaterialMap(cTexture Texture2D, cColor Color, cValue float32) (*MaterialMap, *cgoAllocMap)

AllocMaterialMap new Go object and Mapping to C object.

func NewMaterialMap

func NewMaterialMap(cTexture Texture2D, cColor Color, cValue float32) MaterialMap

NewMaterialMap new Go object and Mapping to C object.

func (*MaterialMap) GC

func (x *MaterialMap) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*MaterialMap) Index

func (x *MaterialMap) Index(index int32) *MaterialMap

Index reads Go data structure out from plain C format.

type MaterialMapType

type MaterialMapType int32

MaterialMapType as declared in src/raylib.h:766

const (
	MAP_ALBEDO     MaterialMapType = iota
	MAP_METALNESS  MaterialMapType = 1
	MAP_NORMAL     MaterialMapType = 2
	MAP_ROUGHNESS  MaterialMapType = 3
	MAP_OCCLUSION  MaterialMapType = 4
	MAP_EMISSION   MaterialMapType = 5
	MAP_HEIGHT     MaterialMapType = 6
	MAP_CUBEMAP    MaterialMapType = 7
	MAP_IRRADIANCE MaterialMapType = 8
	MAP_PREFILTER  MaterialMapType = 9
	MAP_BRDF       MaterialMapType = 10
)

MaterialMapType enumeration from src/raylib.h:766

type Matrix

type Matrix struct {
	M0  float32
	M4  float32
	M8  float32
	M12 float32
	M1  float32
	M5  float32
	M9  float32
	M13 float32
	M2  float32
	M6  float32
	M10 float32
	M14 float32
	M3  float32
	M7  float32
	M11 float32
	M15 float32
}

func AllocMatrix

func AllocMatrix(cM0 float32, cM4 float32, cM8 float32, cM12 float32, cM1 float32, cM5 float32, cM9 float32, cM13 float32, cM2 float32, cM6 float32, cM10 float32, cM14 float32, cM3 float32, cM7 float32, cM11 float32, cM15 float32) (*Matrix, *cgoAllocMap)

AllocMatrix new Go object and Mapping to C object.

func GetCameraMatrix

func GetCameraMatrix(camera Camera) Matrix

GetCameraMatrix function as declared in src/raylib.h:962

func GetCameraMatrix2D

func GetCameraMatrix2D(camera Camera2D) Matrix

GetCameraMatrix2D function as declared in src/raylib.h:963

func GetMatrixModelview

func GetMatrixModelview() Matrix

GetMatrixModelview function as declared in src/raylib.h:1430

func GetMatrixProjection

func GetMatrixProjection() Matrix

GetMatrixProjection function as declared in src/raylib.h:1431

func MatrixAdd

func MatrixAdd(left Matrix, right Matrix) Matrix

MatrixAdd function as declared in src/raymath.h:765

func MatrixFrustum

func MatrixFrustum(left float64, right float64, bottom float64, top float64, near float64, far float64) Matrix

MatrixFrustum function as declared in src/raymath.h:996

func MatrixIdentity

func MatrixIdentity() Matrix

MatrixIdentity function as declared in src/raymath.h:754

func MatrixInvert

func MatrixInvert(mat Matrix) Matrix

MatrixInvert function as declared in src/raymath.h:680

func MatrixLookAt

func MatrixLookAt(eye Vector3, target Vector3, up Vector3) Matrix

MatrixLookAt function as declared in src/raymath.h:1068

func MatrixMultiply

func MatrixMultiply(left Matrix, right Matrix) Matrix

MatrixMultiply function as declared in src/raymath.h:816

func MatrixNormalize

func MatrixNormalize(mat Matrix) Matrix

MatrixNormalize function as declared in src/raymath.h:727

func MatrixOrtho

func MatrixOrtho(left float64, right float64, bottom float64, top float64, near float64, far float64) Matrix

MatrixOrtho function as declared in src/raymath.h:1039

func MatrixPerspective

func MatrixPerspective(fovy float64, aspect float64, near float64, far float64) Matrix

MatrixPerspective function as declared in src/raymath.h:1029

func MatrixRotate

func MatrixRotate(axis Vector3, angle float32) Matrix

MatrixRotate function as declared in src/raymath.h:853

func MatrixRotateX

func MatrixRotateX(angle float32) Matrix

MatrixRotateX function as declared in src/raymath.h:897

func MatrixRotateXYZ

func MatrixRotateXYZ(ang Vector3) Matrix

MatrixRotateXYZ function as declared in src/raymath.h:946

func MatrixRotateY

func MatrixRotateY(angle float32) Matrix

MatrixRotateY function as declared in src/raymath.h:913

func MatrixRotateZ

func MatrixRotateZ(angle float32) Matrix

MatrixRotateZ function as declared in src/raymath.h:929

func MatrixScale

func MatrixScale(x float32, y float32, z float32) Matrix

MatrixScale function as declared in src/raymath.h:985

func MatrixSubtract

func MatrixSubtract(left Matrix, right Matrix) Matrix

MatrixSubtract function as declared in src/raymath.h:790

func MatrixTranslate

func MatrixTranslate(x float32, y float32, z float32) Matrix

MatrixTranslate function as declared in src/raymath.h:841

func MatrixTranspose

func MatrixTranspose(mat Matrix) Matrix

MatrixTranspose function as declared in src/raymath.h:655

func NewMatrix

func NewMatrix(cM0 float32, cM4 float32, cM8 float32, cM12 float32, cM1 float32, cM5 float32, cM9 float32, cM13 float32, cM2 float32, cM6 float32, cM10 float32, cM14 float32, cM3 float32, cM7 float32, cM11 float32, cM15 float32) Matrix

NewMatrix new Go object and Mapping to C object.

func QuaternionToMatrix

func QuaternionToMatrix(q Quaternion) Matrix

QuaternionToMatrix function as declared in src/raymath.h:1360

func (*Matrix) GC

func (x *Matrix) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Matrix) Index

func (x *Matrix) Index(index int32) *Matrix

Index reads Go data structure out from plain C format.

type Mesh

type Mesh struct {
	VertexCount   int32
	TriangleCount int32
	Vertices      *float32
	Texcoords     *float32
	Texcoords2    *float32
	Normals       *float32
	Tangents      *float32
	Colors        *byte
	Indices       *uint16
	AnimVertices  *float32
	AnimNormals   *float32
	BoneIds       *int32
	BoneWeights   *float32
	VaoId         uint32
	VboId         *uint32
}

func AllocMesh

func AllocMesh(cVertexCount int32, cTriangleCount int32, cVertices []float32, cTexcoords []float32, cTexcoords2 []float32, cNormals []float32, cTangents []float32, cColors []byte, cIndices []uint16, cAnimVertices []float32, cAnimNormals []float32, cBoneIds []int32, cBoneWeights []float32, cVaoId uint32, cVboId []uint32) (*Mesh, *cgoAllocMap)

AllocMesh new Go object and Mapping to C object.

func GenMeshCube

func GenMeshCube(width float32, height float32, length float32) Mesh

GenMeshCube function as declared in src/raylib.h:1369

func GenMeshCubicmap

func GenMeshCubicmap(cubicmap Image, cubeSize Vector3) Mesh

GenMeshCubicmap function as declared in src/raylib.h:1376

func GenMeshCylinder

func GenMeshCylinder(radius float32, height float32, slices int32) Mesh

GenMeshCylinder function as declared in src/raylib.h:1372

func GenMeshHeightmap

func GenMeshHeightmap(heightmap Image, size Vector3) Mesh

GenMeshHeightmap function as declared in src/raylib.h:1375

func GenMeshHemiSphere

func GenMeshHemiSphere(radius float32, rings int32, slices int32) Mesh

GenMeshHemiSphere function as declared in src/raylib.h:1371

func GenMeshKnot

func GenMeshKnot(radius float32, size float32, radSeg int32, sides int32) Mesh

GenMeshKnot function as declared in src/raylib.h:1374

func GenMeshPlane

func GenMeshPlane(width float32, length float32, resX int32, resZ int32) Mesh

GenMeshPlane function as declared in src/raylib.h:1368

func GenMeshPoly

func GenMeshPoly(sides int32, radius float32) Mesh

GenMeshPoly function as declared in src/raylib.h:1367

func GenMeshSphere

func GenMeshSphere(radius float32, rings int32, slices int32) Mesh

GenMeshSphere function as declared in src/raylib.h:1370

func GenMeshTorus

func GenMeshTorus(radius float32, size float32, radSeg int32, sides int32) Mesh

GenMeshTorus function as declared in src/raylib.h:1373

func LoadMeshes

func LoadMeshes(fileName string, meshCount *int32) *Mesh

LoadMeshes function as declared in src/raylib.h:1349

func NewMesh

func NewMesh(cVertexCount int32, cTriangleCount int32, cVertices []float32, cTexcoords []float32, cTexcoords2 []float32, cNormals []float32, cTangents []float32, cColors []byte, cIndices []uint16, cAnimVertices []float32, cAnimNormals []float32, cBoneIds []int32, cBoneWeights []float32, cVaoId uint32, cVboId []uint32) Mesh

NewMesh new Go object and Mapping to C object.

func (*Mesh) AnimNormalser

func (x *Mesh) AnimNormalser(index int32) *float32

AnimNormals returns a reference to C object within a struct

func (*Mesh) AnimVerticeser

func (x *Mesh) AnimVerticeser(index int32) *float32

AnimVertices returns a reference to C object within a struct

func (*Mesh) BoneIdser

func (x *Mesh) BoneIdser(index int32) *int32

BoneIds returns a reference to C object within a struct

func (*Mesh) BoneWeightser

func (x *Mesh) BoneWeightser(index int32) *float32

BoneWeights returns a reference to C object within a struct

func (*Mesh) Colorser

func (x *Mesh) Colorser(index int32) *byte

Colors returns a reference to C object within a struct

func (*Mesh) GC

func (x *Mesh) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Mesh) Index

func (x *Mesh) Index(index int32) *Mesh

Index reads Go data structure out from plain C format.

func (*Mesh) Indiceser

func (x *Mesh) Indiceser(index int32) *uint16

Indices returns a reference to C object within a struct

func (*Mesh) Normalser

func (x *Mesh) Normalser(index int32) *float32

Normals returns a reference to C object within a struct

func (*Mesh) Tangentser

func (x *Mesh) Tangentser(index int32) *float32

Tangents returns a reference to C object within a struct

func (*Mesh) Texcoords2er

func (x *Mesh) Texcoords2er(index int32) *float32

Texcoords2 returns a reference to C object within a struct

func (*Mesh) Texcoordser

func (x *Mesh) Texcoordser(index int32) *float32

Texcoords returns a reference to C object within a struct

func (*Mesh) VboIder

func (x *Mesh) VboIder(index int32) *uint32

VboId returns a reference to C object within a struct

func (*Mesh) Verticeser

func (x *Mesh) Verticeser(index int32) *float32

Vertices returns a reference to C object within a struct

type Model

type Model struct {
	Transform     Matrix
	MeshCount     int32
	MaterialCount int32
	Meshes        *Mesh
	Materials     *Material
	MeshMaterial  *int32
	BoneCount     int32
	Bones         *BoneInfo
	BindPose      *Transform
}

func AllocModel

func AllocModel(cTransform Matrix, cMeshCount int32, cMaterialCount int32, cMeshes []Mesh, cMaterials []Material, cMeshMaterial []int32, cBoneCount int32, cBones []BoneInfo, cBindPose []Transform) (*Model, *cgoAllocMap)

AllocModel new Go object and Mapping to C object.

func LoadModel

func LoadModel(fileName string) Model

LoadModel function as declared in src/raylib.h:1343

func LoadModelFromMesh

func LoadModelFromMesh(mesh Mesh) Model

LoadModelFromMesh function as declared in src/raylib.h:1344

func NewModel

func NewModel(cTransform Matrix, cMeshCount int32, cMaterialCount int32, cMeshes []Mesh, cMaterials []Material, cMeshMaterial []int32, cBoneCount int32, cBones []BoneInfo, cBindPose []Transform) Model

NewModel new Go object and Mapping to C object.

func (*Model) BindPoseer

func (x *Model) BindPoseer(index int32) *Transform

BindPose returns a reference to C object within a struct

func (*Model) Boneser

func (x *Model) Boneser(index int32) *BoneInfo

Bones returns a reference to C object within a struct

func (*Model) GC

func (x *Model) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Model) Index

func (x *Model) Index(index int32) *Model

Index reads Go data structure out from plain C format.

func (*Model) Materialser

func (x *Model) Materialser(index int32) *Material

Materials returns a reference to C object within a struct

func (*Model) MeshMaterialer

func (x *Model) MeshMaterialer(index int32) *int32

MeshMaterial returns a reference to C object within a struct

func (*Model) Mesheser

func (x *Model) Mesheser(index int32) *Mesh

Meshes returns a reference to C object within a struct

type ModelAnimation

type ModelAnimation struct {
	BoneCount  int32
	FrameCount int32
	Bones      *BoneInfo
	FramePoses **Transform
}

func AllocModelAnimation

func AllocModelAnimation(cBoneCount int32, cFrameCount int32, cBones []BoneInfo, cFramePoses [][]Transform) (*ModelAnimation, *cgoAllocMap)

AllocModelAnimation new Go object and Mapping to C object.

func LoadModelAnimations

func LoadModelAnimations(fileName string, animsCount *int32) *ModelAnimation

LoadModelAnimations function as declared in src/raylib.h:1361

func NewModelAnimation

func NewModelAnimation(cBoneCount int32, cFrameCount int32, cBones []BoneInfo, cFramePoses [][]Transform) ModelAnimation

NewModelAnimation new Go object and Mapping to C object.

func (*ModelAnimation) Boneser

func (x *ModelAnimation) Boneser(index int32) *BoneInfo

Bones returns a reference to C object within a struct

func (*ModelAnimation) FramePoseser

func (x *ModelAnimation) FramePoseser(row int32, column int32) *Transform

FramePoses returns a reference to C object within a struct

func (*ModelAnimation) GC

func (x *ModelAnimation) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*ModelAnimation) Index

func (x *ModelAnimation) Index(index int32) *ModelAnimation

Index reads Go data structure out from plain C format.

type MouseButton

type MouseButton int32

MouseButton as declared in src/raylib.h:632

const (
	MOUSE_LEFT_BUTTON   MouseButton = iota
	MOUSE_RIGHT_BUTTON  MouseButton = 1
	MOUSE_MIDDLE_BUTTON MouseButton = 2
)

MouseButton enumeration from src/raylib.h:632

type MouseCursor

type MouseCursor int32

MouseCursor as declared in src/raylib.h:647

const (
	MOUSE_CURSOR_DEFAULT       MouseCursor = iota
	MOUSE_CURSOR_ARROW         MouseCursor = 1
	MOUSE_CURSOR_IBEAM         MouseCursor = 2
	MOUSE_CURSOR_CROSSHAIR     MouseCursor = 3
	MOUSE_CURSOR_POINTING_HAND MouseCursor = 4
	MOUSE_CURSOR_RESIZE_EW     MouseCursor = 5
	MOUSE_CURSOR_RESIZE_NS     MouseCursor = 6
	MOUSE_CURSOR_RESIZE_NWSE   MouseCursor = 7
	MOUSE_CURSOR_RESIZE_NESW   MouseCursor = 8
	MOUSE_CURSOR_RESIZE_ALL    MouseCursor = 9
	MOUSE_CURSOR_NOT_ALLOWED   MouseCursor = 10
)

MouseCursor enumeration from src/raylib.h:647

type MultiText

type MultiText struct {
	Text *string
}

func AllocMultiText

func AllocMultiText(cText []string) (*MultiText, *cgoAllocMap)

AllocMultiText new Go object and Mapping to C object.

func NewMultiText

func NewMultiText(cText []string) MultiText

NewMultiText new Go object and Mapping to C object.

func (*MultiText) GC

func (x *MultiText) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*MultiText) Index

func (x *MultiText) Index(index int32) *MultiText

Index reads Go data structure out from plain C format.

type Music

type Music struct {
	Stream      AudioStream
	SampleCount uint32
	Looping     bool
	CtxType     int32
	CtxData     unsafe.Pointer
}

func AllocMusic

func AllocMusic(cStream AudioStream, cSampleCount uint32, cLooping bool, cCtxType int32, cCtxData unsafe.Pointer) (*Music, *cgoAllocMap)

AllocMusic new Go object and Mapping to C object.

func LoadMusicStream

func LoadMusicStream(fileName string) Music

LoadMusicStream function as declared in src/raylib.h:1495

func NewMusic

func NewMusic(cStream AudioStream, cSampleCount uint32, cLooping bool, cCtxType int32, cCtxData unsafe.Pointer) Music

NewMusic new Go object and Mapping to C object.

func (*Music) GC

func (x *Music) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Music) Index

func (x *Music) Index(index int32) *Music

Index reads Go data structure out from plain C format.

type NPatchInfo

type NPatchInfo struct {
	Source Rectangle
	Left   int32
	Top    int32
	Right  int32
	Bottom int32
	Type   int32
}

func AllocNPatchInfo

func AllocNPatchInfo(cSource Rectangle, cLeft int32, cTop int32, cRight int32, cBottom int32, cType int32) (*NPatchInfo, *cgoAllocMap)

AllocNPatchInfo new Go object and Mapping to C object.

func NewNPatchInfo

func NewNPatchInfo(cSource Rectangle, cLeft int32, cTop int32, cRight int32, cBottom int32, cType int32) NPatchInfo

NewNPatchInfo new Go object and Mapping to C object.

func (*NPatchInfo) GC

func (x *NPatchInfo) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*NPatchInfo) Index

func (x *NPatchInfo) Index(index int32) *NPatchInfo

Index reads Go data structure out from plain C format.

type NPatchType

type NPatchType int32

NPatchType as declared in src/raylib.h:880

const (
	NPT_9PATCH            NPatchType = iota
	NPT_3PATCH_VERTICAL   NPatchType = 1
	NPT_3PATCH_HORIZONTAL NPatchType = 2
)

NPatchType enumeration from src/raylib.h:880

type PixelFormat

type PixelFormat int32

PixelFormat as declared in src/raylib.h:795

const (
	UNCOMPRESSED_GRAYSCALE    PixelFormat = 1
	UNCOMPRESSED_GRAY_ALPHA   PixelFormat = 2
	UNCOMPRESSED_R5G6B5       PixelFormat = 3
	UNCOMPRESSED_R8G8B8       PixelFormat = 4
	UNCOMPRESSED_R5G5B5A1     PixelFormat = 5
	UNCOMPRESSED_R4G4B4A4     PixelFormat = 6
	UNCOMPRESSED_R8G8B8A8     PixelFormat = 7
	UNCOMPRESSED_R32          PixelFormat = 8
	UNCOMPRESSED_R32G32B32    PixelFormat = 9
	UNCOMPRESSED_R32G32B32A32 PixelFormat = 10
	COMPRESSED_DXT1_RGB       PixelFormat = 11
	COMPRESSED_DXT1_RGBA      PixelFormat = 12
	COMPRESSED_DXT3_RGBA      PixelFormat = 13
	COMPRESSED_DXT5_RGBA      PixelFormat = 14
	COMPRESSED_ETC1_RGB       PixelFormat = 15
	COMPRESSED_ETC2_RGB       PixelFormat = 16
	COMPRESSED_ETC2_EAC_RGBA  PixelFormat = 17
	COMPRESSED_PVRT_RGB       PixelFormat = 18
	COMPRESSED_PVRT_RGBA      PixelFormat = 19
	COMPRESSED_ASTC_4x4_RGBA  PixelFormat = 20
	COMPRESSED_ASTC_8x8_RGBA  PixelFormat = 21
)

PixelFormat enumeration from src/raylib.h:795

type Quaternion

type Quaternion struct {
	X float32
	Y float32
	Z float32
	W float32
}

func AllocQuaternion

func AllocQuaternion(cX float32, cY float32, cZ float32, cW float32) (*Quaternion, *cgoAllocMap)

AllocQuaternion new Go object and Mapping to C object.

func NewQuaternion

func NewQuaternion(cX float32, cY float32, cZ float32, cW float32) Quaternion

NewQuaternion new Go object and Mapping to C object.

func QuaternionAdd

func QuaternionAdd(q1 Quaternion, q2 Quaternion) Quaternion

QuaternionAdd function as declared in src/raymath.h:1128

func QuaternionAddValue

func QuaternionAddValue(q Quaternion, add float32) Quaternion

QuaternionAddValue function as declared in src/raymath.h:1135

func QuaternionDivide

func QuaternionDivide(q1 Quaternion, q2 Quaternion) Quaternion

QuaternionDivide function as declared in src/raymath.h:1239

func QuaternionFromAxisAngle

func QuaternionFromAxisAngle(axis Vector3, angle float32) Quaternion

QuaternionFromAxisAngle function as declared in src/raymath.h:1386

func QuaternionFromEuler

func QuaternionFromEuler(roll float32, pitch float32, yaw float32) Quaternion

QuaternionFromEuler function as declared in src/raymath.h:1436

func QuaternionFromMatrix

func QuaternionFromMatrix(mat Matrix) Quaternion

QuaternionFromMatrix function as declared in src/raymath.h:1326

func QuaternionFromVector3ToVector3

func QuaternionFromVector3ToVector3(from Vector3, to Vector3) Quaternion

QuaternionFromVector3ToVector3 function as declared in src/raymath.h:1304

func QuaternionIdentity

func QuaternionIdentity() Quaternion

QuaternionIdentity function as declared in src/raymath.h:1156

func QuaternionInvert

func QuaternionInvert(q Quaternion) Quaternion

QuaternionInvert function as declared in src/raymath.h:1188

func QuaternionLerp

func QuaternionLerp(q1 Quaternion, q2 Quaternion, amount float32) Quaternion

QuaternionLerp function as declared in src/raymath.h:1246

func QuaternionMultiply

func QuaternionMultiply(q1 Quaternion, q2 Quaternion) Quaternion

QuaternionMultiply function as declared in src/raymath.h:1208

func QuaternionNlerp

func QuaternionNlerp(q1 Quaternion, q2 Quaternion, amount float32) Quaternion

QuaternionNlerp function as declared in src/raymath.h:1259

func QuaternionNormalize

func QuaternionNormalize(q Quaternion) Quaternion

QuaternionNormalize function as declared in src/raymath.h:1170

func QuaternionScale

func QuaternionScale(q Quaternion, mul float32) Quaternion

QuaternionScale function as declared in src/raymath.h:1224

func QuaternionSlerp

func QuaternionSlerp(q1 Quaternion, q2 Quaternion, amount float32) Quaternion

QuaternionSlerp function as declared in src/raymath.h:1268

func QuaternionSubtract

func QuaternionSubtract(q1 Quaternion, q2 Quaternion) Quaternion

QuaternionSubtract function as declared in src/raymath.h:1142

func QuaternionSubtractValue

func QuaternionSubtractValue(q Quaternion, sub float32) Quaternion

QuaternionSubtractValue function as declared in src/raymath.h:1149

func QuaternionTransform

func QuaternionTransform(q Quaternion, mat Matrix) Quaternion

QuaternionTransform function as declared in src/raymath.h:1481

func (*Quaternion) GC

func (x *Quaternion) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Quaternion) Index

func (x *Quaternion) Index(index int32) *Quaternion

Index reads Go data structure out from plain C format.

type RawString

type RawString string

RawString reperesents a string backed by data on the C side.

func (RawString) Copy

func (raw RawString) Copy() string

Copy returns a Go-managed copy of raw string.

type Ray

type Ray struct {
	Position  Vector3
	Direction Vector3
}

func AllocRay

func AllocRay(cPosition Vector3, cDirection Vector3) (*Ray, *cgoAllocMap)

AllocRay new Go object and Mapping to C object.

func GetMouseRay

func GetMouseRay(mousePosition Vector2, camera Camera) Ray

GetMouseRay function as declared in src/raylib.h:961

func NewRay

func NewRay(cPosition Vector3, cDirection Vector3) Ray

NewRay new Go object and Mapping to C object.

func (*Ray) GC

func (x *Ray) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Ray) Index

func (x *Ray) Index(index int32) *Ray

Index reads Go data structure out from plain C format.

type RayHitInfo

type RayHitInfo struct {
	Hit      bool
	Distance float32
	Position Vector3
	Normal   Vector3
}

func AllocRayHitInfo

func AllocRayHitInfo(cHit bool, cDistance float32, cPosition Vector3, cNormal Vector3) (*RayHitInfo, *cgoAllocMap)

AllocRayHitInfo new Go object and Mapping to C object.

func GetCollisionRayGround

func GetCollisionRayGround(ray Ray, groundHeight float32) RayHitInfo

GetCollisionRayGround function as declared in src/raylib.h:1403

func GetCollisionRayMesh

func GetCollisionRayMesh(ray Ray, mesh Mesh, transform Matrix) RayHitInfo

GetCollisionRayMesh function as declared in src/raylib.h:1400

func GetCollisionRayModel

func GetCollisionRayModel(ray Ray, model Model) RayHitInfo

GetCollisionRayModel function as declared in src/raylib.h:1401

func GetCollisionRayTriangle

func GetCollisionRayTriangle(ray Ray, p1 Vector3, p2 Vector3, p3 Vector3) RayHitInfo

GetCollisionRayTriangle function as declared in src/raylib.h:1402

func NewRayHitInfo

func NewRayHitInfo(cHit bool, cDistance float32, cPosition Vector3, cNormal Vector3) RayHitInfo

NewRayHitInfo new Go object and Mapping to C object.

func (*RayHitInfo) GC

func (x *RayHitInfo) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*RayHitInfo) Index

func (x *RayHitInfo) Index(index int32) *RayHitInfo

Index reads Go data structure out from plain C format.

type Rectangle

type Rectangle struct {
	X      float32
	Y      float32
	Width  float32
	Height float32
}

func AllocRectangle

func AllocRectangle(cX float32, cY float32, cWidth float32, cHeight float32) (*Rectangle, *cgoAllocMap)

AllocRectangle new Go object and Mapping to C object.

func GetCollisionRec

func GetCollisionRec(rec1 Rectangle, rec2 Rectangle) Rectangle

GetCollisionRec function as declared in src/raylib.h:1139

func GetImageAlphaBorder

func GetImageAlphaBorder(image Image, threshold float32) Rectangle

GetImageAlphaBorder function as declared in src/raylib.h:1196

func GetShapesTextureRec

func GetShapesTextureRec() Rectangle

GetShapesTextureRec function as declared in src/raylib.h:1418

func GuiScrollPanel

func GuiScrollPanel(bounds Rectangle, content Rectangle, scroll *Vector2) Rectangle

GuiScrollPanel function as declared in src/raygui.h:447

func NewRectangle

func NewRectangle(cX float32, cY float32, cWidth float32, cHeight float32) Rectangle

NewRectangle new Go object and Mapping to C object.

func (*Rectangle) GC

func (x *Rectangle) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Rectangle) Index

func (x *Rectangle) Index(index int32) *Rectangle

Index reads Go data structure out from plain C format.

type RenderTexture

type RenderTexture struct {
	Id      uint32
	Texture Texture
	Depth   Texture
}

func AllocRenderTexture

func AllocRenderTexture(cId uint32, cTexture Texture, cDepth Texture) (*RenderTexture, *cgoAllocMap)

AllocRenderTexture new Go object and Mapping to C object.

func NewRenderTexture

func NewRenderTexture(cId uint32, cTexture Texture, cDepth Texture) RenderTexture

NewRenderTexture new Go object and Mapping to C object.

func (*RenderTexture) GC

func (x *RenderTexture) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*RenderTexture) Index

func (x *RenderTexture) Index(index int32) *RenderTexture

Index reads Go data structure out from plain C format.

type RenderTexture2D

type RenderTexture2D struct {
	Id      uint32
	Texture Texture
	Depth   Texture
}

func AllocRenderTexture2D

func AllocRenderTexture2D(cId uint32, cTexture Texture, cDepth Texture) (*RenderTexture2D, *cgoAllocMap)

AllocRenderTexture2D new Go object and Mapping to C object.

func LoadRenderTexture

func LoadRenderTexture(width int32, height int32) RenderTexture2D

LoadRenderTexture function as declared in src/raylib.h:1220

func NewRenderTexture2D

func NewRenderTexture2D(cId uint32, cTexture Texture, cDepth Texture) RenderTexture2D

NewRenderTexture2D new Go object and Mapping to C object.

func (*RenderTexture2D) GC

func (x *RenderTexture2D) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*RenderTexture2D) Index

func (x *RenderTexture2D) Index(index int32) *RenderTexture2D

Index reads Go data structure out from plain C format.

type Shader

type Shader struct {
	Id   uint32
	Locs *int32
}

func AllocShader

func AllocShader(cId uint32, cLocs []int32) (*Shader, *cgoAllocMap)

AllocShader new Go object and Mapping to C object.

func GetShaderDefault

func GetShaderDefault() Shader

GetShaderDefault function as declared in src/raylib.h:1415

func LoadShader

func LoadShader(vsFileName string, fsFileName string) Shader

LoadShader function as declared in src/raylib.h:1411

func LoadShaderCode

func LoadShaderCode(vsCode string, fsCode string) Shader

LoadShaderCode function as declared in src/raylib.h:1412

func NewShader

func NewShader(cId uint32, cLocs []int32) Shader

NewShader new Go object and Mapping to C object.

func (*Shader) GC

func (x *Shader) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Shader) Index

func (x *Shader) Index(index int32) *Shader

Index reads Go data structure out from plain C format.

func (*Shader) Locser

func (x *Shader) Locser(index int32) *int32

Locs returns a reference to C object within a struct

type ShaderLocationIndex

type ShaderLocationIndex int32

ShaderLocationIndex as declared in src/raylib.h:735

const (
	LOC_VERTEX_POSITION   ShaderLocationIndex = iota
	LOC_VERTEX_TEXCOORD01 ShaderLocationIndex = 1
	LOC_VERTEX_TEXCOORD02 ShaderLocationIndex = 2
	LOC_VERTEX_NORMAL     ShaderLocationIndex = 3
	LOC_VERTEX_TANGENT    ShaderLocationIndex = 4
	LOC_VERTEX_COLOR      ShaderLocationIndex = 5
	LOC_MATRIX_MVP        ShaderLocationIndex = 6
	LOC_MATRIX_MODEL      ShaderLocationIndex = 7
	LOC_MATRIX_VIEW       ShaderLocationIndex = 8
	LOC_MATRIX_PROJECTION ShaderLocationIndex = 9
	LOC_VECTOR_VIEW       ShaderLocationIndex = 10
	LOC_COLOR_DIFFUSE     ShaderLocationIndex = 11
	LOC_COLOR_SPECULAR    ShaderLocationIndex = 12
	LOC_COLOR_AMBIENT     ShaderLocationIndex = 13
	LOC_MAP_ALBEDO        ShaderLocationIndex = 14
	LOC_MAP_METALNESS     ShaderLocationIndex = 15
	LOC_MAP_NORMAL        ShaderLocationIndex = 16
	LOC_MAP_ROUGHNESS     ShaderLocationIndex = 17
	LOC_MAP_OCCLUSION     ShaderLocationIndex = 18
	LOC_MAP_EMISSION      ShaderLocationIndex = 19
	LOC_MAP_HEIGHT        ShaderLocationIndex = 20
	LOC_MAP_CUBEMAP       ShaderLocationIndex = 21
	LOC_MAP_IRRADIANCE    ShaderLocationIndex = 22
	LOC_MAP_PREFILTER     ShaderLocationIndex = 23
	LOC_MAP_BRDF          ShaderLocationIndex = 24
)

ShaderLocationIndex enumeration from src/raylib.h:735

type ShaderUniformDataType

type ShaderUniformDataType int32

ShaderUniformDataType as declared in src/raylib.h:751

const (
	UNIFORM_FLOAT     ShaderUniformDataType = iota
	UNIFORM_VEC2      ShaderUniformDataType = 1
	UNIFORM_VEC3      ShaderUniformDataType = 2
	UNIFORM_VEC4      ShaderUniformDataType = 3
	UNIFORM_INT       ShaderUniformDataType = 4
	UNIFORM_IVEC2     ShaderUniformDataType = 5
	UNIFORM_IVEC3     ShaderUniformDataType = 6
	UNIFORM_IVEC4     ShaderUniformDataType = 7
	UNIFORM_SAMPLER2D ShaderUniformDataType = 8
)

ShaderUniformDataType enumeration from src/raylib.h:751

type Sound

type Sound struct {
	Stream      AudioStream
	SampleCount uint32
}

func AllocSound

func AllocSound(cStream AudioStream, cSampleCount uint32) (*Sound, *cgoAllocMap)

AllocSound new Go object and Mapping to C object.

func LoadSound

func LoadSound(fileName string) Sound

LoadSound function as declared in src/raylib.h:1469

func LoadSoundFromWave

func LoadSoundFromWave(wave Wave) Sound

LoadSoundFromWave function as declared in src/raylib.h:1470

func NewSound

func NewSound(cStream AudioStream, cSampleCount uint32) Sound

NewSound new Go object and Mapping to C object.

func (*Sound) GC

func (x *Sound) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Sound) Index

func (x *Sound) Index(index int32) *Sound

Index reads Go data structure out from plain C format.

type Texture

type Texture struct {
	Id      uint32
	Width   int32
	Height  int32
	Mipmaps int32
	Format  int32
}

func AllocTexture

func AllocTexture(cId uint32, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) (*Texture, *cgoAllocMap)

AllocTexture new Go object and Mapping to C object.

func NewTexture

func NewTexture(cId uint32, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) Texture

NewTexture new Go object and Mapping to C object.

func (*Texture) GC

func (x *Texture) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Texture) Index

func (x *Texture) Index(index int32) *Texture

Index reads Go data structure out from plain C format.

type Texture2D

type Texture2D struct {
	Id      uint32
	Width   int32
	Height  int32
	Mipmaps int32
	Format  int32
}

func AllocTexture2D

func AllocTexture2D(cId uint32, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) (*Texture2D, *cgoAllocMap)

AllocTexture2D new Go object and Mapping to C object.

func GenTextureBRDF

func GenTextureBRDF(shader Shader, size int32) Texture2D

GenTextureBRDF function as declared in src/raylib.h:1438

func GetShapesTexture

func GetShapesTexture() Texture2D

GetShapesTexture function as declared in src/raylib.h:1417

func GetTextureDefault

func GetTextureDefault() Texture2D

GetTextureDefault function as declared in src/raylib.h:1416

func LoadTexture

func LoadTexture(fileName string) Texture2D

LoadTexture function as declared in src/raylib.h:1217

func LoadTextureFromImage

func LoadTextureFromImage(image Image) Texture2D

LoadTextureFromImage function as declared in src/raylib.h:1218

func NewTexture2D

func NewTexture2D(cId uint32, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) Texture2D

NewTexture2D new Go object and Mapping to C object.

func (*Texture2D) GC

func (x *Texture2D) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Texture2D) Index

func (x *Texture2D) Index(index int32) *Texture2D

Index reads Go data structure out from plain C format.

type TextureCubemap

type TextureCubemap struct {
	Id      uint32
	Width   int32
	Height  int32
	Mipmaps int32
	Format  int32
}

func AllocTextureCubemap

func AllocTextureCubemap(cId uint32, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) (*TextureCubemap, *cgoAllocMap)

AllocTextureCubemap new Go object and Mapping to C object.

func GenTextureCubemap

func GenTextureCubemap(shader Shader, panorama Texture2D, size int32, format int32) TextureCubemap

GenTextureCubemap function as declared in src/raylib.h:1435

func GenTextureIrradiance

func GenTextureIrradiance(shader Shader, cubemap TextureCubemap, size int32) TextureCubemap

GenTextureIrradiance function as declared in src/raylib.h:1436

func GenTexturePrefilter

func GenTexturePrefilter(shader Shader, cubemap TextureCubemap, size int32) TextureCubemap

GenTexturePrefilter function as declared in src/raylib.h:1437

func LoadTextureCubemap

func LoadTextureCubemap(image Image, layoutType int32) TextureCubemap

LoadTextureCubemap function as declared in src/raylib.h:1219

func NewTextureCubemap

func NewTextureCubemap(cId uint32, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) TextureCubemap

NewTextureCubemap new Go object and Mapping to C object.

func (*TextureCubemap) GC

func (x *TextureCubemap) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*TextureCubemap) Index

func (x *TextureCubemap) Index(index int32) *TextureCubemap

Index reads Go data structure out from plain C format.

type TextureFilterMode

type TextureFilterMode int32

TextureFilterMode as declared in src/raylib.h:807

const (
	FILTER_POINT           TextureFilterMode = iota
	FILTER_BILINEAR        TextureFilterMode = 1
	FILTER_TRILINEAR       TextureFilterMode = 2
	FILTER_ANISOTROPIC_4X  TextureFilterMode = 3
	FILTER_ANISOTROPIC_8X  TextureFilterMode = 4
	FILTER_ANISOTROPIC_16X TextureFilterMode = 5
)

TextureFilterMode enumeration from src/raylib.h:807

type TextureWrapMode

type TextureWrapMode int32

TextureWrapMode as declared in src/raylib.h:815

const (
	WRAP_REPEAT        TextureWrapMode = iota
	WRAP_CLAMP         TextureWrapMode = 1
	WRAP_MIRROR_REPEAT TextureWrapMode = 2
	WRAP_MIRROR_CLAMP  TextureWrapMode = 3
)

TextureWrapMode enumeration from src/raylib.h:815

type Transform

type Transform struct {
	Translation Vector3
	Rotation    Vector4
	Scale       Vector3
}

func AllocTransform

func AllocTransform(cTranslation Vector3, cRotation Quaternion, cScale Vector3) (*Transform, *cgoAllocMap)

AllocTransform new Go object and Mapping to C object.

func NewTransform

func NewTransform(cTranslation Vector3, cRotation Quaternion, cScale Vector3) Transform

NewTransform new Go object and Mapping to C object.

func (*Transform) GC

func (x *Transform) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Transform) Index

func (x *Transform) Index(index int32) *Transform

Index reads Go data structure out from plain C format.

type Vector2

type Vector2 struct {
	X float32
	Y float32
}

func AllocVector2

func AllocVector2(cX float32, cY float32) (*Vector2, *cgoAllocMap)

AllocVector2 new Go object and Mapping to C object.

func GetGestureDragVector

func GetGestureDragVector() Vector2

GetGestureDragVector function as declared in src/raylib.h:1074

func GetGesturePinchVector

func GetGesturePinchVector() Vector2

GetGesturePinchVector function as declared in src/raylib.h:1076

func GetMonitorPosition

func GetMonitorPosition(monitor int32) Vector2

GetMonitorPosition function as declared in src/raylib.h:927

func GetMousePosition

func GetMousePosition() Vector2

GetMousePosition function as declared in src/raylib.h:1053

func GetScreenToWorld2D

func GetScreenToWorld2D(position Vector2, camera Camera2D) Vector2

GetScreenToWorld2D function as declared in src/raylib.h:967

func GetTouchPosition

func GetTouchPosition(index int32) Vector2

GetTouchPosition function as declared in src/raylib.h:1064

func GetWindowPosition

func GetWindowPosition() Vector2

GetWindowPosition function as declared in src/raylib.h:933

func GetWindowScaleDPI

func GetWindowScaleDPI() Vector2

GetWindowScaleDPI function as declared in src/raylib.h:934

func GetWorldToScreen

func GetWorldToScreen(position Vector3, camera Camera) Vector2

GetWorldToScreen function as declared in src/raylib.h:964

func GetWorldToScreen2D

func GetWorldToScreen2D(position Vector2, camera Camera2D) Vector2

GetWorldToScreen2D function as declared in src/raylib.h:966

func GetWorldToScreenEx

func GetWorldToScreenEx(position Vector3, camera Camera, width int32, height int32) Vector2

GetWorldToScreenEx function as declared in src/raylib.h:965

func GuiGrid

func GuiGrid(bounds Rectangle, spacing float32, subdivs int32) Vector2

GuiGrid function as declared in src/raygui.h:470

func MeasureTextEx

func MeasureTextEx(font Font, text string, fontSize float32, spacing float32) Vector2

MeasureTextEx function as declared in src/raylib.h:1285

func NewVector2

func NewVector2(cX float32, cY float32) Vector2

NewVector2 new Go object and Mapping to C object.

func Vector2Add

func Vector2Add(v1 Vector2, v2 Vector2) Vector2

Vector2Add function as declared in src/raymath.h:191

func Vector2AddValue

func Vector2AddValue(v Vector2, add float32) Vector2

Vector2AddValue function as declared in src/raymath.h:198

func Vector2Divide

func Vector2Divide(v1 Vector2, v2 Vector2) Vector2

Vector2Divide function as declared in src/raymath.h:276

func Vector2Lerp

func Vector2Lerp(v1 Vector2, v2 Vector2, amount float32) Vector2

Vector2Lerp function as declared in src/raymath.h:290

func Vector2MoveTowards

func Vector2MoveTowards(v Vector2, target Vector2, maxDistance float32) Vector2

Vector2MoveTowards function as declared in src/raymath.h:322

func Vector2Multiply

func Vector2Multiply(v1 Vector2, v2 Vector2) Vector2

Vector2Multiply function as declared in src/raymath.h:262

func Vector2Negate

func Vector2Negate(v Vector2) Vector2

Vector2Negate function as declared in src/raymath.h:269

func Vector2Normalize

func Vector2Normalize(v Vector2) Vector2

Vector2Normalize function as declared in src/raymath.h:283

func Vector2One

func Vector2One() Vector2

Vector2One function as declared in src/raymath.h:184

func Vector2Rotate

func Vector2Rotate(v Vector2, degs float32) Vector2

Vector2Rotate function as declared in src/raymath.h:314

func Vector2Scale

func Vector2Scale(v Vector2, scale float32) Vector2

Vector2Scale function as declared in src/raymath.h:255

func Vector2Subtract

func Vector2Subtract(v1 Vector2, v2 Vector2) Vector2

Vector2Subtract function as declared in src/raymath.h:205

func Vector2SubtractValue

func Vector2SubtractValue(v Vector2, sub float32) Vector2

Vector2SubtractValue function as declared in src/raymath.h:212

func Vector2Zero

func Vector2Zero() Vector2

Vector2Zero function as declared in src/raymath.h:177

func (*Vector2) GC

func (x *Vector2) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Vector2) Index

func (x *Vector2) Index(index int32) *Vector2

Index reads Go data structure out from plain C format.

type Vector3

type Vector3 struct {
	X float32
	Y float32
	Z float32
}

func AllocVector3

func AllocVector3(cX float32, cY float32, cZ float32) (*Vector3, *cgoAllocMap)

AllocVector3 new Go object and Mapping to C object.

func ColorToHSV

func ColorToHSV(color Color) Vector3

ColorToHSV function as declared in src/raylib.h:1248

func NewVector3

func NewVector3(cX float32, cY float32, cZ float32) Vector3

NewVector3 new Go object and Mapping to C object.

func QuaternionToEuler

func QuaternionToEuler(q Quaternion) Vector3

QuaternionToEuler function as declared in src/raymath.h:1457

func Vector3Add

func Vector3Add(v1 Vector3, v2 Vector3) Vector3

Vector3Add function as declared in src/raymath.h:358

func Vector3AddValue

func Vector3AddValue(v Vector3, add float32) Vector3

Vector3AddValue function as declared in src/raymath.h:365

func Vector3Barycenter

func Vector3Barycenter(p Vector3, a Vector3, b Vector3, c Vector3) Vector3

Vector3Barycenter function as declared in src/raymath.h:588

func Vector3CrossProduct

func Vector3CrossProduct(v1 Vector3, v2 Vector3) Vector3

Vector3CrossProduct function as declared in src/raymath.h:400

func Vector3Divide

func Vector3Divide(v1 Vector3, v2 Vector3) Vector3

Vector3Divide function as declared in src/raymath.h:471

func Vector3Lerp

func Vector3Lerp(v1 Vector3, v2 Vector3, amount float32) Vector3

Vector3Lerp function as declared in src/raymath.h:533

func Vector3Max

func Vector3Max(v1 Vector3, v2 Vector3) Vector3

Vector3Max function as declared in src/raymath.h:575

func Vector3Min

func Vector3Min(v1 Vector3, v2 Vector3) Vector3

Vector3Min function as declared in src/raymath.h:563

func Vector3Multiply

func Vector3Multiply(v1 Vector3, v2 Vector3) Vector3

Vector3Multiply function as declared in src/raymath.h:393

func Vector3Negate

func Vector3Negate(v Vector3) Vector3

Vector3Negate function as declared in src/raymath.h:464

func Vector3Normalize

func Vector3Normalize(v Vector3) Vector3

Vector3Normalize function as declared in src/raymath.h:478

func Vector3One

func Vector3One() Vector3

Vector3One function as declared in src/raymath.h:351

func Vector3Perpendicular

func Vector3Perpendicular(v Vector3) Vector3

Vector3Perpendicular function as declared in src/raymath.h:407

func Vector3Reflect

func Vector3Reflect(v Vector3, normal Vector3) Vector3

Vector3Reflect function as declared in src/raymath.h:545

func Vector3RotateByQuaternion

func Vector3RotateByQuaternion(v Vector3, q Quaternion) Vector3

Vector3RotateByQuaternion function as declared in src/raymath.h:521

func Vector3Scale

func Vector3Scale(v Vector3, scalar float32) Vector3

Vector3Scale function as declared in src/raymath.h:386

func Vector3Subtract

func Vector3Subtract(v1 Vector3, v2 Vector3) Vector3

Vector3Subtract function as declared in src/raymath.h:372

func Vector3SubtractValue

func Vector3SubtractValue(v Vector3, sub float32) Vector3

Vector3SubtractValue function as declared in src/raymath.h:379

func Vector3Transform

func Vector3Transform(v Vector3, mat Matrix) Vector3

Vector3Transform function as declared in src/raymath.h:506

func Vector3Zero

func Vector3Zero() Vector3

Vector3Zero function as declared in src/raymath.h:344

func (*Vector3) GC

func (x *Vector3) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Vector3) Index

func (x *Vector3) Index(index int32) *Vector3

Index reads Go data structure out from plain C format.

type Vector4

type Vector4 struct {
	X float32
	Y float32
	Z float32
	W float32
}

func AllocVector4

func AllocVector4(cX float32, cY float32, cZ float32, cW float32) (*Vector4, *cgoAllocMap)

AllocVector4 new Go object and Mapping to C object.

func ColorNormalize

func ColorNormalize(color Color) Vector4

ColorNormalize function as declared in src/raylib.h:1246

func NewVector4

func NewVector4(cX float32, cY float32, cZ float32, cW float32) Vector4

NewVector4 new Go object and Mapping to C object.

func (*Vector4) GC

func (x *Vector4) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Vector4) Index

func (x *Vector4) Index(index int32) *Vector4

Index reads Go data structure out from plain C format.

type VrDeviceInfo

type VrDeviceInfo struct {
	HResolution            int32
	VResolution            int32
	HScreenSize            float32
	VScreenSize            float32
	VScreenCenter          float32
	EyeToScreenDistance    float32
	LensSeparationDistance float32
	InterpupillaryDistance float32
	LensDistortionValues   [4]float32
	ChromaAbCorrection     [4]float32
}

func AllocVrDeviceInfo

func AllocVrDeviceInfo(cHResolution int32, cVResolution int32, cHScreenSize float32, cVScreenSize float32, cVScreenCenter float32, cEyeToScreenDistance float32, cLensSeparationDistance float32, cInterpupillaryDistance float32, cLensDistortionValues [4]float32, cChromaAbCorrection [4]float32) (*VrDeviceInfo, *cgoAllocMap)

AllocVrDeviceInfo new Go object and Mapping to C object.

func NewVrDeviceInfo

func NewVrDeviceInfo(cHResolution int32, cVResolution int32, cHScreenSize float32, cVScreenSize float32, cVScreenCenter float32, cEyeToScreenDistance float32, cLensSeparationDistance float32, cInterpupillaryDistance float32, cLensDistortionValues [4]float32, cChromaAbCorrection [4]float32) VrDeviceInfo

NewVrDeviceInfo new Go object and Mapping to C object.

func (*VrDeviceInfo) GC

func (x *VrDeviceInfo) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*VrDeviceInfo) Index

func (x *VrDeviceInfo) Index(index int32) *VrDeviceInfo

Index reads Go data structure out from plain C format.

type Wave

type Wave struct {
	SampleCount uint32
	SampleRate  uint32
	SampleSize  uint32
	Channels    uint32
	Data        unsafe.Pointer
}

func AllocWave

func AllocWave(cSampleCount uint32, cSampleRate uint32, cSampleSize uint32, cChannels uint32, cData unsafe.Pointer) (*Wave, *cgoAllocMap)

AllocWave new Go object and Mapping to C object.

func LoadWave

func LoadWave(fileName string) Wave

LoadWave function as declared in src/raylib.h:1467

func LoadWaveFromMemory

func LoadWaveFromMemory(fileType string, fileData []byte, dataSize int32) Wave

LoadWaveFromMemory function as declared in src/raylib.h:1468

func NewWave

func NewWave(cSampleCount uint32, cSampleRate uint32, cSampleSize uint32, cChannels uint32, cData unsafe.Pointer) Wave

NewWave new Go object and Mapping to C object.

func WaveCopy

func WaveCopy(wave Wave) Wave

WaveCopy function as declared in src/raylib.h:1489

func (*Wave) GC

func (x *Wave) GC(a *cgoAllocMap, args ...*cgoAllocMap)

GC is register for garbage collection.

func (*Wave) Index

func (x *Wave) Index(index int32) *Wave

Index reads Go data structure out from plain C format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL