PuzzleSDK
MaterialSystemTest.cpp 文件参考
#include "MaterialSystemTest.h"
#include <ctime>
#include <spine/spine-cocos2dx.h>
#include "../testResource.h"
#include "cocos2d.h"
#include "ui/CocosGUI.h"
+ MaterialSystemTest.cpp 的引用(Include)关系图:

浏览源代码.

class  EffectAutoBindingResolver
 

宏定义

#define FETCH_CCTIME_LOCATION(sprite)
 

函数

static void printProperties (Properties *properties, int indent)
 

变量

 USING_NS_CC
 
const int SHOW_LEBAL_TAG = 114
 

宏定义说明

◆ FETCH_CCTIME_LOCATION

#define FETCH_CCTIME_LOCATION (   sprite)
值:
do { \
auto programState = sprite->getProgramState(); \
auto location = programState->getUniformLocation("u_Time"); \
timeUniforms.emplace_back(programState, location); \
}while(0)

函数说明

◆ printProperties()

static void printProperties ( Properties *  properties,
int  indent 
)
static

在文件 MaterialSystemTest.cpp486 行定义.

487{
488 // Print the name and ID of the current namespace.
489 const char* spacename = properties->getNamespace();
490 const char* id = properties->getId();
491 char chindent[64];
492 int i=0;
493 for(i=0; i<indent*2;i++)
494 chindent[i] = ' ';
495 chindent[i] = '\0';
496
497 log("%sNamespace: %s ID: %s\n%s{", chindent, spacename, id, chindent);
498
499 // Print all properties in this namespace.
500 const char* name = properties->getNextProperty();
501 const char* value = NULL;
502 while (name != NULL)
503 {
504 value = properties->getString(name);
505 log("%s%s = %s", chindent, name, value);
506 name = properties->getNextProperty();
507 }
508
509 Properties* space = properties->getNextNamespace();
510 while (space != NULL)
511 {
512 printProperties(space, indent+1);
513 space = properties->getNextNamespace();
514 }
515
516 log("%s}\n",chindent);
517}
static void printProperties(Properties *properties, int indent)

引用了 printProperties().

被这些函数引用 Material_2DEffects::onEnter(), Material_AutoBindings::onEnter() , 以及 printProperties().

+ 函数调用图:
+ 这是这个函数的调用关系图:

变量说明

◆ SHOW_LEBAL_TAG

const int SHOW_LEBAL_TAG = 114

◆ USING_NS_CC

USING_NS_CC

在文件 MaterialSystemTest.cpp36 行定义.