-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: overhaul introduction and other pages
Restructures the whole documentation pages. Replace old structure pages by in-code documentation. Revamp old ECS and Cubinhos guides, add plugins guide. Add logging example.
- Loading branch information
Showing
60 changed files
with
563 additions
and
612 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
/// @dir | ||
/// @brief @ref cubos::core namespace. | ||
/// @brief @ref core module. | ||
|
||
#pragma once | ||
|
||
/// @namespace cubos::core | ||
/// @brief CUBOS. core namespace. | ||
/// @brief @ref core namespace. | ||
|
||
namespace cubos::core | ||
{ | ||
/// @defgroup core Core | ||
/// @brief CUBOS. core library. | ||
/// @brief @b CUBOS. core library. | ||
/// | ||
/// The core library contains loose utilities and functionality on which the rest of the CUBOS. | ||
/// libraries are built on. | ||
} | ||
/// The core library contains loose utilities and functionality on which the rest of the | ||
/// @b CUBOS. libraries and applications are built on. Lives in the @ref cubos::core namespace. | ||
/// | ||
/// This library can be further divided into modules, which are documented in their respective | ||
/// module pages. Each of these modules has its own namespace and directory in the source tree. | ||
/// For example, the @ref core-ecs module lives in the @ref cubos::core::ecs namespace. | ||
} // namespace cubos::core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,40 @@ | ||
#include <glm/glm.hpp> | ||
|
||
#include <cubos/core/data/debug_serializer.hpp> | ||
/// [Logging include] | ||
#include <cubos/core/log.hpp> | ||
#include <cubos/core/memory/buffer_stream.hpp> | ||
/// [Logging include] | ||
|
||
/// [Debug wrapper include] | ||
#include <cubos/core/data/debug_serializer.hpp> | ||
|
||
using namespace cubos::core; | ||
using data::Debug; | ||
/// [Debug wrapper include] | ||
|
||
#include <cubos/core/memory/buffer_stream.hpp> | ||
|
||
/// [Logger initialization] | ||
int main() | ||
{ | ||
initializeLogger(); | ||
cubos::core::initializeLogger(); | ||
/// [Logger initialization] | ||
|
||
/// [Logging macros] | ||
CUBOS_TRACE("Trace message"); | ||
CUBOS_DEBUG("Debug message"); | ||
CUBOS_INFO("Info message"); | ||
CUBOS_WARN("Warning message"); | ||
CUBOS_ERROR("Error message"); | ||
CUBOS_CRITICAL("Critical message"); | ||
/// [Logging macros] | ||
|
||
/// [Logging macros with arguments] | ||
CUBOS_ERROR("Error message with {} argument", 1); | ||
/// [Logging macros with arguments] | ||
|
||
/// [Debug wrapper usage] | ||
CUBOS_INFO("Serializable type: {}", Debug(glm::vec3(0.0F, 1.0F, 2.0F))); | ||
CUBOS_INFO("Again, but with type information: {:t}", Debug(glm::vec3(0.0F, 1.0F, 2.0F))); | ||
CUBOS_INFO("Since unordered maps are serializable, we can do this: {}", | ||
Debug((std::unordered_map<int, const char*>{{1, "one"}, {2, "two"}}))); | ||
|
||
return 0; | ||
} | ||
/// [Debug wrapper usage] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.