- Setup EGL context for Wayland. Test window now opens as black rectangle.
This commit is contained in:
@@ -16,23 +16,46 @@
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
// =====================================================================================================================
|
||||
|
||||
#ifndef FENNEC_TEST_LANG_SEQUENCES_H
|
||||
#define FENNEC_TEST_LANG_SEQUENCES_H
|
||||
///
|
||||
/// \file test_metaprogramming.h
|
||||
/// \brief
|
||||
///
|
||||
///
|
||||
/// \details
|
||||
/// \author Medusa Slockbower
|
||||
///
|
||||
/// \copyright Copyright © 2025 Medusa Slockbower ([GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html))
|
||||
///
|
||||
///
|
||||
|
||||
#include <fennec/lang/const_sequences.h>
|
||||
|
||||
#ifndef FENNEC_TEST_LANG_METAPROGRAMMING_H
|
||||
#define FENNEC_TEST_LANG_METAPROGRAMMING_H
|
||||
|
||||
#include "../../test.h"
|
||||
|
||||
namespace fennec::test
|
||||
{
|
||||
|
||||
inline void test_sequences()
|
||||
{
|
||||
static_assert(fennec::is_same_v<make_index_sequence_t<2>, const_index_sequence<0, 1>>);
|
||||
static_assert(fennec::is_same_v<make_index_sequence_t<3>, const_index_sequence<0, 1, 2>>);
|
||||
static_assert(fennec::is_same_v<make_index_sequence_t<4>, const_index_sequence<0, 1, 2, 3>>);
|
||||
struct metaprogramming_test {
|
||||
|
||||
// TODO
|
||||
}
|
||||
};
|
||||
|
||||
struct metaprogramming_test_base {
|
||||
|
||||
};
|
||||
|
||||
struct metaprogramming_test_derived : metaprogramming_test_base {
|
||||
|
||||
};
|
||||
|
||||
inline void fennec_test_lang_metaprogramming() {
|
||||
|
||||
fennec_test_run((is_base_of_v<metaprogramming_test_base, metaprogramming_test_derived>), true);
|
||||
fennec_test_run((is_base_of_v<metaprogramming_test, metaprogramming_test_derived>), false);
|
||||
|
||||
}
|
||||
|
||||
#endif // FENNEC_TEST_LANG_SEQUENCES_H
|
||||
}
|
||||
|
||||
#endif // FENNEC_TEST_LANG_METAPROGRAMMING_H
|
||||
@@ -22,12 +22,12 @@
|
||||
#include "lang/test_bits.h"
|
||||
#include "lang/test_conditional_types.h"
|
||||
#include "lang/test_hashing.h"
|
||||
#include "lang/test_metaprogramming.h"
|
||||
|
||||
namespace fennec::test
|
||||
{
|
||||
|
||||
inline void fennec_test_lang()
|
||||
{
|
||||
inline void fennec_test_lang() {
|
||||
fennec_test_subheader("bit tests");
|
||||
fennec_test_spacer(2);
|
||||
fennec_test_lang_bits();
|
||||
@@ -36,6 +36,11 @@ namespace fennec::test
|
||||
fennec_test_subheader("hashing tests");
|
||||
fennec_test_spacer(2);
|
||||
fennec_test_lang_hashing();
|
||||
fennec_test_spacer(3);
|
||||
|
||||
fennec_test_subheader("metaprogramming tests");
|
||||
fennec_test_spacer(2);
|
||||
fennec_test_lang_metaprogramming();
|
||||
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -48,7 +48,10 @@ inline void fennec_test_platform() {
|
||||
window->show();
|
||||
|
||||
while (window->is_running()) {
|
||||
window->dispatch();
|
||||
window->begin_frame();
|
||||
window->end_frame();
|
||||
|
||||
display->dispatch();
|
||||
}
|
||||
|
||||
window->hide();
|
||||
|
||||
Reference in New Issue
Block a user