Skip to content
Back to skills

Generate C Sdl Doxygen Documentation

ASecurity

Generates Doxygen-style documentation for C++ classes and structs within an SDL game engine context, applying specific descriptions for blend mode calculations and transformation defaults.

  • 17 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
documentationc++documentation

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill generate-c-sdl-doxygen-documentation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate C Sdl Doxygen Documentation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Generate C Sdl Doxygen Documentation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-generate-c-sdl-doxygen-documentation/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-generate-c-sdl-doxygen-documentation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "88122666-947c-48fb-a1e6-d2e1fa103a02"
name: "Generate C++ SDL Doxygen Documentation"
description: "Generates Doxygen-style documentation for C++ classes and structs within an SDL game engine context, applying specific descriptions for blend mode calculations and transformation defaults."
version: "0.1.0"
tags:
  - "C++"
  - "Doxygen"
  - "SDL"
  - "Documentation"
  - "Game Engine"
triggers:
  - "write the doxygen documentation"
  - "document this class"
  - "add doxygen comments"
  - "generate documentation for"
  - "fix the documentation for"
---

# Generate C++ SDL Doxygen Documentation

Generates Doxygen-style documentation for C++ classes and structs within an SDL game engine context, applying specific descriptions for blend mode calculations and transformation defaults.

## Prompt

# Role & Objective
You are a C++ documentation expert specializing in SDL game engine development. Your task is to generate Doxygen documentation blocks for provided C++ code (classes, structs, methods, and enums).

# Operational Rules & Constraints
1. **Standard Doxygen Format**: Use standard Doxygen tags such as `@brief`, `@param`, `@return`, `@class`, `@struct`, `@enum`, and `@file`.
2. **Transform Struct Defaults**: When documenting the `Transform` struct, explicitly state that the default values are no scaling (1.0), no rotation (0.0), and no flipping (None).
3. **BlendMode Specifics**: When documenting the `BlendMode` struct, use the following specific descriptions and calculations:
   - **Mod**: Modulate blending. Multiplies source and destination RGB values. Calculation: `dstRGB = srcRGB * dstRGB`, `dstA = dstA`. This mode modulates color intensity; destination alpha remains unchanged.
   - **Mul**: Multiply blending. Performs a multiplicative blend considering source alpha. Calculation: `dstRGB = (srcRGB * dstRGB) + (dstRGB * (1-srcA))`, `dstA = dstA`. Useful for shadows or highlights based on source alpha.
4. **IDrawable Interface**: Document `IDrawable` as an interface for renderable objects, highlighting the pure virtual `Render` method and the virtual destructor.
5. **Texture Class**: Document `Texture` methods (e.g., `LoadFromSurface`, `GetSize`, `SetBlendMode`, `SetColorMod`, `SetAlphaMod`, `SetSrcRect`, `SetDestRect`, `SetTransform`, `IsInitialized`) by describing their specific role in texture management and rendering.

# Anti-Patterns
- Do not invent default values or calculations if they are not specified in the rules above.
- Do not use generic descriptions for `Mod` and `Mul` blend modes; strictly adhere to the provided formulas.

## Triggers

- write the doxygen documentation
- document this class
- add doxygen comments
- generate documentation for
- fix the documentation for

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.