sead
Loading...
Searching...
No Matches
sead::PrimitiveRendererCafe Class Reference

#include <seadPrimitiveRendererCafe.h>

Inherits sead::PrimitiveRendererBase.

Public Member Functions

 PrimitiveRendererCafe (Heap *heap)
virtual void prepareFromBinaryImpl (Heap *heap, const void *bin_data, u32)
virtual void prepareImpl (Heap *heap, const SafeString &path)
virtual void setCameraImpl (const Camera &camera)
virtual void setProjectionImpl (const Projection &projection)
virtual void beginImpl ()
virtual void endImpl ()
virtual void drawQuadImpl (const Matrix34f &model_mtx, const Color4f &colorL, const Color4f &colorR)
virtual void drawQuadImpl (const Matrix34f &model_mtx, const Texture &texture, const Color4f &colorL, const Color4f &colorR, const Vector2f &uv_src, const Vector2f &uv_size)
virtual void drawBoxImpl (const Matrix34f &model_mtx, const Color4f &colorL, const Color4f &colorR)
virtual void drawCubeImpl (const Matrix34f &model_mtx, const Color4f &c0, const Color4f &c1)
virtual void drawWireCubeImpl (const Matrix34f &model_mtx, const Color4f &c0, const Color4f &c1)
virtual void drawLineImpl (const Matrix34f &model_mtx, const Color4f &c0, const Color4f &c1)
virtual void drawSphere4x8Impl (const Matrix34f &model_mtx, const Color4f &north, const Color4f &south)
virtual void drawSphere8x16Impl (const Matrix34f &model_mtx, const Color4f &north, const Color4f &south)
virtual void drawDisk16Impl (const Matrix34f &model_mtx, const Color4f &center, const Color4f &edge)
virtual void drawDisk32Impl (const Matrix34f &model_mtx, const Color4f &center, const Color4f &edge)
virtual void drawCircle16Impl (const Matrix34f &model_mtx, const Color4f &edge)
virtual void drawCircle32Impl (const Matrix34f &model_mtx, const Color4f &edge)
virtual void drawCylinder16Impl (const Matrix34f &model_mtx, const Color4f &top, const Color4f &btm)
virtual void drawCylinder32Impl (const Matrix34f &model_mtx, const Color4f &top, const Color4f &btm)
virtual ~PrimitiveRendererCafe ()
void drawTriangles_ (const Matrix34f &model_mtx, const Color4f &c0, const Color4f &c1, PrimitiveRendererUtil::Vertex *vtx, u32 vtx_num, u16 *idx, u32 idx_num, const GX2Texture *tex)
void drawLines_ (const Matrix34f &model_mtx, const Color4f &c0, const Color4f &c1, PrimitiveRendererUtil::Vertex *vtx, u32 vtx_num, u16 *idx, u32 idx_num)

Private Attributes

Matrix34f mCameraMtx
Matrix44f mProjectionMtx
GX2VertexShader * mVertexShader
GX2PixelShader * mPixelShader
u32 mParamWVPOffset
u32 mParamUserOffset
u32 mParamRateOffset
u32 mParamColor0Offset
u32 mParamColor1Offset
u32 mParamTexLocation
u32 mAttrVertexLocation
u32 mAttrTexCoord0Location
u32 mAttrColorRateLocation
GX2AttribStream mAttributes [3]
void * mFetchShaderBufPtr
GX2FetchShader mFetchShader
GX2Sampler mDrawQuadSampler
PrimitiveRendererUtil::VertexmQuadVertexBuf
u16 * mQuadIndexBuf
u16 * mBoxIndexBuf
PrimitiveRendererUtil::VertexmLineVertexBuf
u16 * mLineIndexBuf
PrimitiveRendererUtil::VertexmCubeVertexBuf
u16 * mCubeIndexBuf
PrimitiveRendererUtil::VertexmWireCubeVertexBuf
u16 * mWireCubeIndexBuf
PrimitiveRendererUtil::VertexmSphereSVertexBuf
u16 * mSphereSIndexBuf
PrimitiveRendererUtil::VertexmSphereLVertexBuf
u16 * mSphereLIndexBuf
PrimitiveRendererUtil::VertexmDiskSVertexBuf
u16 * mDiskSIndexBuf
PrimitiveRendererUtil::VertexmDiskLVertexBuf
u16 * mDiskLIndexBuf
u16 * mCircleSIndexBuf
u16 * mCircleLIndexBuf
PrimitiveRendererUtil::VertexmCylinderSVertexBuf
u16 * mCylinderSIndexBuf
PrimitiveRendererUtil::VertexmCylinderLVertexBuf
u16 * mCylinderLIndexBuf

Constructor & Destructor Documentation

◆ PrimitiveRendererCafe()

sead::PrimitiveRendererCafe::PrimitiveRendererCafe ( Heap * heap)

