nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
specular_tests.h
1#ifndef NXDK_PGRAPH_TESTS_SPECULAR_TESTS_H
2#define NXDK_PGRAPH_TESTS_SPECULAR_TESTS_H
3
4#include "test_suite.h"
5
6class VertexBuffer;
7class TestHost;
8
13class SpecularTests : public TestSuite {
14 public:
15 SpecularTests(TestHost& host, std::string output_dir, const Config& config);
16
17 void Initialize() override;
18 void Deinitialize() override;
19
20 private:
22 void TestControlFlags(const std::string& name, bool use_fixed_function, bool enable_lighting, bool enable_light);
23
25 void TestSpecularParams(const std::string& name, const float* specular_params);
26
28 void TestNonUnitNormals(const std::string& name, float normal_length);
29
31 void CreateGeometry();
32
33 std::shared_ptr<VertexBuffer> vertex_buffer_cone_;
34 std::shared_ptr<VertexBuffer> vertex_buffer_cylinder_;
35 std::shared_ptr<VertexBuffer> vertex_buffer_sphere_;
36 std::shared_ptr<VertexBuffer> vertex_buffer_suzanne_;
37 std::shared_ptr<VertexBuffer> vertex_buffer_torus_;
38};
39
40#endif // NXDK_PGRAPH_TESTS_SPECULAR_TESTS_H
Definition specular_tests.h:13
void Initialize() override
Called to initialize the test suite.
Definition specular_tests.cpp:327
void Deinitialize() override
Called to tear down the test suite.
Definition specular_tests.cpp:361
Definition test_host.h:47
Definition test_suite.h:20
Definition vertex_buffer.h:204
Runtime configuration for TestSuites.
Definition test_suite.h:23