 |
API Documentation
|
|
|
nkMaths::Matrix * getDataAsMatrix() const
ShaderPassMemorySlot(System *system) noexcept
void setAsProjectionParameters(Camera *forcedCamera=nullptr)
@ TIME
Writes information about time (nkFloat4).
A memory slot in a memory resource.
Definition: ShaderMemorySlot.h:15
@ VIEW_MATRIX_INV
Writes the active inverse view matrix (nkFloat4x4).
void setAsViewMatrix(Camera *forcedCamera=nullptr)
Main interface with the component system.
Definition: System.h:14
@ CAM_POSITION
Writes the active camera position (nkFloat4).
Offers all controls to model a camera.
Definition: Camera.h:14
@ VECTOR
Writes a vector (nkFloat4).
virtual void importClassFromTree(nkExport::Node *rootNode) override
A texture used for rendering, hosted on GPU.
Definition: Texture.h:12
void setAsProjectionMatrix(Camera *forcedCamera=nullptr)
DATA_TYPE getType() const
@ CUSTOM
Uses a custom slot made by external code.
@ TEXTURE_SIZE
Writes a given texture's size (nkInt4).
@ CAM_CORNERS_VIEW
Writes the cam corners direction in view space (nkFloat4 [4]).
@ TARGET_SIZE
Writes the active render target size (nkInt4).
Represents a 4x4 float matrix.
Definition: Matrix.h:15
void setAsProjectionMatrixInv(Camera *forcedCamera=nullptr)
@ PROJECTION_PARAMS
Writes the projection parameters (nkFloat4).
DATA_TYPE
Definition: ShaderPassMemorySlot.h:22
@ VIEW_MATRIX
Writes the active view matrix (nkFloat4x4).
virtual nkMemory::StringView getDataTypeAsString() const override
void setAsCamCornersView(Camera *forcedCamera=nullptr)
void setAsViewProjectionMatrix(Camera *forcedCamera=nullptr)
A memory slot that fits into a ConstantBuffer. The slot fills entries within the buffer.
Definition: ShaderPassMemorySlot.h:15
@ PROJ_MATRIX_INV
Writes the active inverse projection matrix (nkFloat4x4).
nkMaths::Vector * getDataAsVector() const
void setFromVector(const nkMaths::Vector &data)
@ MATRIX
Writes a matrix (nkFloat4x4).
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
void setAsCameraDirectionWorld(Camera *forcedCamera=nullptr)
void setAsViewMatrixInv(Camera *forcedCamera=nullptr)
@ UNKNOWN
Unknown place holder.
virtual unsigned int getDataSize() const
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
void setAsTextureSize(Texture *tex)
void setAsCustom(nkMemory::UniquePtr< ShaderPassCustomSlot > slot)
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
@ CAM_CORNERS_WORLD
Writes the cam corners direction in world space (nkFloat4 [4]).
@ CAM_DIRECTION_WORLD
Writes the active camera direction (nkFloat4).
virtual ~ShaderPassMemorySlot()
@ PROJ_MATRIX
Writes the active projection matrix (nkFloat4x4).
void setAsTime(unsigned int modulo)
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
void setAsCameraPosition(Camera *forcedCamera=nullptr)
A 4-component vector class, with floats.
Definition: Vector.h:12
void setAsCamCornersWorld(Camera *forcedCamera=nullptr)
virtual void exportClassToTree(nkExport::Node *rootNode) override
void setFromMatrix(const nkMaths::Matrix &data)