|
PuzzleSDK
|
#include <DrawNode3D.h>
类 DrawNode3D 继承关系图:
DrawNode3D 的协作图:类 | |
| struct | V3F_C4B |
Public 成员函数 | |
| void | drawLine (const cocos2d::Vec3 &from, const cocos2d::Vec3 &to, const Color4F &color) |
| void | drawCube (cocos2d::Vec3 *vertices, const Color4F &color) |
| void | clear () |
| const BlendFunc & | getBlendFunc () const |
| void | setBlendFunc (const BlendFunc &blendFunc) |
| void | updateCommand (cocos2d::Renderer *renderer, const cocos2d::Mat4 &transform, uint32_t flags) |
| virtual void | draw (cocos2d::Renderer *renderer, const cocos2d::Mat4 &transform, uint32_t flags) override |
| virtual | ~DrawNode3D () |
| virtual bool | init () override |
静态 Public 成员函数 | |
| static cocos2d::DrawNode3D * | create () |
Public 属性 | |
| CC_CONSTRUCTOR_ACCESS | __pad0__: DrawNode3D() |
Protected 成员函数 | |
| void | onBeforeDraw () |
| void | onAfterDraw () |
| void | ensureCapacity (int count) |
Protected 属性 | |
| BlendFunc | _blendFunc |
| cocos2d::CustomCommand | _customCommand |
| backend::ProgramState * | _programStateLine = nullptr |
| backend::DepthStencilDescriptor * | _depthstencilDescriptor = nullptr |
| backend::UniformLocation | _locMVPMatrix |
| std::vector< V3F_C4B > | _bufferLines |
Private 成员函数 | |
| CC_DISALLOW_COPY_AND_ASSIGN (DrawNode3D) | |
Private 属性 | |
| bool | _isDirty = true |
| bool | _rendererDepthTestEnabled = true |
Copy DrawNode for 3D geometry drawing.
在文件 DrawNode3D.h 第 36 行定义.
|
virtual |
在文件 DrawNode3D.cpp 第 36 行定义.
引用了 _depthstencilDescriptor , 以及 _programStateLine.
|
private |
| void DrawNode3D::clear | ( | ) |
Clear the geometry in the node's buffer.
在文件 DrawNode3D.cpp 第 193 行定义.
引用了 _bufferLines , 以及 _isDirty.
|
static |
creates and initialize a DrawNode3D node
在文件 DrawNode3D.cpp 第 42 行定义.
引用了 init().
被这些函数引用 Sprite3DWithOBBPerformanceTest::addNewSpriteWithCoords(), Sprite3DWithOBBPerformanceTest::initDrawBox(), Camera3DTestDemo::onEnter(), CameraCullingDemo::onEnter() , 以及 CameraArcBallDemo::onEnter().
函数调用图:
这是这个函数的调用关系图:
|
overridevirtual |
在文件 DrawNode3D.cpp 第 122 行定义.
引用了 _bufferLines, _customCommand, _isDirty , 以及 updateCommand().
函数调用图:| void DrawNode3D::drawCube | ( | cocos2d::Vec3 * | vertices, |
| const Color4F & | color | ||
| ) |
Draw 3D cube
| point | to a vertex array who has 8 element. vertices[0]:Left-top-front, vertices[1]:Left-bottom-front, vertices[2]:Right-bottom-front, vertices[3]:Right-top-front, vertices[4]:Right-top-back, vertices[5]:Right-bottom-back, vertices[6]:Left-bottom-back, vertices[7]:Left-top-back. |
| color |
在文件 DrawNode3D.cpp 第 172 行定义.
引用了 drawLine().
函数调用图:| void DrawNode3D::drawLine | ( | const cocos2d::Vec3 & | from, |
| const cocos2d::Vec3 & | to, | ||
| const Color4F & | color | ||
| ) |
Draw 3D Line
在文件 DrawNode3D.cpp 第 157 行定义.
引用了 _bufferLines, _isDirty , 以及 ensureCapacity().
被这些函数引用 drawCube() , 以及 Camera3DTestDemo::onEnter().
函数调用图:
这是这个函数的调用关系图:
|
protected |
在文件 DrawNode3D.cpp 第 57 行定义.
引用了 _bufferLines , 以及 _customCommand.
被这些函数引用 drawLine() , 以及 init().
这是这个函数的调用关系图:| const BlendFunc & DrawNode3D::getBlendFunc | ( | ) | const |
|
overridevirtual |
在文件 DrawNode3D.cpp 第 72 行定义.
引用了 _blendFunc, _customCommand, _isDirty, _locMVPMatrix, _programStateLine, ensureCapacity(), init(), INITIAL_VERTEX_BUFFER_LENGTH, onAfterDraw() , 以及 onBeforeDraw().
函数调用图:
这是这个函数的调用关系图:
|
protected |
|
protected |
| void DrawNode3D::setBlendFunc | ( | const BlendFunc & | blendFunc | ) |
@lua NA
在文件 DrawNode3D.cpp 第 204 行定义.
引用了 _blendFunc.
| void DrawNode3D::updateCommand | ( | cocos2d::Renderer * | renderer, |
| const cocos2d::Mat4 & | transform, | ||
| uint32_t | flags | ||
| ) |
在文件 DrawNode3D.cpp 第 141 行定义.
引用了 _blendFunc, _bufferLines, _customCommand, _locMVPMatrix , 以及 _programStateLine.
被这些函数引用 draw().
这是这个函数的调用关系图:| CC_CONSTRUCTOR_ACCESS DrawNode3D::__pad0__ |
在文件 DrawNode3D.h 第 85 行定义.
|
protected |
在文件 DrawNode3D.h 第 103 行定义.
被这些函数引用 getBlendFunc(), init(), setBlendFunc() , 以及 updateCommand().
|
protected |
在文件 DrawNode3D.h 第 108 行定义.
被这些函数引用 clear(), draw(), drawLine(), ensureCapacity() , 以及 updateCommand().
|
protected |
在文件 DrawNode3D.h 第 104 行定义.
被这些函数引用 draw(), ensureCapacity(), init() , 以及 updateCommand().
|
protected |
在文件 DrawNode3D.h 第 106 行定义.
被这些函数引用 ~DrawNode3D().
|
private |
在文件 DrawNode3D.h 第 114 行定义.
被这些函数引用 clear(), draw(), drawLine() , 以及 init().
|
protected |
在文件 DrawNode3D.h 第 107 行定义.
被这些函数引用 init() , 以及 updateCommand().
|
protected |
在文件 DrawNode3D.h 第 105 行定义.
被这些函数引用 init(), updateCommand() , 以及 ~DrawNode3D().
|
private |
在文件 DrawNode3D.h 第 115 行定义.
被这些函数引用 onAfterDraw() , 以及 onBeforeDraw().