diff --git a/tests/D3D12/README.md b/tests/D3D12/AGENT.md similarity index 100% rename from tests/D3D12/README.md rename to tests/D3D12/AGENT.md diff --git a/tests/OpenGL/AGENT.md b/tests/OpenGL/AGENT.md new file mode 100644 index 00000000..85152b16 --- /dev/null +++ b/tests/OpenGL/AGENT.md @@ -0,0 +1,54 @@ +# OpenGL Test Agent Instructions + +## Quick Start + +```bash +# Build +cmake --build build --config Debug --target XCRender + +# Run test +./build/tests/OpenGL/Debug/run.bat + +# Or manually: +cd build/tests/OpenGL/Debug +XCRender.exe +python compare_ppm.py screenshot.ppm GT.ppm 5 +``` + +## Test Details + +- **Resolution**: 1280x720 +- **Screenshot Frame**: 30 +- **Reference Image**: GT.ppm +- **Comparison Threshold**: 5 pixels + +## Build Target + +- Target name: `XCRender` +- Output: `build/tests/OpenGL/Debug/XCRender.exe` + +## Test Output + +- Log file: `OpenGL_engine_log.txt` +- Screenshot: `screenshot.ppm` + +## Dependencies + +- GLFW 3.3 +- GLAD +- Assimp +- GLM +- stb_image + +## Resources + +- Model: `res/models/backpack/backpack.obj` +- Shaders: `Shaders/vertexshader.glsl`, `Shaders/fragmentshader.glsl` + +## Troubleshooting + +| Issue | Solution | +|-------|----------| +| Black screen | Check shader compilation errors in log | +| No textures | Verify res/models/ directory exists | +| Model not loading | Check model file path |