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
6namespace PBKitPlusPlus {
7class VertexBuffer;
8}
9class TestHost;
10
11using namespace PBKitPlusPlus;
12
17class SpecularTests : public TestSuite {
18 public:
19 SpecularTests(TestHost& host, std::string output_dir, const Config& config);
20
21 void Initialize() override;
22 void Deinitialize() override;
23
24 private:
26 void TestControlFlags(const std::string& name, bool use_fixed_function, bool enable_lighting, bool enable_light);
27
29 void TestSpecularParams(const std::string& name, const float* specular_params);
30
32 void TestNonUnitNormals(const std::string& name, float normal_length);
33
35 void CreateGeometry();
36
37 std::shared_ptr<VertexBuffer> vertex_buffer_cone_;
38 std::shared_ptr<VertexBuffer> vertex_buffer_cylinder_;
39 std::shared_ptr<VertexBuffer> vertex_buffer_sphere_;
40 std::shared_ptr<VertexBuffer> vertex_buffer_suzanne_;
41 std::shared_ptr<VertexBuffer> vertex_buffer_torus_;
42};
43
44#endif // NXDK_PGRAPH_TESTS_SPECULAR_TESTS_H
Definition specular_tests.h:17
void Initialize() override
Called to initialize the test suite.
Definition specular_tests.cpp:326
void Deinitialize() override
Called to tear down the test suite.
Definition specular_tests.cpp:360
Definition test_host.h:33
Definition test_suite.h:20
Runtime configuration for TestSuites.
Definition test_suite.h:23