nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
line_width_tests.h
1#ifndef NXDK_PGRAPH_TESTS_LINE_WIDTH_TESTS_H
2#define NXDK_PGRAPH_TESTS_LINE_WIDTH_TESTS_H
3
4#include <memory>
5#include <vector>
6
7#include "test_host.h"
8#include "test_suite.h"
9
10class TestHost;
11class VertexBuffer;
12
13// Tests behavior of 0x380 - glLineWidth
14class LineWidthTests : public TestSuite {
15 public:
16 LineWidthTests(TestHost& host, std::string output_dir, const Config& config);
17
18 void Initialize() override;
19 void TearDownTest() override;
20
21 // Line widths appear to be a 6.3 fixed point integer (so 0x08 => 1.000 is a width of 1).
22 typedef uint32_t fixed_t;
23
24 private:
25 void Test(const std::string& name, bool fill, fixed_t line_width);
26};
27
28#endif // NXDK_PGRAPH_TESTS_LINE_WIDTH_TESTS_H
Definition line_width_tests.h:14
void Initialize() override
Called to initialize the test suite.
Definition line_width_tests.cpp:68
void TearDownTest() override
Called after running an individual test within this suite.
Definition line_width_tests.cpp:90
Definition test_host.h:47
Definition test_suite.h:20
Definition vertex_buffer.h:204
Runtime configuration for TestSuites.
Definition test_suite.h:23