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
10// Tests behavior of 0x380 - glLineWidth
11class LineWidthTests : public TestSuite {
12 public:
13 LineWidthTests(TestHost& host, std::string output_dir, const Config& config);
14
15 void Initialize() override;
16 void TearDownTest() override;
17
18 // Line widths appear to be a 6.3 fixed point integer (so 0x08 => 1.000 is a width of 1).
19 typedef uint32_t fixed_t;
20
21 private:
22 void Test(const std::string& name, bool fill, fixed_t line_width);
23};
24
25#endif // NXDK_PGRAPH_TESTS_LINE_WIDTH_TESTS_H
Definition line_width_tests.h:11
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:33
Definition test_suite.h:20
Runtime configuration for TestSuites.
Definition test_suite.h:23