◆ ~PrimitiveRendererCafe()

virtual sead::PrimitiveRendererCafe::~PrimitiveRendererCafe ( )
inlinevirtual

Member Function Documentation

◆ prepareFromBinaryImpl()

void sead::PrimitiveRendererCafe::prepareFromBinaryImpl ( Heap * heap,
const void * bin_data,
u32 bin_size )
virtual

◆ prepareImpl()

void sead::PrimitiveRendererCafe::prepareImpl ( Heap * heap,
const SafeString & path )
virtual

◆ setCameraImpl()

void sead::PrimitiveRendererCafe::setCameraImpl ( const Camera & camera)
virtual

◆ setProjectionImpl()

void sead::PrimitiveRendererCafe::setProjectionImpl ( const Projection & projection)
virtual

◆ beginImpl()

void sead::PrimitiveRendererCafe::beginImpl ( )
virtual

◆ endImpl()

void sead::PrimitiveRendererCafe::endImpl ( )
virtual

◆ drawQuadImpl() [1/2]

void sead::PrimitiveRendererCafe::drawQuadImpl ( const Matrix34f & model_mtx,
const Color4f & colorL,
const Color4f & colorR )
virtual

◆ drawQuadImpl() [2/2]

void sead::PrimitiveRendererCafe::drawQuadImpl ( const Matrix34f & model_mtx,
const Texture & texture,
const Color4f & colorL,
const Color4f & colorR,
const Vector2f & uv_src,
const Vector2f & uv_size )
virtual

◆ drawBoxImpl()

void sead::PrimitiveRendererCafe::drawBoxImpl ( const Matrix34f & model_mtx,
const Color4f & colorL,
const Color4f & colorR )
virtual

◆ drawCubeImpl()

void sead::PrimitiveRendererCafe::drawCubeImpl ( const Matrix34f & model_mtx,
const Color4f & c0,
const Color4f & c1 )
virtual

◆ drawWireCubeImpl()

void sead::PrimitiveRendererCafe::drawWireCubeImpl ( const Matrix34f & model_mtx,
const Color4f & c0,
const Color4f & c1 )
virtual

◆ drawLineImpl()

void sead::PrimitiveRendererCafe::drawLineImpl ( const Matrix34f & model_mtx,
const Color4f & c0,
const Color4f & c1 )
virtual

◆ drawSphere4x8Impl()

void sead::PrimitiveRendererCafe::drawSphere4x8Impl ( const Matrix34f & model_mtx,
const Color4f & north,
const Color4f & south )
virtual

◆ drawSphere8x16Impl()

void sead::PrimitiveRendererCafe::drawSphere8x16Impl ( const Matrix34f & model_mtx,
const Color4f & north,
const Color4f & south )
virtual

◆ drawDisk16Impl()

void sead::PrimitiveRendererCafe::drawDisk16Impl ( const Matrix34f & model_mtx,
const Color4f & center,
const Color4f & edge )
virtual

◆ drawDisk32Impl()

void sead::PrimitiveRendererCafe::drawDisk32Impl ( const Matrix34f & model_mtx,
const Color4f & center,
const Color4f & edge )
virtual

◆ drawCircle16Impl()

void sead::PrimitiveRendererCafe::drawCircle16Impl ( const Matrix34f & model_mtx,
const Color4f & edge )
virtual

◆ drawCircle32Impl()

void sead::PrimitiveRendererCafe::drawCircle32Impl ( const Matrix34f & model_mtx,
const Color4f & edge )
virtual

◆ drawCylinder16Impl()

void sead::PrimitiveRendererCafe::drawCylinder16Impl ( const Matrix34f & model_mtx,
const Color4f & top,
const Color4f & btm )
virtual

◆ drawCylinder32Impl()

void sead::PrimitiveRendererCafe::drawCylinder32Impl ( const Matrix34f & model_mtx,
const Color4f & top,
const Color4f & btm )
virtual

◆ drawTriangles_()

void sead::PrimitiveRendererCafe::drawTriangles_ ( const Matrix34f & model_mtx,
const Color4f & c0,
const Color4f & c1,
PrimitiveRendererUtil::Vertex * vtx,
u32 vtx_num,
u16 * idx,
u32 idx_num,
const GX2Texture * tex )

◆ drawLines_()

void sead::PrimitiveRendererCafe::drawLines_ ( const Matrix34f & model_mtx,
const Color4f & c0,
const Color4f & c1,
PrimitiveRendererUtil::Vertex * vtx,
u32 vtx_num,
u16 * idx,
u32 idx_num )

Member Data Documentation

◆ mCameraMtx

Matrix34f sead::PrimitiveRendererCafe::mCameraMtx
private

◆ mProjectionMtx

Matrix44f sead::PrimitiveRendererCafe::mProjectionMtx
private

◆ mVertexShader

