/// <summary>
 /// Draws a line primitive between two 3d points. )
 ///
 /// </summary>
 public void drawLine(Point3F a, Point3F b, ColorF color)
 {
     TorqueScriptTemplate.m_ts.fnDebugDrawer_drawLine(_mSimObjectId, a.AsString(), b.AsString(), color.AsString());
 }
Exemple #2
0
 /// <summary>
 /// @brief Set the light color on the sun object used to render the model.
 ///    @param color Color of sunlight.
 ///    @tsexample
 ///    // Set the color value for the sun
 ///    %color = \"1.0 0.4 0.5\";
 ///    // Inform the GuiObjectView object to change the sun color to the defined value
 ///    %thisGuiObjectView.setLightColor(%color);
 ///    @endtsexample
 ///    @see GuiControl)
 ///
 /// </summary>
 public void setLightColor(ColorF color)
 {
     TorqueScriptTemplate.m_ts.fnGuiObjectView_setLightColor(_mSimObjectId, color.AsString());
 }
 public void setItemColor(int index, ColorF color)
 {
     pInvokes.m_ts.fnGuiListBoxCtrl_setItemColor(_ID, index, color.AsString());
 }
Exemple #4
0
/// <summary>
/// Sets the color of the ambient light in the scene.)
///
/// </summary>
        public void setAmbientLightColor(ColorF color)
        {
            TorqueScriptTemplate.m_ts.fnGuiMaterialPreview_setAmbientLightColor(_mSimObjectId, color.AsString());
        }
 public void SetFogColorF(ColorF new_color)
 {
     pInvokes.m_ts.fnVolumetricFog_SetFogColorF(_ID, new_color.AsString());
 }
Exemple #6
0
 public void setLightColor(ColorF color)
 {
     pInvokes.m_ts.fnGuiMaterialPreview_setLightColor(_ID, color.AsString());
 }
 public void setLightColor(ColorF color)
 {
     pInvokes.m_ts.fnGuiObjectView_setLightColor(_ID, color.AsString());
 }
/// <summary>
/// @brief Sets the color of a single list entry at the specified index id.
///    @param index Index id to modify the color of in the list.
///    @param color Color value to set the list entry to.
///    @tsexample
///    // Define the index id value
///    %index = \"5\";
///    // Define the color value
///    %color = \"1.0 0.0 0.0\";
///    // Inform the GuiListBoxCtrl object to change the color of the requested index
///    %thisGuiListBoxCtrl.setItemColor(%index,%color);
///    @endtsexample
///    @see GuiControl)
///
/// </summary>
        public void setItemColor(int index, ColorF color)
        {
            TorqueScriptTemplate.m_ts.fnGuiListBoxCtrl_setItemColor(_mSimObjectId, index, color.AsString());
        }