opensurgsim
Namespaces | Functions
OsgProgramTests.cpp File Reference

Tests for the OsgProgram class. More...

#include "SurgSim/Framework/ApplicationData.h"
#include "SurgSim/Graphics/OsgProgram.h"
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <gtest/gtest.h>
#include <sstream>

Namespaces

 SurgSim
 Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui needs glew but we need to call glewInit() from a osg callback, using this call we avoid getting warnings about redefinitions.
 

Functions

 SurgSim::Graphics::TEST (OsgProgramTests, InitTest)
 
 SurgSim::Graphics::TEST (OsgProgramTests, StateSetTest)
 
 SurgSim::Graphics::TEST (OsgProgramTests, SetShaderSourceTest)
 
void SurgSim::Graphics::expectFileContents (const std::string &filePath, const std::string &contents)
 
 SurgSim::Graphics::TEST (OsgProgramTests, LoadShaderSourceTest)
 
 SurgSim::Graphics::TEST (OsgProgramTests, ClearShaderTest)
 

Detailed Description

Tests for the OsgProgram class.

Function Documentation

§ TEST()

SurgSim::Graphics::TEST ( OsgProgramTests  ,
StateSetTest   
)

Add the program to the state set

Remove the program from the state set