当前位置: 首页>>代码示例>>C++>>正文


C++ PointLight::getProperties方法代码示例

本文整理汇总了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.
    }
开发者ID:jingjingwang,项目名称:557-animator,代码行数:39,代码来源:sample.cpp


注:本文中的PointLight::getProperties方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。