40 lines
1.6 KiB
Markdown
40 lines
1.6 KiB
Markdown
# Juliet\include\Graphics\MeshRenderer
|
|
|
|
## Source Files
|
|
- Header: `Juliet\include\Graphics\MeshRenderer.h`
|
|
- Source: `Juliet\src\Graphics\MeshRenderer.cpp`
|
|
|
|
## AI Description
|
|
*No AI description generated yet.*
|
|
|
|
## Symbols
|
|
|
|
### Namespace `Juliet`
|
|
|
|
#### Classes, Structs & Unions
|
|
- `struct MeshRenderer`
|
|
|
|
#### Functions & Methods
|
|
- `constexpr size_t kGeometryPage = Megabytes(64)`
|
|
- `constexpr size_t kIndexPage = Megabytes(32)`
|
|
- `JULIET_API void InitializeMeshRenderer(NonNullPtr<Arena> arena)`
|
|
- `[[nodiscard]] JULIET_API bool InitializeMeshRendererGraphics(NonNullPtr<GraphicsDevice> device, NonNullPtr<Window> window)`
|
|
- `JULIET_API void ShutdownMeshRendererGraphics()`
|
|
- `JULIET_API void ShutdownMeshRenderer()`
|
|
- `JULIET_API void LoadMeshesOnGPU(NonNullPtr<CommandList> cmdList)`
|
|
- `JULIET_API void RenderMeshes(NonNullPtr<RenderPass> pass, NonNullPtr<CommandList> cmdList, PushData& pushData)`
|
|
- `// Lights
|
|
[[nodiscard]] JULIET_API LightID AddPointLight(const PointLight& light)`
|
|
- `JULIET_API void SetPointLightPosition(LightID id, const Vector3& position)`
|
|
- `JULIET_API void SetPointLightColor(LightID id, const Vector3& color)`
|
|
- `JULIET_API void SetPointLightRadius(LightID id, float radius)`
|
|
- `JULIET_API void SetPointLightIntensity(LightID id, float intensity)`
|
|
- `JULIET_API void ClearPointLights()`
|
|
- `// Utils
|
|
[[nodiscard]] JULIET_API MeshID AddCube()`
|
|
- `[[nodiscard]] JULIET_API MeshID AddQuad()`
|
|
- `JULIET_API void SetMeshTransform(MeshID id, const Matrix& transform)`
|
|
- `#if ALLOW_SHADER_HOT_RELOAD
|
|
JULIET_API void ReloadMeshRendererShaders()`
|
|
|