Move texture cube mapping to renderer gl
This commit is contained in:
@@ -212,6 +212,15 @@ void maps_panopainter_cube_faces_to_texture_targets(pp::tests::Harness& h)
|
||||
{
|
||||
const auto targets = pp::renderer::gl::panopainter_cube_face_texture_targets();
|
||||
|
||||
PP_EXPECT(h, pp::renderer::gl::texture_cube_map_target() == 0x8513U);
|
||||
PP_EXPECT(h, pp::renderer::gl::cube_map_allocation_face_texture_target(0U) == 0x8515U);
|
||||
PP_EXPECT(h, pp::renderer::gl::cube_map_allocation_face_texture_target(1U) == 0x8516U);
|
||||
PP_EXPECT(h, pp::renderer::gl::cube_map_allocation_face_texture_target(2U) == 0x8517U);
|
||||
PP_EXPECT(h, pp::renderer::gl::cube_map_allocation_face_texture_target(3U) == 0x8518U);
|
||||
PP_EXPECT(h, pp::renderer::gl::cube_map_allocation_face_texture_target(4U) == 0x8519U);
|
||||
PP_EXPECT(h, pp::renderer::gl::cube_map_allocation_face_texture_target(5U) == 0x851AU);
|
||||
PP_EXPECT(h, pp::renderer::gl::cube_map_allocation_face_texture_target(6U) == 0U);
|
||||
|
||||
PP_EXPECT(h, targets.size() == 6U);
|
||||
PP_EXPECT(h, targets[0] == 0x851AU);
|
||||
PP_EXPECT(h, targets[1] == 0x8516U);
|
||||
|
||||
Reference in New Issue
Block a user