GX2VertexShader* sead::PrimitiveRendererCafe::mVertexShader
private

◆ mPixelShader

GX2PixelShader* sead::PrimitiveRendererCafe::mPixelShader
private

◆ mParamWVPOffset

u32 sead::PrimitiveRendererCafe::mParamWVPOffset
private

◆ mParamUserOffset

u32 sead::PrimitiveRendererCafe::mParamUserOffset
private

◆ mParamRateOffset

u32 sead::PrimitiveRendererCafe::mParamRateOffset
private

◆ mParamColor0Offset

u32 sead::PrimitiveRendererCafe::mParamColor0Offset
private

◆ mParamColor1Offset

u32 sead::PrimitiveRendererCafe::mParamColor1Offset
private

◆ mParamTexLocation

u32 sead::PrimitiveRendererCafe::mParamTexLocation
private

◆ mAttrVertexLocation

u32 sead::PrimitiveRendererCafe::mAttrVertexLocation
private

◆ mAttrTexCoord0Location

u32 sead::PrimitiveRendererCafe::mAttrTexCoord0Location
private

◆ mAttrColorRateLocation

u32 sead::PrimitiveRendererCafe::mAttrColorRateLocation
private

◆ mAttributes

GX2AttribStream sead::PrimitiveRendererCafe::mAttributes[3]
private

◆ mFetchShaderBufPtr

void* sead::PrimitiveRendererCafe::mFetchShaderBufPtr
private

◆ mFetchShader

GX2FetchShader sead::PrimitiveRendererCafe::mFetchShader
private

◆ mDrawQuadSampler

GX2Sampler sead::PrimitiveRendererCafe::mDrawQuadSampler
private

◆ mQuadVertexBuf

PrimitiveRendererUtil::Vertex* sead::PrimitiveRendererCafe::mQuadVertexBuf
private

◆ mQuadIndexBuf

u16* sead::PrimitiveRendererCafe::mQuadIndexBuf
private

◆ mBoxIndexBuf

u16* sead::PrimitiveRendererCafe::mBoxIndexBuf
private

◆ mLineVertexBuf

PrimitiveRendererUtil::Vertex* sead::PrimitiveRendererCafe::mLineVertexBuf
private

◆ mLineIndexBuf

u16* sead::PrimitiveRendererCafe::mLineIndexBuf
private

◆ mCubeVertexBuf

PrimitiveRendererUtil::Vertex* sead::PrimitiveRendererCafe::mCubeVertexBuf
private

◆ mCubeIndexBuf

u16* sead::PrimitiveRendererCafe::mCubeIndexBuf
private

◆ mWireCubeVertexBuf

PrimitiveRendererUtil::Vertex* sead::PrimitiveRendererCafe::mWireCubeVertexBuf
private

◆ mWireCubeIndexBuf

u16* sead::PrimitiveRendererCafe::mWireCubeIndexBuf
private

◆ mSphereSVertexBuf

PrimitiveRendererUtil::Vertex* sead::PrimitiveRendererCafe::mSphereSVertexBuf
private

◆ mSphereSIndexBuf

u16* sead::PrimitiveRendererCafe::mSphereSIndexBuf
private

◆ mSphereLVertexBuf

PrimitiveRendererUtil::Vertex* sead::PrimitiveRendererCafe::mSphereLVertexBuf
private

◆ mSphereLIndexBuf

u16* sead::PrimitiveRendererCafe::mSphereLIndexBuf
private

◆ mDiskSVertexBuf

PrimitiveRendererUtil::Vertex* sead::PrimitiveRendererCafe::mDiskSVertexBuf
private

◆ mDiskSIndexBuf

u16* sead::PrimitiveRendererCafe::mDiskSIndexBuf
private

◆ mDiskLVertexBuf

PrimitiveRendererUtil::Vertex* sead::PrimitiveRendererCafe::mDiskLVertexBuf
private

◆ mDiskLIndexBuf

u16* sead::PrimitiveRendererCafe::mDiskLIndexBuf
private

◆ mCircleSIndexBuf

u16* sead::PrimitiveRendererCafe::mCircleSIndexBuf
private

◆ mCircleLIndexBuf

u16* sead::PrimitiveRendererCafe::mCircleLIndexBuf
private

◆ mCylinderSVertexBuf

PrimitiveRendererUtil::Vertex* sead::PrimitiveRendererCafe::mCylinderSVertexBuf
private

◆ mCylinderSIndexBuf

u16* sead::PrimitiveRendererCafe::mCylinderSIndexBuf
private

◆ mCylinderLVertexBuf

PrimitiveRendererUtil::Vertex* sead::PrimitiveRendererCafe::mCylinderLVertexBuf
private

◆ mCylinderLIndexBuf

u16* sead::PrimitiveRendererCafe::mCylinderLIndexBuf
private