MCP HubMCP Hub
スキル一覧に戻る

raylib

EvanLavender13
更新日 Today
218 閲覧
0
GitHubで表示
開発api

について

このスキルは、開発者がグラフィックス、入力、オーディオのソリューションを一から作らずに済むよう、raylibの既存APIを活用する手助けをします。カスタムコードを書く前に、公式チートシートを参照して組み込み関数を探すよう促します。図形、テクスチャ、オーディオなどのモジュールで利用可能なユーティリティを素早く確認するためにご利用ください。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/EvanLavender13/audio-jones
Git クローン代替
git clone https://github.com/EvanLavender13/audio-jones.git ~/.claude/skills/raylib

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

raylib Development

Check raylib's built-in functions before writing custom implementations.

Cheatsheet First

Reference: https://www.raylib.com/cheatsheet/cheatsheet.html

Before implementing any rendering, input, or audio feature:

  1. Identify the module (shapes, textures, text, models, shaders, audio)
  2. Scan that module's functions in the cheatsheet
  3. Only write custom code if no raylib function exists

Use WebFetch to retrieve and search the cheatsheet when uncertain.

Module Categories

ModuleCoversCommon Functions
rcoreWindow, input, timingGetFrameTime, IsKeyPressed, GetMousePosition
rshapes2D primitivesDrawLineEx, DrawRectangleRounded, DrawCircleSector
rtexturesImages, texturesDrawTexturePro, LoadRenderTexture, BeginTextureMode
rtextFont renderingDrawTextEx, MeasureTextEx
rmodels3D geometryDrawMesh, LoadModel
raudioSound, musicLoadSound, PlaySound, SetSoundVolume
rlglLow-level OpenGLUse only when raylib lacks the feature

Before You Implement

Check these functions first for common tasks:

TaskCheck First
Thick linesDrawLineEx(start, end, thickness, color)
Rounded rectanglesDrawRectangleRounded, DrawRectangleRoundedLines
Rotated/scaled spritesDrawTexturePro(texture, source, dest, origin, rotation, tint)
Bezier curvesDrawLineBezier, DrawLineBezierQuad, DrawLineBezierCubic
Render to textureLoadRenderTexture, BeginTextureMode, EndTextureMode
Screen captureTakeScreenshot, LoadImageFromScreen
Shader uniformsGetShaderLocation, SetShaderValue
Delta timeGetFrameTime() returns seconds since last frame

Naming Conventions

raylib uses consistent verb prefixes:

  • Load* / Unload* — Resource lifecycle
  • Begin* / End* — Scoped state (drawing, shader, texture mode)
  • Draw* — Immediate rendering
  • Get* / Set* — Property access
  • Is* — Boolean queries (IsKeyPressed, IsWindowResized)
  • Check* — Collision detection

rlgl: Last Resort

rlgl exposes raw OpenGL. Use only when:

  • raylib provides no built-in function
  • Performance requires batched custom geometry
  • Custom vertex attributes needed

For simple shapes, rshapes functions outperform hand-rolled rlgl.

Verification

When implementing graphics features, verify:

  • Searched cheatsheet for existing function
  • Checked rshapes before rlgl
  • Used DrawTexturePro for any sprite transforms
  • Paired all Begin*/End* calls

GitHub リポジトリ

EvanLavender13/audio-jones
パス: .claude/skills/raylib

関連スキル

creating-opencode-plugins

メタ

This skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.

スキルを見る

evaluating-llms-harness

テスト

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

スキルを見る

polymarket

メタ

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

スキルを見る

cloudflare-turnstile

メタ

This skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.

スキルを見る