XII Release 0.1.0
Loading...
Searching...
No Matches
xiiEditorGrid Class Reference

#include <EditorGrid.h>

Public Member Functions

xiiResult Build (const xiiView &view, float fSpacing, const xiiTransform &transform=xiiTransform::MakeIdentity(), bool bGlobal=true)
 Copyright (c) Theophilus Eriata. All Rights Reserved.
xiiArrayPtr< const xiiDebugRendererLine > GetLines () const
 Valid until the next Build() or destruction. Coordinates are in world space.

Detailed Description

Reusable CPU geometry for scene and asset-preview grids. Submit GetLines() through xiiDebugRenderer; the grid owns no GPU resources, passes, world objects, or persistent render data.

Member Function Documentation

◆ Build()

xiiResult xiiEditorGrid::Build ( const xiiView & view,
float fSpacing,
const xiiTransform & transform = xiiTransform::MakeIdentity(),
bool bGlobal = true )

Copyright (c) Theophilus Eriata. All Rights Reserved.

Perspective grids span 50 steps either side of the supplied origin/rotation (scale is ignored). Orthographic grids fill the viewport at a depth behind its scene and align with the camera axes. Their spacing increases by powers of ten to retain at least ten pixels between lines and bound work to at most 2050 intervals per axis. Orthographic global grids snap to the world origin; local grids snap to the supplied origin. Zero spacing or a zero transform scale disables the grid successfully. Invalid settings clear the output and return failure. Storage capacity is retained across builds.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Editor/EditorEngineProcessFramework/Rendering/EditorGrid.h
  • /home/runner/work/XII/XII/Source/Editor/EditorEngineProcessFramework/Rendering/Implementation/EditorGrid.cpp