本文整理汇总了C++中PointLight::getProperties方法的典型用法代码示例。如果您正苦于以下问题:C++ PointLight::getProperties方法的具体用法?C++ PointLight::getProperties怎么用?C++ PointLight::getProperties使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PointLight
的用法示例。
在下文中一共展示了PointLight::getProperties方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Scene
/** Construct the scene */
Scene() :
// You have to call the parent class's constructor, to provide a
// name for the model.
Model("Scene"),
worm1("1"),
worm2("2"),
ground(),
mushroom1("1"),
mushroom2("2"),
// Construct textures and shaders.
// They won't be loaded until the model is drawn for the first time.
texture("checkers.png"),
shader("shader.vert", "shader.frag", NULL),
// Call the constructors for the lights
pointLight("Point Light", GL_LIGHT1, /**direction part**/ -5, 5, 5, /**diffuse part**/ 1.0, 0.5, 0.5,
/**specular part**/ 1.0, 0.5, 0.5, /**ambient part**/ .2f, 0.1, 0.1 /**attenuation part**/, 0.4, 0.7, 0),
directionalLight("Directional Light", GL_LIGHT0, /**direction part**/ 5, 5, 5, /**diffuse part**/ 0.0f, 0.5, 0.5f,
/**specular part**/ 0.0f, 0.5f, 0.5f )
// Now, call the constructors for each Property:
{
// If you have child Models, like the MobileLight model from model.h,
// you can add their property groups, and they will appear in the list
// in the top left corner of Modeler, under this model's entry:
properties.add(pointLight.getProperties())
.add(directionalLight.getProperties());
properties.add(robotArm.getProperties())
.add(worm1.getProperties())
.add(worm2.getProperties())
.add(ground.getProperties())
.add(mushroom1.getProperties())
.add(mushroom2.getProperties());
// Finally, add all the properties to this model's PropertyGroup.
}