nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
specular_back_tests.h
1#ifndef NXDK_PGRAPH_TESTS_SPECULAR_BACK_TESTS_H
2#define NXDK_PGRAPH_TESTS_SPECULAR_BACK_TESTS_H
3
4#include "test_suite.h"
5
6namespace PBKitPlusPlus {
7class VertexBuffer;
8}
9class TestHost;
10
11using namespace PBKitPlusPlus;
12
18 public:
19 SpecularBackTests(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 CreateGeometry();
33
34 std::shared_ptr<VertexBuffer> vertex_buffer_cone_;
35 std::shared_ptr<VertexBuffer> vertex_buffer_cylinder_;
36 std::shared_ptr<VertexBuffer> vertex_buffer_sphere_;
37 std::shared_ptr<VertexBuffer> vertex_buffer_suzanne_;
38 std::shared_ptr<VertexBuffer> vertex_buffer_torus_;
39};
40
41#endif // NXDK_PGRAPH_TESTS_SPECULAR_BACK_TESTS_H
Definition specular_back_tests.h:17
void Initialize() override
Called to initialize the test suite.
Definition specular_back_tests.cpp:303
void Deinitialize() override
Called to tear down the test suite.
Definition specular_back_tests.cpp:334
Definition test_host.h:33
Definition test_suite.h:20
Runtime configuration for TestSuites.
Definition test_suite.h:23