Documentation ¶
Overview ¶
Package raylib provides Go bindings for Raylib.
Package raygui provides Go bindings for Raygui.
Index ¶
- Constants
- Variables
- func BeginBlendMode(mode int32)
- func BeginDrawing()
- func BeginMode2D(camera Camera2D)
- func BeginMode3D(camera Camera3D)
- func BeginScissorMode(x int32, y int32, width int32, height int32)
- func BeginShaderMode(shader Shader)
- func BeginTextureMode(target RenderTexture2D)
- func BeginVrDrawing()
- func ChangeDirectory(dir string) bool
- func CheckCollisionBoxSphere(box BoundingBox, center Vector3, radius float32) bool
- func CheckCollisionBoxes(box1 BoundingBox, box2 BoundingBox) bool
- func CheckCollisionCircleRec(center Vector2, radius float32, rec Rectangle) bool
- func CheckCollisionCircles(center1 Vector2, radius1 float32, center2 Vector2, radius2 float32) bool
- func CheckCollisionLines(startPos1 Vector2, endPos1 Vector2, startPos2 Vector2, endPos2 Vector2, ...) bool
- func CheckCollisionPointCircle(point Vector2, center Vector2, radius float32) bool
- func CheckCollisionPointRec(point Vector2, rec Rectangle) bool
- func CheckCollisionPointTriangle(point Vector2, p1 Vector2, p2 Vector2, p3 Vector2) bool
- func CheckCollisionRayBox(ray Ray, box BoundingBox) bool
- func CheckCollisionRaySphere(ray Ray, center Vector3, radius float32) bool
- func CheckCollisionRaySphereEx(ray Ray, center Vector3, radius float32, collisionPoint *Vector3) bool
- func CheckCollisionRecs(rec1 Rectangle, rec2 Rectangle) bool
- func CheckCollisionSpheres(center1 Vector3, radius1 float32, center2 Vector3, radius2 float32) bool
- func Clamp(value float32, min float32, max float32) float32
- func ClearBackground(color Color)
- func ClearDirectoryFiles()
- func ClearDroppedFiles()
- func ClearWindowState(flags uint32)
- func CloseAudioDevice()
- func CloseAudioStream(stream AudioStream)
- func CloseVrSimulator()
- func CloseWindow()
- func CodepointToUtf8(codepoint int32, byteLength *int32) string
- func ColorToInt(color Color) int32
- func CompressData(data *byte, dataLength int32, compDataLength *int32) *byte
- func DecompressData(compData *byte, compDataLength int32, dataLength *int32) *byte
- func DirectoryExists(dirPath string) bool
- func DisableCursor()
- func DrawBillboard(camera Camera, texture Texture2D, center Vector3, size float32, tint Color)
- func DrawBillboardRec(camera Camera, texture Texture2D, source Rectangle, center Vector3, ...)
- func DrawBoundingBox(box BoundingBox, color Color)
- func DrawCircle(centerX int32, centerY int32, radius float32, color Color)
- func DrawCircle3D(center Vector3, radius float32, rotationAxis Vector3, rotationAngle float32, ...)
- func DrawCircleGradient(centerX int32, centerY int32, radius float32, color1 Color, color2 Color)
- func DrawCircleLines(centerX int32, centerY int32, radius float32, color Color)
- func DrawCircleSector(center Vector2, radius float32, startAngle int32, endAngle int32, ...)
- func DrawCircleSectorLines(center Vector2, radius float32, startAngle int32, endAngle int32, ...)
- func DrawCircleV(center Vector2, radius float32, color Color)
- func DrawCube(position Vector3, width float32, height float32, length float32, color Color)
- func DrawCubeTexture(texture Texture2D, position Vector3, width float32, height float32, ...)
- func DrawCubeV(position Vector3, size Vector3, color Color)
- func DrawCubeWires(position Vector3, width float32, height float32, length float32, color Color)
- func DrawCubeWiresV(position Vector3, size Vector3, color Color)
- func DrawCylinder(position Vector3, radiusTop float32, radiusBottom float32, height float32, ...)
- func DrawCylinderWires(position Vector3, radiusTop float32, radiusBottom float32, height float32, ...)
- func DrawEllipse(centerX int32, centerY int32, radiusH float32, radiusV float32, color Color)
- func DrawEllipseLines(centerX int32, centerY int32, radiusH float32, radiusV float32, color Color)
- func DrawFPS(posX int32, posY int32)
- func DrawGizmo(position Vector3)
- func DrawGrid(slices int32, spacing float32)
- func DrawLine(startPosX int32, startPosY int32, endPosX int32, endPosY int32, color Color)
- func DrawLine3D(startPos Vector3, endPos Vector3, color Color)
- func DrawLineBezier(startPos Vector2, endPos Vector2, thick float32, color Color)
- func DrawLineBezierQuad(startPos Vector2, endPos Vector2, controlPos Vector2, thick float32, ...)
- func DrawLineEx(startPos Vector2, endPos Vector2, thick float32, color Color)
- func DrawLineStrip(points *Vector2, pointsCount int32, color Color)
- func DrawLineV(startPos Vector2, endPos Vector2, color Color)
- func DrawModel(model Model, position Vector3, scale float32, tint Color)
- func DrawModelEx(model Model, position Vector3, rotationAxis Vector3, rotationAngle float32, ...)
- func DrawModelWires(model Model, position Vector3, scale float32, tint Color)
- func DrawModelWiresEx(model Model, position Vector3, rotationAxis Vector3, rotationAngle float32, ...)
- func DrawPixel(posX int32, posY int32, color Color)
- func DrawPixelV(position Vector2, color Color)
- func DrawPlane(centerPos Vector3, size Vector2, color Color)
- func DrawPoint3D(position Vector3, color Color)
- func DrawPoly(center Vector2, sides int32, radius float32, rotation float32, color Color)
- func DrawPolyLines(center Vector2, sides int32, radius float32, rotation float32, color Color)
- func DrawRay(ray Ray, color Color)
- func DrawRectangle(posX int32, posY int32, width int32, height int32, color Color)
- func DrawRectangleGradientEx(rec Rectangle, col1 Color, col2 Color, col3 Color, col4 Color)
- func DrawRectangleGradientH(posX int32, posY int32, width int32, height int32, color1 Color, color2 Color)
- func DrawRectangleGradientV(posX int32, posY int32, width int32, height int32, color1 Color, color2 Color)
- func DrawRectangleLines(posX int32, posY int32, width int32, height int32, color Color)
- func DrawRectangleLinesEx(rec Rectangle, lineThick int32, color Color)
- func DrawRectanglePro(rec Rectangle, origin Vector2, rotation float32, color Color)
- func DrawRectangleRec(rec Rectangle, color Color)
- func DrawRectangleRounded(rec Rectangle, roundness float32, segments int32, color Color)
- func DrawRectangleRoundedLines(rec Rectangle, roundness float32, segments int32, lineThick int32, color Color)
- func DrawRectangleV(position Vector2, size Vector2, color Color)
- func DrawRing(center Vector2, innerRadius float32, outerRadius float32, startAngle int32, ...)
- func DrawRingLines(center Vector2, innerRadius float32, outerRadius float32, startAngle int32, ...)
- func DrawSphere(centerPos Vector3, radius float32, color Color)
- func DrawSphereEx(centerPos Vector3, radius float32, rings int32, slices int32, color Color)
- func DrawSphereWires(centerPos Vector3, radius float32, rings int32, slices int32, color Color)
- func DrawText(text string, posX int32, posY int32, fontSize int32, color Color)
- func DrawTextCodepoint(font Font, codepoint int32, position Vector2, fontSize float32, tint Color)
- func DrawTextEx(font Font, text string, position Vector2, fontSize float32, spacing float32, ...)
- func DrawTextRec(font Font, text string, rec Rectangle, fontSize float32, spacing float32, ...)
- func DrawTextRecEx(font Font, text string, rec Rectangle, fontSize float32, spacing float32, ...)
- func DrawTexture(texture Texture2D, posX int32, posY int32, tint Color)
- func DrawTextureEx(texture Texture2D, position Vector2, rotation float32, scale float32, ...)
- func DrawTextureNPatch(texture Texture2D, nPatchInfo NPatchInfo, dest Rectangle, origin Vector2, ...)
- func DrawTexturePro(texture Texture2D, source Rectangle, dest Rectangle, origin Vector2, ...)
- func DrawTextureQuad(texture Texture2D, tiling Vector2, offset Vector2, quad Rectangle, tint Color)
- func DrawTextureRec(texture Texture2D, source Rectangle, position Vector2, tint Color)
- func DrawTextureTiled(texture Texture2D, source Rectangle, dest Rectangle, origin Vector2, ...)
- func DrawTextureV(texture Texture2D, position Vector2, tint Color)
- func DrawTriangle(v1 Vector2, v2 Vector2, v3 Vector2, color Color)
- func DrawTriangle3D(v1 Vector3, v2 Vector3, v3 Vector3, color Color)
- func DrawTriangleFan(points *Vector2, pointsCount int32, color Color)
- func DrawTriangleLines(v1 Vector2, v2 Vector2, v3 Vector2, color Color)
- func DrawTriangleStrip(points *Vector2, pointsCount int32, color Color)
- func DrawTriangleStrip3D(points *Vector3, pointsCount int32, color Color)
- func EaseBackIn(t float32, b float32, c float32, d float32) float32
- func EaseBackInOut(t float32, b float32, c float32, d float32) float32
- func EaseBackOut(t float32, b float32, c float32, d float32) float32
- func EaseBounceIn(t float32, b float32, c float32, d float32) float32
- func EaseBounceInOut(t float32, b float32, c float32, d float32) float32
- func EaseBounceOut(t float32, b float32, c float32, d float32) float32
- func EaseCircIn(t float32, b float32, c float32, d float32) float32
- func EaseCircInOut(t float32, b float32, c float32, d float32) float32
- func EaseCircOut(t float32, b float32, c float32, d float32) float32
- func EaseCubicIn(t float32, b float32, c float32, d float32) float32
- func EaseCubicInOut(t float32, b float32, c float32, d float32) float32
- func EaseCubicOut(t float32, b float32, c float32, d float32) float32
- func EaseElasticIn(t float32, b float32, c float32, d float32) float32
- func EaseElasticInOut(t float32, b float32, c float32, d float32) float32
- func EaseElasticOut(t float32, b float32, c float32, d float32) float32
- func EaseExpoIn(t float32, b float32, c float32, d float32) float32
- func EaseExpoInOut(t float32, b float32, c float32, d float32) float32
- func EaseExpoOut(t float32, b float32, c float32, d float32) float32
- func EaseLinearIn(t float32, b float32, c float32, d float32) float32
- func EaseLinearInOut(t float32, b float32, c float32, d float32) float32
- func EaseLinearNone(t float32, b float32, c float32, d float32) float32
- func EaseLinearOut(t float32, b float32, c float32, d float32) float32
- func EaseQuadIn(t float32, b float32, c float32, d float32) float32
- func EaseQuadInOut(t float32, b float32, c float32, d float32) float32
- func EaseQuadOut(t float32, b float32, c float32, d float32) float32
- func EaseSineIn(t float32, b float32, c float32, d float32) float32
- func EaseSineInOut(t float32, b float32, c float32, d float32) float32
- func EaseSineOut(t float32, b float32, c float32, d float32) float32
- func EnableCursor()
- func EndBlendMode()
- func EndDrawing()
- func EndMode2D()
- func EndMode3D()
- func EndScissorMode()
- func EndShaderMode()
- func EndTextureMode()
- func EndVrDrawing()
- func ExportImage(image Image, fileName string) bool
- func ExportImageAsCode(image Image, fileName string) bool
- func ExportMesh(mesh Mesh, fileName string) bool
- func ExportWave(wave Wave, fileName string) bool
- func ExportWaveAsCode(wave Wave, fileName string) bool
- func FileExists(fileName string) bool
- func GenTextureMipmaps(texture *Texture2D)
- func GetCharPressed() int32
- func GetClipboardText() string
- func GetCodepoints(text string, count *int32) *int32
- func GetCodepointsCount(text string) int32
- func GetCurrentMonitor() int32
- func GetDirectoryFiles(dirPath string, count *int32) **byte
- func GetDirectoryPath(filePath string) string
- func GetDroppedFiles(count *int32) **byte
- func GetFPS() int32
- func GetFileExtension(fileName string) string
- func GetFileModTime(fileName string) int
- func GetFileName(filePath string) string
- func GetFileNameWithoutExt(filePath string) string
- func GetFrameTime() float32
- func GetGamepadAxisCount(gamepad int32) int32
- func GetGamepadAxisMovement(gamepad int32, axis int32) float32
- func GetGamepadButtonPressed() int32
- func GetGamepadName(gamepad int32) string
- func GetGestureDetected() int32
- func GetGestureDragAngle() float32
- func GetGestureHoldDuration() float32
- func GetGesturePinchAngle() float32
- func GetGlyphIndex(font Font, codepoint int32) int32
- func GetKeyPressed() int32
- func GetMonitorCount() int32
- func GetMonitorHeight(monitor int32) int32
- func GetMonitorName(monitor int32) string
- func GetMonitorPhysicalHeight(monitor int32) int32
- func GetMonitorPhysicalWidth(monitor int32) int32
- func GetMonitorRefreshRate(monitor int32) int32
- func GetMonitorWidth(monitor int32) int32
- func GetMouseCursor() int32
- func GetMouseWheelMove() float32
- func GetMouseX() int32
- func GetMouseY() int32
- func GetMusicTimeLength(music Music) float32
- func GetMusicTimePlayed(music Music) float32
- func GetNextCodepoint(text string, bytesProcessed *int32) int32
- func GetPixelDataSize(width int32, height int32, format int32) int32
- func GetPrevDirectoryPath(dirPath string) string
- func GetRandomValue(min int32, max int32) int32
- func GetScreenHeight() int32
- func GetScreenWidth() int32
- func GetShaderLocation(shader Shader, uniformName string) int32
- func GetShaderLocationAttrib(shader Shader, attribName string) int32
- func GetSoundsPlaying() int32
- func GetTime() float64
- func GetTouchPointsCount() int32
- func GetTouchX() int32
- func GetTouchY() int32
- func GetWindowHandle() unsafe.Pointer
- func GetWorkingDirectory() string
- func GuiButton(bounds Rectangle, text string) bool
- func GuiCheckBox(bounds Rectangle, text string, checked bool) bool
- func GuiClearTooltip()
- func GuiColorBarAlpha(bounds Rectangle, alpha float32) float32
- func GuiColorBarHue(bounds Rectangle, value float32) float32
- func GuiComboBox(bounds Rectangle, text string, active int32) int32
- func GuiDisable()
- func GuiDisableTooltip()
- func GuiDropdownBox(bounds Rectangle, text string, active *int32, editMode bool) bool
- func GuiDummyRec(bounds Rectangle, text string)
- func GuiEnable()
- func GuiEnableTooltip()
- func GuiFade(alpha float32)
- func GuiGetState() int32
- func GuiGetStyle(control int32, property int32) int32
- func GuiGroupBox(bounds Rectangle, text string)
- func GuiIconText(iconId int32, text string) string
- func GuiImageButton(bounds Rectangle, text string, texture Texture2D) bool
- func GuiImageButtonEx(bounds Rectangle, text string, texture Texture2D, texSource Rectangle) bool
- func GuiLabel(bounds Rectangle, text string)
- func GuiLabelButton(bounds Rectangle, text string) bool
- func GuiLine(bounds Rectangle, text string)
- func GuiListView(bounds Rectangle, text string, scrollIndex *int32, active int32) int32
- func GuiListViewEx(bounds Rectangle, text *MultiText, count int32, focus *int32, ...) int32
- func GuiLoadStyle(fileName string)
- func GuiLoadStyleDefault()
- func GuiLock()
- func GuiMessageBox(bounds Rectangle, title string, message string, buttons string) int32
- func GuiPanel(bounds Rectangle)
- func GuiProgressBar(bounds Rectangle, textLeft string, textRight string, value float32, ...) float32
- func GuiScrollBar(bounds Rectangle, value int32, minValue int32, maxValue int32) int32
- func GuiSetFont(font Font)
- func GuiSetState(state int32)
- func GuiSetStyle(control int32, property int32, value int32)
- func GuiSetTooltip(tooltip string)
- func GuiSlider(bounds Rectangle, textLeft string, textRight string, value float32, ...) float32
- func GuiSliderBar(bounds Rectangle, textLeft string, textRight string, value float32, ...) float32
- func GuiSliderPro(bounds Rectangle, textLeft string, textRight string, value float32, ...) float32
- func GuiSpinner(bounds Rectangle, text string, value *int32, minValue int32, maxValue int32, ...) bool
- func GuiStatusBar(bounds Rectangle, text string)
- func GuiTextBox(bounds Rectangle, text *byte, textSize int32, editMode bool) bool
- func GuiTextBoxMulti(bounds Rectangle, text *byte, textSize int32, editMode bool) bool
- func GuiTextInputBox(bounds Rectangle, title string, message string, buttons string, text *byte) int32
- func GuiToggle(bounds Rectangle, text string, active bool) bool
- func GuiToggleGroup(bounds Rectangle, text string, active int32) int32
- func GuiUnlock()
- func GuiValueBox(bounds Rectangle, text string, value *int32, minValue int32, maxValue int32, ...) bool
- func GuiWindowBox(bounds Rectangle, title string) bool
- func HideCursor()
- func ImageAlphaClear(image *Image, color Color, threshold float32)
- func ImageAlphaCrop(image *Image, threshold float32)
- func ImageAlphaMask(image *Image, alphaMask Image)
- func ImageAlphaPremultiply(image *Image)
- func ImageClearBackground(dst *Image, color Color)
- func ImageColorBrightness(image *Image, brightness int32)
- func ImageColorContrast(image *Image, contrast float32)
- func ImageColorGrayscale(image *Image)
- func ImageColorInvert(image *Image)
- func ImageColorReplace(image *Image, color Color, replace Color)
- func ImageColorTint(image *Image, color Color)
- func ImageCrop(image *Image, crop Rectangle)
- func ImageDither(image *Image, rBpp int32, gBpp int32, bBpp int32, aBpp int32)
- func ImageDraw(dst *Image, src Image, srcRec Rectangle, dstRec Rectangle, tint Color)
- func ImageDrawCircle(dst *Image, centerX int32, centerY int32, radius int32, color Color)
- func ImageDrawCircleV(dst *Image, center Vector2, radius int32, color Color)
- func ImageDrawLine(dst *Image, startPosX int32, startPosY int32, endPosX int32, endPosY int32, ...)
- func ImageDrawLineV(dst *Image, start Vector2, end Vector2, color Color)
- func ImageDrawPixel(dst *Image, posX int32, posY int32, color Color)
- func ImageDrawPixelV(dst *Image, position Vector2, color Color)
- func ImageDrawRectangle(dst *Image, posX int32, posY int32, width int32, height int32, color Color)
- func ImageDrawRectangleLines(dst *Image, rec Rectangle, thick int32, color Color)
- func ImageDrawRectangleRec(dst *Image, rec Rectangle, color Color)
- func ImageDrawRectangleV(dst *Image, position Vector2, size Vector2, color Color)
- func ImageDrawText(dst *Image, text string, posX int32, posY int32, fontSize int32, color Color)
- func ImageDrawTextEx(dst *Image, font Font, text string, position Vector2, fontSize float32, ...)
- func ImageFlipHorizontal(image *Image)
- func ImageFlipVertical(image *Image)
- func ImageFormat(image *Image, newFormat int32)
- func ImageMipmaps(image *Image)
- func ImageResize(image *Image, newWidth int32, newHeight int32)
- func ImageResizeCanvas(image *Image, newWidth int32, newHeight int32, offsetX int32, offsetY int32, ...)
- func ImageResizeNN(image *Image, newWidth int32, newHeight int32)
- func ImageRotateCCW(image *Image)
- func ImageRotateCW(image *Image)
- func ImageToPOT(image *Image, fill Color)
- func InitAudioDevice()
- func InitVrSimulator()
- func InitWindow(width int32, height int32, title string)
- func IsAudioDeviceReady() bool
- func IsAudioStreamPlaying(stream AudioStream) bool
- func IsAudioStreamProcessed(stream AudioStream) bool
- func IsCursorHidden() bool
- func IsCursorOnScreen() bool
- func IsFileDropped() bool
- func IsFileExtension(fileName string, ext string) bool
- func IsGamepadAvailable(gamepad int32) bool
- func IsGamepadButtonDown(gamepad int32, button int32) bool
- func IsGamepadButtonPressed(gamepad int32, button int32) bool
- func IsGamepadButtonReleased(gamepad int32, button int32) bool
- func IsGamepadButtonUp(gamepad int32, button int32) bool
- func IsGamepadName(gamepad int32, name string) bool
- func IsGestureDetected(gesture int32) bool
- func IsKeyDown(key int32) bool
- func IsKeyPressed(key int32) bool
- func IsKeyReleased(key int32) bool
- func IsKeyUp(key int32) bool
- func IsModelAnimationValid(model Model, anim ModelAnimation) bool
- func IsMouseButtonDown(button int32) bool
- func IsMouseButtonPressed(button int32) bool
- func IsMouseButtonReleased(button int32) bool
- func IsMouseButtonUp(button int32) bool
- func IsMusicPlaying(music Music) bool
- func IsSoundPlaying(sound Sound) bool
- func IsVrSimulatorReady() bool
- func IsWindowFocused() bool
- func IsWindowFullscreen() bool
- func IsWindowHidden() bool
- func IsWindowMaximized() bool
- func IsWindowMinimized() bool
- func IsWindowReady() bool
- func IsWindowResized() bool
- func IsWindowState(flag uint32) bool
- func Lerp(start float32, end float32, amount float32) float32
- func LoadFileData(fileName string, bytesRead *uint32) *byte
- func LoadFileText(fileName string) *byte
- func LoadStorageValue(position uint32) int32
- func LoadWaveSamples(wave Wave) *float32
- func MatrixDeterminant(mat Matrix) float32
- func MaximizeWindow()
- func MeasureText(text string, fontSize int32) int32
- func MemAlloc(size int32) unsafe.Pointer
- func MemFree(ptr unsafe.Pointer)
- func MeshBinormals(mesh *Mesh)
- func MeshNormalsSmooth(mesh *Mesh)
- func MeshTangents(mesh *Mesh)
- func MinimizeWindow()
- func NewBytes(str string, count int) []byte
- func Normalize(value float32, start float32, end float32) float32
- func OpenURL(url string)
- func PauseAudioStream(stream AudioStream)
- func PauseMusicStream(music Music)
- func PauseSound(sound Sound)
- func PlayAudioStream(stream AudioStream)
- func PlayMusicStream(music Music)
- func PlaySound(sound Sound)
- func PlaySoundMulti(sound Sound)
- func QuaternionLength(q Quaternion) float32
- func QuaternionToAxisAngle(q Quaternion, outAxis *Vector3, outAngle *float32)
- func Remap(value float32, inputStart float32, inputEnd float32, outputStart float32, ...) float32
- func RestoreWindow()
- func ResumeAudioStream(stream AudioStream)
- func ResumeMusicStream(music Music)
- func ResumeSound(sound Sound)
- func SaveFileData(fileName string, data unsafe.Pointer, bytesToWrite uint32) bool
- func SaveFileText(fileName string, text *byte) bool
- func SaveStorageValue(position uint32, value int32) bool
- func SetAudioStreamBufferSizeDefault(size int32)
- func SetAudioStreamPitch(stream AudioStream, pitch float32)
- func SetAudioStreamVolume(stream AudioStream, volume float32)
- func SetCameraAltControl(keyAlt int32)
- func SetCameraMode(camera Camera, mode int32)
- func SetCameraMoveControls(keyFront int32, keyBack int32, keyRight int32, keyLeft int32, keyUp int32, ...)
- func SetCameraPanControl(keyPan int32)
- func SetCameraSmoothZoomControl(keySmoothZoom int32)
- func SetClipboardText(text string)
- func SetConfigFlags(flags uint32)
- func SetExitKey(key int32)
- func SetGesturesEnabled(gestureFlags uint32)
- func SetMasterVolume(volume float32)
- func SetMaterialTexture(material *Material, mapType int32, texture Texture2D)
- func SetMatrixModelview(view Matrix)
- func SetMatrixProjection(proj Matrix)
- func SetModelMeshMaterial(model *Model, meshId int32, materialId int32)
- func SetMouseCursor(cursor int32)
- func SetMouseOffset(offsetX int32, offsetY int32)
- func SetMousePosition(x int32, y int32)
- func SetMouseScale(scaleX float32, scaleY float32)
- func SetMusicPitch(music Music, pitch float32)
- func SetMusicVolume(music Music, volume float32)
- func SetPixelColor(dstPtr unsafe.Pointer, color Color, format int32)
- func SetShaderValue(shader Shader, uniformLoc int32, value unsafe.Pointer, uniformType int32)
- func SetShaderValueMatrix(shader Shader, uniformLoc int32, mat Matrix)
- func SetShaderValueTexture(shader Shader, uniformLoc int32, texture Texture2D)
- func SetShaderValueV(shader Shader, uniformLoc int32, value unsafe.Pointer, uniformType int32, ...)
- func SetShapesTexture(texture Texture2D, source Rectangle)
- func SetSoundPitch(sound Sound, pitch float32)
- func SetSoundVolume(sound Sound, volume float32)
- func SetTargetFPS(fps int32)
- func SetTextureFilter(texture Texture2D, filterMode int32)
- func SetTextureWrap(texture Texture2D, wrapMode int32)
- func SetVrConfiguration(info VrDeviceInfo, distortion Shader)
- func SetWindowIcon(image Image)
- func SetWindowMinSize(width int32, height int32)
- func SetWindowMonitor(monitor int32)
- func SetWindowPosition(x int32, y int32)
- func SetWindowSize(width int32, height int32)
- func SetWindowState(flags uint32)
- func SetWindowTitle(title string)
- func ShowCursor()
- func StopAudioStream(stream AudioStream)
- func StopMusicStream(music Music)
- func StopSound(sound Sound)
- func StopSoundMulti()
- func TakeScreenshot(fileName string)
- func TextAppend(text *byte, append string, position *int32)
- func TextCopy(dst *byte, src string) int32
- func TextFindIndex(text string, find string) int32
- func TextInsert(text string, insert string, position int32) *byte
- func TextIsEqual(text1 string, text2 string) bool
- func TextJoin(textList *MultiText, count int32, delimiter string) string
- func TextLength(text string) uint32
- func TextReplace(text *byte, replace string, by string) *byte
- func TextSplit(text string, delimiter byte, count *int32) *string
- func TextSubtext(text string, position int32, length int32) string
- func TextToInteger(text string) int32
- func TextToLower(text string) string
- func TextToPascal(text string) string
- func TextToUpper(text string) string
- func TextToUtf8(codepoints *int32, length int32) *byte
- func ToBool(i interface{}) bool
- func ToInt32(i interface{}) int32
- func ToString(i interface{}, index int32) (raw string)
- func ToggleFullscreen()
- func ToggleVrMode()
- func UnloadColors(color *Color)
- func UnloadFileData(data *byte)
- func UnloadFileText(text *byte)
- func UnloadFont(font Font)
- func UnloadFontData(chars *CharInfo, charsCount int32)
- func UnloadImage(image Image)
- func UnloadImageColors(colors *Color)
- func UnloadImagePalette(colors *Color)
- func UnloadMaterial(material Material)
- func UnloadMesh(mesh Mesh)
- func UnloadModel(model Model)
- func UnloadModelAnimation(anim ModelAnimation)
- func UnloadModelKeepMeshes(model Model)
- func UnloadMusicStream(music Music)
- func UnloadRenderTexture(target RenderTexture2D)
- func UnloadShader(shader Shader)
- func UnloadSound(sound Sound)
- func UnloadTexture(texture Texture2D)
- func UnloadWave(wave Wave)
- func UnloadWaveSamples(samples *float32)
- func UpdateAudioStream(stream AudioStream, data unsafe.Pointer, samplesCount int32)
- func UpdateCamera(camera *Camera)
- func UpdateModelAnimation(model Model, anim ModelAnimation, frame int32)
- func UpdateMusicStream(music Music)
- func UpdateSound(sound Sound, data unsafe.Pointer, samplesCount int32)
- func UpdateTexture(texture Texture2D, pixels unsafe.Pointer)
- func UpdateTextureRec(texture Texture2D, rec Rectangle, pixels unsafe.Pointer)
- func UpdateVrTracking(camera *Camera)
- func Vector2Angle(v1 Vector2, v2 Vector2) float32
- func Vector2Distance(v1 Vector2, v2 Vector2) float32
- func Vector2DotProduct(v1 Vector2, v2 Vector2) float32
- func Vector2Length(v Vector2) float32
- func Vector2LengthSqr(v Vector2) float32
- func Vector3Distance(v1 Vector3, v2 Vector3) float32
- func Vector3DotProduct(v1 Vector3, v2 Vector3) float32
- func Vector3Length(v Vector3) float32
- func Vector3LengthSqr(v Vector3) float32
- func Vector3OrthoNormalize(v1 *Vector3, v2 *Vector3)
- func WaveCrop(wave *Wave, initSample int32, finalSample int32)
- func WaveFormat(wave *Wave, sampleRate int32, sampleSize int32, channels int32)
- func WindowShouldClose() bool
- type AndroidButton
- type AudioStream
- type BlendMode
- type BoneInfo
- type BoundingBox
- type Camera
- type Camera2D
- type Camera3D
- type CameraMode
- type CameraType
- type CharInfo
- func AllocCharInfo(cValue int32, cOffsetX int32, cOffsetY int32, cAdvanceX int32, cImage Image) (*CharInfo, *cgoAllocMap)
- func LoadFontData(fileData *byte, dataSize int32, fontSize int32, fontChars *int32, ...) *CharInfo
- func NewCharInfo(cValue int32, cOffsetX int32, cOffsetY int32, cAdvanceX int32, cImage Image) CharInfo
- type Color
- func AllocColor(cR byte, cG byte, cB byte, cA byte) (*Color, *cgoAllocMap)
- func ColorAlpha(color Color, alpha float32) Color
- func ColorAlphaBlend(dst Color, src Color, tint Color) Color
- func ColorFromHSV(hue float32, saturation float32, value float32) Color
- func ColorFromNormalized(normalized Vector4) Color
- func CreateColor(r, g, b, a uint8) Color
- func Fade(color Color, alpha float32) Color
- func GetColor(hexValue int32) Color
- func GetPixelColor(srcPtr unsafe.Pointer, format int32) Color
- func GuiColorPanel(bounds Rectangle, color Color) Color
- func GuiColorPanelEx(bounds Rectangle, color Color, hue float32) Color
- func GuiColorPicker(bounds Rectangle, color Color) Color
- func LoadImageColors(image Image) *Color
- func LoadImagePalette(image Image, maxPaletteSize int32, colorsCount *int32) *Color
- func NewColor(cR byte, cG byte, cB byte, cA byte) Color
- type ConfigFlag
- type CubemapLayoutType
- type Font
- func AllocFont(cBaseSize int32, cCharsCount int32, cCharsPadding int32, cTexture Texture2D, ...) (*Font, *cgoAllocMap)
- func GetFontDefault() Font
- func GuiGetFont() Font
- func LoadFont(fileName string) Font
- func LoadFontEx(fileName string, fontSize int32, fontChars *int32, charsCount int32) Font
- func LoadFontFromImage(image Image, key Color, firstChar int32) Font
- func LoadFontFromMemory(fileType string, fileData []byte, dataSize int32, fontSize int32, ...) Font
- func NewFont(cBaseSize int32, cCharsCount int32, cCharsPadding int32, cTexture Texture2D, ...) Font
- type FontType
- type GamepadAxis
- type GamepadButton
- type GamepadNumber
- type GestureType
- type GuiCheckBoxProperty
- type GuiColorPickerProperty
- type GuiComboBoxProperty
- type GuiControl
- type GuiControlProperty
- type GuiControlState
- type GuiDefaultProperty
- type GuiDropdownBoxProperty
- type GuiIconName
- type GuiListViewProperty
- type GuiProgressBarProperty
- type GuiScrollBarProperty
- type GuiScrollBarSide
- type GuiSliderProperty
- type GuiSpinnerProperty
- type GuiStyleProp
- type GuiTextAlignment
- type GuiTextBoxProperty
- type GuiToggleProperty
- type Image
- func AllocImage(cData unsafe.Pointer, cWidth int32, cHeight int32, cMipmaps int32, ...) (*Image, *cgoAllocMap)
- func GenImageCellular(width int32, height int32, tileSize int32) Image
- func GenImageChecked(width int32, height int32, checksX int32, checksY int32, col1 Color, ...) Image
- func GenImageColor(width int32, height int32, color Color) Image
- func GenImageFontAtlas(chars *CharInfo, recs **Rectangle, charsCount int32, fontSize int32, ...) Image
- func GenImageGradientH(width int32, height int32, left Color, right Color) Image
- func GenImageGradientRadial(width int32, height int32, density float32, inner Color, outer Color) Image
- func GenImageGradientV(width int32, height int32, top Color, bottom Color) Image
- func GenImagePerlinNoise(width int32, height int32, offsetX int32, offsetY int32, scale float32) Image
- func GenImageWhiteNoise(width int32, height int32, factor float32) Image
- func GetScreenData() Image
- func GetTextureData(texture Texture2D) Image
- func ImageCopy(image Image) Image
- func ImageFromImage(image Image, rec Rectangle) Image
- func ImageText(text string, fontSize int32, color Color) Image
- func ImageTextEx(font Font, text string, fontSize float32, spacing float32, tint Color) Image
- func LoadImage(fileName string) Image
- func LoadImageAnim(fileName string, frames *int32) Image
- func LoadImageFromMemory(fileType string, fileData []byte, dataSize int32) Image
- func LoadImageRaw(fileName string, width int32, height int32, format int32, headerSize int32) Image
- func NewImage(cData unsafe.Pointer, cWidth int32, cHeight int32, cMipmaps int32, ...) Image
- type KeyboardKey
- type Material
- type MaterialMap
- type MaterialMapType
- type Matrix
- func AllocMatrix(cM0 float32, cM4 float32, cM8 float32, cM12 float32, cM1 float32, cM5 float32, ...) (*Matrix, *cgoAllocMap)
- func GetCameraMatrix(camera Camera) Matrix
- func GetCameraMatrix2D(camera Camera2D) Matrix
- func GetMatrixModelview() Matrix
- func GetMatrixProjection() Matrix
- func MatrixAdd(left Matrix, right Matrix) Matrix
- func MatrixFrustum(left float64, right float64, bottom float64, top float64, near float64, ...) Matrix
- func MatrixIdentity() Matrix
- func MatrixInvert(mat Matrix) Matrix
- func MatrixLookAt(eye Vector3, target Vector3, up Vector3) Matrix
- func MatrixMultiply(left Matrix, right Matrix) Matrix
- func MatrixNormalize(mat Matrix) Matrix
- func MatrixOrtho(left float64, right float64, bottom float64, top float64, near float64, ...) Matrix
- func MatrixPerspective(fovy float64, aspect float64, near float64, far float64) Matrix
- func MatrixRotate(axis Vector3, angle float32) Matrix
- func MatrixRotateX(angle float32) Matrix
- func MatrixRotateXYZ(ang Vector3) Matrix
- func MatrixRotateY(angle float32) Matrix
- func MatrixRotateZ(angle float32) Matrix
- func MatrixScale(x float32, y float32, z float32) Matrix
- func MatrixSubtract(left Matrix, right Matrix) Matrix
- func MatrixTranslate(x float32, y float32, z float32) Matrix
- func MatrixTranspose(mat Matrix) Matrix
- func NewMatrix(cM0 float32, cM4 float32, cM8 float32, cM12 float32, cM1 float32, cM5 float32, ...) Matrix
- func QuaternionToMatrix(q Quaternion) Matrix
- type Mesh
- func AllocMesh(cVertexCount int32, cTriangleCount int32, cVertices []float32, ...) (*Mesh, *cgoAllocMap)
- func GenMeshCube(width float32, height float32, length float32) Mesh
- func GenMeshCubicmap(cubicmap Image, cubeSize Vector3) Mesh
- func GenMeshCylinder(radius float32, height float32, slices int32) Mesh
- func GenMeshHeightmap(heightmap Image, size Vector3) Mesh
- func GenMeshHemiSphere(radius float32, rings int32, slices int32) Mesh
- func GenMeshKnot(radius float32, size float32, radSeg int32, sides int32) Mesh
- func GenMeshPlane(width float32, length float32, resX int32, resZ int32) Mesh
- func GenMeshPoly(sides int32, radius float32) Mesh
- func GenMeshSphere(radius float32, rings int32, slices int32) Mesh
- func GenMeshTorus(radius float32, size float32, radSeg int32, sides int32) Mesh
- func LoadMeshes(fileName string, meshCount *int32) *Mesh
- func NewMesh(cVertexCount int32, cTriangleCount int32, cVertices []float32, ...) Mesh
- func (x *Mesh) AnimNormalser(index int32) *float32
- func (x *Mesh) AnimVerticeser(index int32) *float32
- func (x *Mesh) BoneIdser(index int32) *int32
- func (x *Mesh) BoneWeightser(index int32) *float32
- func (x *Mesh) Colorser(index int32) *byte
- func (x *Mesh) GC(a *cgoAllocMap, args ...*cgoAllocMap)
- func (x *Mesh) Index(index int32) *Mesh
- func (x *Mesh) Indiceser(index int32) *uint16
- func (x *Mesh) Normalser(index int32) *float32
- func (x *Mesh) Tangentser(index int32) *float32
- func (x *Mesh) Texcoords2er(index int32) *float32
- func (x *Mesh) Texcoordser(index int32) *float32
- func (x *Mesh) VboIder(index int32) *uint32
- func (x *Mesh) Verticeser(index int32) *float32
- type Model
- func (x *Model) BindPoseer(index int32) *Transform
- func (x *Model) Boneser(index int32) *BoneInfo
- func (x *Model) GC(a *cgoAllocMap, args ...*cgoAllocMap)
- func (x *Model) Index(index int32) *Model
- func (x *Model) Materialser(index int32) *Material
- func (x *Model) MeshMaterialer(index int32) *int32
- func (x *Model) Mesheser(index int32) *Mesh
- type ModelAnimation
- type MouseButton
- type MouseCursor
- type MultiText
- type Music
- type NPatchInfo
- type NPatchType
- type PixelFormat
- type Quaternion
- func AllocQuaternion(cX float32, cY float32, cZ float32, cW float32) (*Quaternion, *cgoAllocMap)
- func NewQuaternion(cX float32, cY float32, cZ float32, cW float32) Quaternion
- func QuaternionAdd(q1 Quaternion, q2 Quaternion) Quaternion
- func QuaternionAddValue(q Quaternion, add float32) Quaternion
- func QuaternionDivide(q1 Quaternion, q2 Quaternion) Quaternion
- func QuaternionFromAxisAngle(axis Vector3, angle float32) Quaternion
- func QuaternionFromEuler(roll float32, pitch float32, yaw float32) Quaternion
- func QuaternionFromMatrix(mat Matrix) Quaternion
- func QuaternionFromVector3ToVector3(from Vector3, to Vector3) Quaternion
- func QuaternionIdentity() Quaternion
- func QuaternionInvert(q Quaternion) Quaternion
- func QuaternionLerp(q1 Quaternion, q2 Quaternion, amount float32) Quaternion
- func QuaternionMultiply(q1 Quaternion, q2 Quaternion) Quaternion
- func QuaternionNlerp(q1 Quaternion, q2 Quaternion, amount float32) Quaternion
- func QuaternionNormalize(q Quaternion) Quaternion
- func QuaternionScale(q Quaternion, mul float32) Quaternion
- func QuaternionSlerp(q1 Quaternion, q2 Quaternion, amount float32) Quaternion
- func QuaternionSubtract(q1 Quaternion, q2 Quaternion) Quaternion
- func QuaternionSubtractValue(q Quaternion, sub float32) Quaternion
- func QuaternionTransform(q Quaternion, mat Matrix) Quaternion
- type RawString
- type Ray
- type RayHitInfo
- func AllocRayHitInfo(cHit bool, cDistance float32, cPosition Vector3, cNormal Vector3) (*RayHitInfo, *cgoAllocMap)
- func GetCollisionRayGround(ray Ray, groundHeight float32) RayHitInfo
- func GetCollisionRayMesh(ray Ray, mesh Mesh, transform Matrix) RayHitInfo
- func GetCollisionRayModel(ray Ray, model Model) RayHitInfo
- func GetCollisionRayTriangle(ray Ray, p1 Vector3, p2 Vector3, p3 Vector3) RayHitInfo
- func NewRayHitInfo(cHit bool, cDistance float32, cPosition Vector3, cNormal Vector3) RayHitInfo
- type Rectangle
- func AllocRectangle(cX float32, cY float32, cWidth float32, cHeight float32) (*Rectangle, *cgoAllocMap)
- func GetCollisionRec(rec1 Rectangle, rec2 Rectangle) Rectangle
- func GetImageAlphaBorder(image Image, threshold float32) Rectangle
- func GetShapesTextureRec() Rectangle
- func GuiScrollPanel(bounds Rectangle, content Rectangle, scroll *Vector2) Rectangle
- func NewRectangle(cX float32, cY float32, cWidth float32, cHeight float32) Rectangle
- type RenderTexture
- type RenderTexture2D
- type Shader
- type ShaderLocationIndex
- type ShaderUniformDataType
- type Sound
- type Texture
- type Texture2D
- func AllocTexture2D(cId uint32, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) (*Texture2D, *cgoAllocMap)
- func GenTextureBRDF(shader Shader, size int32) Texture2D
- func GetShapesTexture() Texture2D
- func GetTextureDefault() Texture2D
- func LoadTexture(fileName string) Texture2D
- func LoadTextureFromImage(image Image) Texture2D
- func NewTexture2D(cId uint32, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) Texture2D
- type TextureCubemap
- func AllocTextureCubemap(cId uint32, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) (*TextureCubemap, *cgoAllocMap)
- func GenTextureCubemap(shader Shader, panorama Texture2D, size int32, format int32) TextureCubemap
- func GenTextureIrradiance(shader Shader, cubemap TextureCubemap, size int32) TextureCubemap
- func GenTexturePrefilter(shader Shader, cubemap TextureCubemap, size int32) TextureCubemap
- func LoadTextureCubemap(image Image, layoutType int32) TextureCubemap
- func NewTextureCubemap(cId uint32, cWidth int32, cHeight int32, cMipmaps int32, cFormat int32) TextureCubemap
- type TextureFilterMode
- type TextureWrapMode
- type Transform
- type Vector2
- func AllocVector2(cX float32, cY float32) (*Vector2, *cgoAllocMap)
- func GetGestureDragVector() Vector2
- func GetGesturePinchVector() Vector2
- func GetMonitorPosition(monitor int32) Vector2
- func GetMousePosition() Vector2
- func GetScreenToWorld2D(position Vector2, camera Camera2D) Vector2
- func GetTouchPosition(index int32) Vector2
- func GetWindowPosition() Vector2
- func GetWindowScaleDPI() Vector2
- func GetWorldToScreen(position Vector3, camera Camera) Vector2
- func GetWorldToScreen2D(position Vector2, camera Camera2D) Vector2
- func GetWorldToScreenEx(position Vector3, camera Camera, width int32, height int32) Vector2
- func GuiGrid(bounds Rectangle, spacing float32, subdivs int32) Vector2
- func MeasureTextEx(font Font, text string, fontSize float32, spacing float32) Vector2
- func NewVector2(cX float32, cY float32) Vector2
- func Vector2Add(v1 Vector2, v2 Vector2) Vector2
- func Vector2AddValue(v Vector2, add float32) Vector2
- func Vector2Divide(v1 Vector2, v2 Vector2) Vector2
- func Vector2Lerp(v1 Vector2, v2 Vector2, amount float32) Vector2
- func Vector2MoveTowards(v Vector2, target Vector2, maxDistance float32) Vector2
- func Vector2Multiply(v1 Vector2, v2 Vector2) Vector2
- func Vector2Negate(v Vector2) Vector2
- func Vector2Normalize(v Vector2) Vector2
- func Vector2One() Vector2
- func Vector2Rotate(v Vector2, degs float32) Vector2
- func Vector2Scale(v Vector2, scale float32) Vector2
- func Vector2Subtract(v1 Vector2, v2 Vector2) Vector2
- func Vector2SubtractValue(v Vector2, sub float32) Vector2
- func Vector2Zero() Vector2
- type Vector3
- func AllocVector3(cX float32, cY float32, cZ float32) (*Vector3, *cgoAllocMap)
- func ColorToHSV(color Color) Vector3
- func NewVector3(cX float32, cY float32, cZ float32) Vector3
- func QuaternionToEuler(q Quaternion) Vector3
- func Vector3Add(v1 Vector3, v2 Vector3) Vector3
- func Vector3AddValue(v Vector3, add float32) Vector3
- func Vector3Barycenter(p Vector3, a Vector3, b Vector3, c Vector3) Vector3
- func Vector3CrossProduct(v1 Vector3, v2 Vector3) Vector3
- func Vector3Divide(v1 Vector3, v2 Vector3) Vector3
- func Vector3Lerp(v1 Vector3, v2 Vector3, amount float32) Vector3
- func Vector3Max(v1 Vector3, v2 Vector3) Vector3
- func Vector3Min(v1 Vector3, v2 Vector3) Vector3
- func Vector3Multiply(v1 Vector3, v2 Vector3) Vector3
- func Vector3Negate(v Vector3) Vector3
- func Vector3Normalize(v Vector3) Vector3
- func Vector3One() Vector3
- func Vector3Perpendicular(v Vector3) Vector3
- func Vector3Reflect(v Vector3, normal Vector3) Vector3
- func Vector3RotateByQuaternion(v Vector3, q Quaternion) Vector3
- func Vector3Scale(v Vector3, scalar float32) Vector3
- func Vector3Subtract(v1 Vector3, v2 Vector3) Vector3
- func Vector3SubtractValue(v Vector3, sub float32) Vector3
- func Vector3Transform(v Vector3, mat Matrix) Vector3
- func Vector3Zero() Vector3
- type Vector4
- type VrDeviceInfo
- type Wave
- func AllocWave(cSampleCount uint32, cSampleRate uint32, cSampleSize uint32, cChannels uint32, ...) (*Wave, *cgoAllocMap)
- func LoadWave(fileName string) Wave
- func LoadWaveFromMemory(fileType string, fileData []byte, dataSize int32) Wave
- func NewWave(cSampleCount uint32, cSampleRate uint32, cSampleSize uint32, cChannels uint32, ...) Wave
- func WaveCopy(wave Wave) Wave
Constants ¶
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 )
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 ¶
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 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 ¶
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 ¶
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 ¶
CheckCollisionCircleRec function as declared in src/raylib.h:1134
func CheckCollisionCircles ¶
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 ¶
CheckCollisionPointCircle function as declared in src/raylib.h:1136
func CheckCollisionPointRec ¶
CheckCollisionPointRec function as declared in src/raylib.h:1135
func CheckCollisionPointTriangle ¶
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 ¶
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 ¶
CheckCollisionRecs function as declared in src/raylib.h:1132
func CheckCollisionSpheres ¶
CheckCollisionSpheres function as declared in src/raylib.h:1394
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 CodepointToUtf8 ¶
CodepointToUtf8 function as declared in src/raylib.h:1311
func ColorToInt ¶
ColorToInt function as declared in src/raylib.h:1245
func CompressData ¶
CompressData function as declared in src/raylib.h:1012
func DecompressData ¶
DecompressData function as declared in src/raylib.h:1013
func DirectoryExists ¶
DirectoryExists function as declared in src/raylib.h:996
func DrawBillboard ¶
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 ¶
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 ¶
DrawCircleGradient function as declared in src/raylib.h:1106
func DrawCircleLines ¶
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 ¶
DrawCircleV function as declared in src/raylib.h:1107
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 DrawCubeWires ¶
DrawCubeWires function as declared in src/raylib.h:1325
func DrawCubeWiresV ¶
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 ¶
DrawEllipse function as declared in src/raylib.h:1109
func DrawEllipseLines ¶
DrawEllipseLines function as declared in src/raylib.h:1110
func DrawGizmo ¶
func DrawGizmo(position Vector3)
DrawGizmo function as declared in src/raylib.h:1336
func DrawLine3D ¶
DrawLine3D function as declared in src/raylib.h:1318
func DrawLineBezier ¶
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 ¶
DrawLineEx function as declared in src/raylib.h:1099
func DrawLineStrip ¶
DrawLineStrip function as declared in src/raylib.h:1102
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 ¶
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 DrawPixelV ¶
DrawPixelV function as declared in src/raylib.h:1096
func DrawPoint3D ¶
DrawPoint3D function as declared in src/raylib.h:1319
func DrawPolyLines ¶
DrawPolyLines function as declared in src/raylib.h:1129
func DrawRectangle ¶
DrawRectangle function as declared in src/raylib.h:1113
func DrawRectangleGradientEx ¶
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 ¶
DrawRectangleLines function as declared in src/raylib.h:1120
func DrawRectangleLinesEx ¶
DrawRectangleLinesEx function as declared in src/raylib.h:1121
func DrawRectanglePro ¶
DrawRectanglePro function as declared in src/raylib.h:1116
func DrawRectangleRec ¶
DrawRectangleRec function as declared in src/raylib.h:1115
func DrawRectangleRounded ¶
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 ¶
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 ¶
DrawSphere function as declared in src/raylib.h:1328
func DrawSphereEx ¶
DrawSphereEx function as declared in src/raylib.h:1329
func DrawSphereWires ¶
DrawSphereWires function as declared in src/raylib.h:1330
func DrawTextCodepoint ¶
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 ¶
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 ¶
DrawTextureQuad function as declared in src/raylib.h:1238
func DrawTextureRec ¶
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 ¶
DrawTextureV function as declared in src/raylib.h:1235
func DrawTriangle ¶
DrawTriangle function as declared in src/raylib.h:1124
func DrawTriangle3D ¶
DrawTriangle3D function as declared in src/raylib.h:1321
func DrawTriangleFan ¶
DrawTriangleFan function as declared in src/raylib.h:1126
func DrawTriangleLines ¶
DrawTriangleLines function as declared in src/raylib.h:1125
func DrawTriangleStrip ¶
DrawTriangleStrip function as declared in src/raylib.h:1127
func DrawTriangleStrip3D ¶
DrawTriangleStrip3D function as declared in src/raylib.h:1322
func EaseBackIn ¶
EaseBackIn function as declared in src/easings.h:154
func EaseBackInOut ¶
EaseBackInOut function as declared in src/easings.h:168
func EaseBackOut ¶
EaseBackOut function as declared in src/easings.h:161
func EaseBounceIn ¶
EaseBounceIn function as declared in src/easings.h:206
func EaseBounceInOut ¶
EaseBounceInOut function as declared in src/easings.h:207
func EaseBounceOut ¶
EaseBounceOut function as declared in src/easings.h:183
func EaseCircIn ¶
EaseCircIn function as declared in src/easings.h:115
func EaseCircInOut ¶
EaseCircInOut function as declared in src/easings.h:117
func EaseCircOut ¶
EaseCircOut function as declared in src/easings.h:116
func EaseCubicIn ¶
EaseCubicIn function as declared in src/easings.h:124
func EaseCubicInOut ¶
EaseCubicInOut function as declared in src/easings.h:126
func EaseCubicOut ¶
EaseCubicOut function as declared in src/easings.h:125
func EaseElasticIn ¶
EaseElasticIn function as declared in src/easings.h:214
func EaseElasticInOut ¶
EaseElasticInOut function as declared in src/easings.h:239
func EaseElasticOut ¶
EaseElasticOut function as declared in src/easings.h:227
func EaseExpoIn ¶
EaseExpoIn function as declared in src/easings.h:142
func EaseExpoInOut ¶
EaseExpoInOut function as declared in src/easings.h:144
func EaseExpoOut ¶
EaseExpoOut function as declared in src/easings.h:143
func EaseLinearIn ¶
EaseLinearIn function as declared in src/easings.h:105
func EaseLinearInOut ¶
EaseLinearInOut function as declared in src/easings.h:107
func EaseLinearNone ¶
EaseLinearNone function as declared in src/easings.h:104
func EaseLinearOut ¶
EaseLinearOut function as declared in src/easings.h:106
func EaseQuadIn ¶
EaseQuadIn function as declared in src/easings.h:133
func EaseQuadInOut ¶
EaseQuadInOut function as declared in src/easings.h:135
func EaseQuadOut ¶
EaseQuadOut function as declared in src/easings.h:134
func EaseSineIn ¶
EaseSineIn function as declared in src/easings.h:110
func EaseSineInOut ¶
EaseSineInOut function as declared in src/easings.h:112
func EaseSineOut ¶
EaseSineOut function as declared in src/easings.h:111
func ExportImage ¶
ExportImage function as declared in src/raylib.h:1152
func ExportImageAsCode ¶
ExportImageAsCode function as declared in src/raylib.h:1153
func ExportMesh ¶
ExportMesh function as declared in src/raylib.h:1351
func ExportWave ¶
ExportWave function as declared in src/raylib.h:1474
func ExportWaveAsCode ¶
ExportWaveAsCode function as declared in src/raylib.h:1475
func FileExists ¶
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 ¶
GetCodepoints function as declared in src/raylib.h:1308
func GetCodepointsCount ¶
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 ¶
GetDirectoryFiles function as declared in src/raylib.h:1004
func GetDirectoryPath ¶
GetDirectoryPath function as declared in src/raylib.h:1001
func GetDroppedFiles ¶
GetDroppedFiles function as declared in src/raylib.h:1008
func GetFileExtension ¶
GetFileExtension function as declared in src/raylib.h:998
func GetFileModTime ¶
GetFileModTime function as declared in src/raylib.h:1010
func GetFileName ¶
GetFileName function as declared in src/raylib.h:999
func GetFileNameWithoutExt ¶
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 ¶
GetGamepadAxisCount function as declared in src/raylib.h:1043
func GetGamepadAxisMovement ¶
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 ¶
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 ¶
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 ¶
GetMonitorHeight function as declared in src/raylib.h:929
func GetMonitorName ¶
GetMonitorName function as declared in src/raylib.h:935
func GetMonitorPhysicalHeight ¶
GetMonitorPhysicalHeight function as declared in src/raylib.h:931
func GetMonitorPhysicalWidth ¶
GetMonitorPhysicalWidth function as declared in src/raylib.h:930
func GetMonitorRefreshRate ¶
GetMonitorRefreshRate function as declared in src/raylib.h:932
func GetMonitorWidth ¶
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 GetMusicTimeLength ¶
GetMusicTimeLength function as declared in src/raylib.h:1505
func GetMusicTimePlayed ¶
GetMusicTimePlayed function as declared in src/raylib.h:1506
func GetNextCodepoint ¶
GetNextCodepoint function as declared in src/raylib.h:1310
func GetPixelDataSize ¶
GetPixelDataSize function as declared in src/raylib.h:1255
func GetPrevDirectoryPath ¶
GetPrevDirectoryPath function as declared in src/raylib.h:1002
func GetRandomValue ¶
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 ¶
GetShaderLocation function as declared in src/raylib.h:1422
func GetShaderLocationAttrib ¶
GetShaderLocationAttrib function as declared in src/raylib.h:1423
func GetSoundsPlaying ¶
func GetSoundsPlaying() int32
GetSoundsPlaying function as declared in src/raylib.h:1484
func GetTouchPointsCount ¶
func GetTouchPointsCount() int32
GetTouchPointsCount function as declared in src/raylib.h:1072
func GetWindowHandle ¶
GetWindowHandle function as declared in src/raylib.h:922
func GetWorkingDirectory ¶
func GetWorkingDirectory() string
GetWorkingDirectory function as declared in src/raylib.h:1003
func GuiCheckBox ¶
GuiCheckBox function as declared in src/raygui.h:457
func GuiClearTooltip ¶
func GuiClearTooltip()
GuiClearTooltip function as declared in src/raygui.h:440
func GuiColorBarAlpha ¶
GuiColorBarAlpha function as declared in src/raygui.h:479
func GuiColorBarHue ¶
GuiColorBarHue function as declared in src/raygui.h:480
func GuiComboBox ¶
GuiComboBox function as declared in src/raygui.h:458
func GuiDisableTooltip ¶
func GuiDisableTooltip()
GuiDisableTooltip function as declared in src/raygui.h:438
func GuiDropdownBox ¶
GuiDropdownBox function as declared in src/raygui.h:459
func GuiDummyRec ¶
GuiDummyRec function as declared in src/raygui.h:468
func GuiEnableTooltip ¶
func GuiEnableTooltip()
GuiEnableTooltip function as declared in src/raygui.h:437
func GuiGetStyle ¶
GuiGetStyle function as declared in src/raygui.h:434
func GuiGroupBox ¶
GuiGroupBox function as declared in src/raygui.h:444
func GuiIconText ¶
GuiIconText function as declared in src/raygui.h:492
func GuiImageButton ¶
GuiImageButton function as declared in src/raygui.h:453
func GuiImageButtonEx ¶
GuiImageButtonEx function as declared in src/raygui.h:454
func GuiLabelButton ¶
GuiLabelButton function as declared in src/raygui.h:452
func GuiListView ¶
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 GuiMessageBox ¶
GuiMessageBox function as declared in src/raygui.h:475
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 ¶
GuiScrollBar function as declared in src/raygui.h:469
func GuiSetState ¶
func GuiSetState(state int32)
GuiSetState function as declared in src/raygui.h:425
func GuiSetStyle ¶
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 ¶
GuiStatusBar function as declared in src/raygui.h:467
func GuiTextBox ¶
GuiTextBox function as declared in src/raygui.h:462
func GuiTextBoxMulti ¶
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 GuiToggleGroup ¶
GuiToggleGroup function as declared in src/raygui.h:456
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 ¶
GuiWindowBox function as declared in src/raygui.h:443
func ImageAlphaClear ¶
ImageAlphaClear function as declared in src/raylib.h:1174
func ImageAlphaCrop ¶
ImageAlphaCrop function as declared in src/raylib.h:1173
func ImageAlphaMask ¶
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 ¶
ImageClearBackground function as declared in src/raylib.h:1200
func ImageColorBrightness ¶
ImageColorBrightness function as declared in src/raylib.h:1190
func ImageColorContrast ¶
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 ¶
ImageColorReplace function as declared in src/raylib.h:1191
func ImageColorTint ¶
ImageColorTint function as declared in src/raylib.h:1186
func ImageDither ¶
ImageDither function as declared in src/raylib.h:1181
func ImageDrawCircle ¶
ImageDrawCircle function as declared in src/raylib.h:1205
func ImageDrawCircleV ¶
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 ¶
ImageDrawLineV function as declared in src/raylib.h:1204
func ImageDrawPixel ¶
ImageDrawPixel function as declared in src/raylib.h:1201
func ImageDrawPixelV ¶
ImageDrawPixelV function as declared in src/raylib.h:1202
func ImageDrawRectangle ¶
ImageDrawRectangle function as declared in src/raylib.h:1207
func ImageDrawRectangleLines ¶
ImageDrawRectangleLines function as declared in src/raylib.h:1210
func ImageDrawRectangleRec ¶
ImageDrawRectangleRec function as declared in src/raylib.h:1209
func ImageDrawRectangleV ¶
ImageDrawRectangleV function as declared in src/raylib.h:1208
func ImageDrawText ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
IsFileExtension function as declared in src/raylib.h:997
func IsGamepadAvailable ¶
IsGamepadAvailable function as declared in src/raylib.h:1035
func IsGamepadButtonDown ¶
IsGamepadButtonDown function as declared in src/raylib.h:1039
func IsGamepadButtonPressed ¶
IsGamepadButtonPressed function as declared in src/raylib.h:1038
func IsGamepadButtonReleased ¶
IsGamepadButtonReleased function as declared in src/raylib.h:1040
func IsGamepadButtonUp ¶
IsGamepadButtonUp function as declared in src/raylib.h:1041
func IsGamepadName ¶
IsGamepadName function as declared in src/raylib.h:1036
func IsGestureDetected ¶
IsGestureDetected function as declared in src/raylib.h:1070
func IsKeyPressed ¶
IsKeyPressed function as declared in src/raylib.h:1026
func IsKeyReleased ¶
IsKeyReleased function as declared in src/raylib.h:1028
func IsModelAnimationValid ¶
func IsModelAnimationValid(model Model, anim ModelAnimation) bool
IsModelAnimationValid function as declared in src/raylib.h:1364
func IsMouseButtonDown ¶
IsMouseButtonDown function as declared in src/raylib.h:1048
func IsMouseButtonPressed ¶
IsMouseButtonPressed function as declared in src/raylib.h:1047
func IsMouseButtonReleased ¶
IsMouseButtonReleased function as declared in src/raylib.h:1049
func IsMouseButtonUp ¶
IsMouseButtonUp function as declared in src/raylib.h:1050
func IsMusicPlaying ¶
IsMusicPlaying function as declared in src/raylib.h:1502
func IsSoundPlaying ¶
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 ¶
IsWindowState function as declared in src/raylib.h:909
func LoadFileData ¶
LoadFileData function as declared in src/raylib.h:989
func LoadFileText ¶
LoadFileText function as declared in src/raylib.h:992
func LoadStorageValue ¶
LoadStorageValue function as declared in src/raylib.h:1017
func LoadWaveSamples ¶
LoadWaveSamples function as declared in src/raylib.h:1491
func MatrixDeterminant ¶
MatrixDeterminant function as declared in src/raymath.h:629
func MeasureText ¶
MeasureText function as declared in src/raylib.h:1284
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 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 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 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 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 ¶
SaveFileData function as declared in src/raylib.h:991
func SaveFileText ¶
SaveFileText function as declared in src/raylib.h:994
func SaveStorageValue ¶
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 ¶
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 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 ¶
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 ¶
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 ¶
SetMouseOffset function as declared in src/raylib.h:1055
func SetMousePosition ¶
SetMousePosition function as declared in src/raylib.h:1054
func SetMouseScale ¶
SetMouseScale function as declared in src/raylib.h:1056
func SetMusicPitch ¶
SetMusicPitch function as declared in src/raylib.h:1504
func SetMusicVolume ¶
SetMusicVolume function as declared in src/raylib.h:1503
func SetPixelColor ¶
SetPixelColor function as declared in src/raylib.h:1254
func SetShaderValue ¶
SetShaderValue function as declared in src/raylib.h:1424
func SetShaderValueMatrix ¶
SetShaderValueMatrix function as declared in src/raylib.h:1426
func SetShaderValueTexture ¶
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 ¶
SetShapesTexture function as declared in src/raylib.h:1419
func SetSoundPitch ¶
SetSoundPitch function as declared in src/raylib.h:1487
func SetSoundVolume ¶
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 ¶
SetTextureFilter function as declared in src/raylib.h:1230
func SetTextureWrap ¶
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 ¶
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 ¶
SetWindowPosition function as declared in src/raylib.h:918
func SetWindowSize ¶
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 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 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 ¶
TextAppend function as declared in src/raylib.h:1299
func TextFindIndex ¶
TextFindIndex function as declared in src/raylib.h:1300
func TextInsert ¶
TextInsert function as declared in src/raylib.h:1296
func TextIsEqual ¶
TextIsEqual function as declared in src/raylib.h:1291
func TextLength ¶
TextLength function as declared in src/raylib.h:1292
func TextReplace ¶
TextReplace function as declared in src/raylib.h:1295
func TextSubtext ¶
TextSubtext function as declared in src/raylib.h:1294
func TextToInteger ¶
TextToInteger function as declared in src/raylib.h:1304
func TextToLower ¶
TextToLower function as declared in src/raylib.h:1302
func TextToPascal ¶
TextToPascal function as declared in src/raylib.h:1303
func TextToUpper ¶
TextToUpper function as declared in src/raylib.h:1301
func TextToUtf8 ¶
TextToUtf8 function as declared in src/raylib.h:1305
func ToggleFullscreen ¶
func ToggleFullscreen()
ToggleFullscreen function as declared in src/raylib.h:912
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 UnloadFontData ¶
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 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 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 ¶
UpdateSound function as declared in src/raylib.h:1471
func UpdateTexture ¶
UpdateTexture function as declared in src/raylib.h:1223
func UpdateTextureRec ¶
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 ¶
Vector2Angle function as declared in src/raymath.h:247
func Vector2Distance ¶
Vector2Distance function as declared in src/raymath.h:240
func Vector2DotProduct ¶
Vector2DotProduct function as declared in src/raymath.h:233
func Vector2Length ¶
Vector2Length function as declared in src/raymath.h:219
func Vector2LengthSqr ¶
Vector2LengthSqr function as declared in src/raymath.h:226
func Vector3Distance ¶
Vector3Distance function as declared in src/raymath.h:454
func Vector3DotProduct ¶
Vector3DotProduct function as declared in src/raymath.h:447
func Vector3Length ¶
Vector3Length function as declared in src/raymath.h:433
func Vector3LengthSqr ¶
Vector3LengthSqr function as declared in src/raymath.h:440
func Vector3OrthoNormalize ¶
Vector3OrthoNormalize function as declared in src/raymath.h:497
func WaveFormat ¶
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 BoneInfo ¶
func AllocBoneInfo ¶
AllocBoneInfo new Go object and Mapping to C object.
func NewBoneInfo ¶
NewBoneInfo new Go object and Mapping to C object.
type BoundingBox ¶
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 ¶
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.
type Camera2D ¶
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 ¶
NewCamera2D new Go object and Mapping to C object.
type Camera3D ¶
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.
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 ¶
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.
type Color ¶
func AllocColor ¶
AllocColor new Go object and Mapping to C object.
func ColorAlpha ¶
ColorAlpha function as declared in src/raylib.h:1250
func ColorAlphaBlend ¶
ColorAlphaBlend function as declared in src/raylib.h:1251
func ColorFromHSV ¶
ColorFromHSV function as declared in src/raylib.h:1249
func ColorFromNormalized ¶
ColorFromNormalized function as declared in src/raylib.h:1247
func GetPixelColor ¶
GetPixelColor function as declared in src/raylib.h:1253
func GuiColorPanel ¶
GuiColorPanel function as declared in src/raygui.h:478
func GuiColorPanelEx ¶
GuiColorPanelEx function as declared in src/raygui.h:495
func GuiColorPicker ¶
GuiColorPicker function as declared in src/raygui.h:477
func LoadImageColors ¶
LoadImageColors function as declared in src/raylib.h:1192
func LoadImagePalette ¶
LoadImagePalette function as declared in src/raylib.h:1193
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 LoadFontEx ¶
LoadFontEx function as declared in src/raylib.h:1264
func LoadFontFromImage ¶
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) GC ¶
func (x *Font) GC(a *cgoAllocMap, args ...*cgoAllocMap)
GC is register for garbage collection.
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetTextureData function as declared in src/raylib.h:1225
func ImageFromImage ¶
ImageFromImage function as declared in src/raylib.h:1167
func ImageTextEx ¶
ImageTextEx function as declared in src/raylib.h:1169
func LoadImageAnim ¶
LoadImageAnim function as declared in src/raylib.h:1149
func LoadImageFromMemory ¶
LoadImageFromMemory function as declared in src/raylib.h:1150
func LoadImageRaw ¶
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.
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 ¶
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) Mapser ¶
func (x *Material) Mapser(index int32) *MaterialMap
Maps returns a reference to C object within a struct
type MaterialMap ¶
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 ¶
GetCameraMatrix function as declared in src/raylib.h:962
func GetCameraMatrix2D ¶
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 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 ¶
MatrixInvert function as declared in src/raymath.h:680
func MatrixLookAt ¶
MatrixLookAt function as declared in src/raymath.h:1068
func MatrixMultiply ¶
MatrixMultiply function as declared in src/raymath.h:816
func MatrixNormalize ¶
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 ¶
MatrixPerspective function as declared in src/raymath.h:1029
func MatrixRotate ¶
MatrixRotate function as declared in src/raymath.h:853
func MatrixRotateX ¶
MatrixRotateX function as declared in src/raymath.h:897
func MatrixRotateXYZ ¶
MatrixRotateXYZ function as declared in src/raymath.h:946
func MatrixRotateY ¶
MatrixRotateY function as declared in src/raymath.h:913
func MatrixRotateZ ¶
MatrixRotateZ function as declared in src/raymath.h:929
func MatrixScale ¶
MatrixScale function as declared in src/raymath.h:985
func MatrixSubtract ¶
MatrixSubtract function as declared in src/raymath.h:790
func MatrixTranslate ¶
MatrixTranslate function as declared in src/raymath.h:841
func MatrixTranspose ¶
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
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 ¶
GenMeshCube function as declared in src/raylib.h:1369
func GenMeshCubicmap ¶
GenMeshCubicmap function as declared in src/raylib.h:1376
func GenMeshCylinder ¶
GenMeshCylinder function as declared in src/raylib.h:1372
func GenMeshHeightmap ¶
GenMeshHeightmap function as declared in src/raylib.h:1375
func GenMeshHemiSphere ¶
GenMeshHemiSphere function as declared in src/raylib.h:1371
func GenMeshKnot ¶
GenMeshKnot function as declared in src/raylib.h:1374
func GenMeshPlane ¶
GenMeshPlane function as declared in src/raylib.h:1368
func GenMeshPoly ¶
GenMeshPoly function as declared in src/raylib.h:1367
func GenMeshSphere ¶
GenMeshSphere function as declared in src/raylib.h:1370
func GenMeshTorus ¶
GenMeshTorus function as declared in src/raylib.h:1373
func LoadMeshes ¶
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 ¶
AnimNormals returns a reference to C object within a struct
func (*Mesh) AnimVerticeser ¶
AnimVertices returns a reference to C object within a struct
func (*Mesh) BoneWeightser ¶
BoneWeights 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) Tangentser ¶
Tangents returns a reference to C object within a struct
func (*Mesh) Texcoords2er ¶
Texcoords2 returns a reference to C object within a struct
func (*Mesh) Texcoordser ¶
Texcoords returns a reference to C object within a struct
func (*Mesh) Verticeser ¶
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 LoadModelFromMesh ¶
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 ¶
BindPose 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) Materialser ¶
Materials returns a reference to C object within a struct
func (*Model) MeshMaterialer ¶
MeshMaterial 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 ¶
AllocMultiText new Go object and Mapping to C object.
func NewMultiText ¶
NewMultiText new Go object and Mapping to C object.
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 ¶
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.
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 ¶
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 Ray ¶
func GetMouseRay ¶
GetMouseRay function as declared in src/raylib.h:961
type RayHitInfo ¶
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 ¶
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 ¶
GetCollisionRec function as declared in src/raylib.h:1139
func GetImageAlphaBorder ¶
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 ¶
GuiScrollPanel function as declared in src/raygui.h:447
func NewRectangle ¶
NewRectangle new Go object and Mapping to C object.
type RenderTexture ¶
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 ¶
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 ¶
func AllocShader ¶
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 ¶
LoadShader function as declared in src/raylib.h:1411
func LoadShaderCode ¶
LoadShaderCode function as declared in src/raylib.h:1412
func (*Shader) GC ¶
func (x *Shader) GC(a *cgoAllocMap, args ...*cgoAllocMap)
GC is register for garbage collection.
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 LoadSoundFromWave ¶
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.
type Texture ¶
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 ¶
NewTexture new Go object and Mapping to C object.
type Texture2D ¶
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 ¶
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 ¶
LoadTexture function as declared in src/raylib.h:1217
func LoadTextureFromImage ¶
LoadTextureFromImage function as declared in src/raylib.h:1218
func NewTexture2D ¶
NewTexture2D new Go object and Mapping to C object.
type TextureCubemap ¶
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 ¶
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.
type Vector2 ¶
func AllocVector2 ¶
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 ¶
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 ¶
GetScreenToWorld2D function as declared in src/raylib.h:967
func GetTouchPosition ¶
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 ¶
GetWorldToScreen function as declared in src/raylib.h:964
func GetWorldToScreen2D ¶
GetWorldToScreen2D function as declared in src/raylib.h:966
func GetWorldToScreenEx ¶
GetWorldToScreenEx function as declared in src/raylib.h:965
func MeasureTextEx ¶
MeasureTextEx function as declared in src/raylib.h:1285
func NewVector2 ¶
NewVector2 new Go object and Mapping to C object.
func Vector2Add ¶
Vector2Add function as declared in src/raymath.h:191
func Vector2AddValue ¶
Vector2AddValue function as declared in src/raymath.h:198
func Vector2Divide ¶
Vector2Divide function as declared in src/raymath.h:276
func Vector2Lerp ¶
Vector2Lerp function as declared in src/raymath.h:290
func Vector2MoveTowards ¶
Vector2MoveTowards function as declared in src/raymath.h:322
func Vector2Multiply ¶
Vector2Multiply function as declared in src/raymath.h:262
func Vector2Negate ¶
Vector2Negate function as declared in src/raymath.h:269
func Vector2Normalize ¶
Vector2Normalize function as declared in src/raymath.h:283
func Vector2Rotate ¶
Vector2Rotate function as declared in src/raymath.h:314
func Vector2Scale ¶
Vector2Scale function as declared in src/raymath.h:255
func Vector2Subtract ¶
Vector2Subtract function as declared in src/raymath.h:205
func Vector2SubtractValue ¶
Vector2SubtractValue function as declared in src/raymath.h:212
type Vector3 ¶
func AllocVector3 ¶
AllocVector3 new Go object and Mapping to C object.
func ColorToHSV ¶
ColorToHSV function as declared in src/raylib.h:1248
func NewVector3 ¶
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 ¶
Vector3Add function as declared in src/raymath.h:358
func Vector3AddValue ¶
Vector3AddValue function as declared in src/raymath.h:365
func Vector3Barycenter ¶
Vector3Barycenter function as declared in src/raymath.h:588
func Vector3CrossProduct ¶
Vector3CrossProduct function as declared in src/raymath.h:400
func Vector3Divide ¶
Vector3Divide function as declared in src/raymath.h:471
func Vector3Lerp ¶
Vector3Lerp function as declared in src/raymath.h:533
func Vector3Max ¶
Vector3Max function as declared in src/raymath.h:575
func Vector3Min ¶
Vector3Min function as declared in src/raymath.h:563
func Vector3Multiply ¶
Vector3Multiply function as declared in src/raymath.h:393
func Vector3Negate ¶
Vector3Negate function as declared in src/raymath.h:464
func Vector3Normalize ¶
Vector3Normalize function as declared in src/raymath.h:478
func Vector3Perpendicular ¶
Vector3Perpendicular function as declared in src/raymath.h:407
func Vector3Reflect ¶
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 ¶
Vector3Scale function as declared in src/raymath.h:386
func Vector3Subtract ¶
Vector3Subtract function as declared in src/raymath.h:372
func Vector3SubtractValue ¶
Vector3SubtractValue function as declared in src/raymath.h:379
func Vector3Transform ¶
Vector3Transform function as declared in src/raymath.h:506
type Vector4 ¶
func AllocVector4 ¶
AllocVector4 new Go object and Mapping to C object.
func ColorNormalize ¶
ColorNormalize function as declared in src/raylib.h:1246
func NewVector4 ¶
NewVector4 new Go object and Mapping to C object.
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 LoadWaveFromMemory ¶
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.