1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Merge pull request #7 from borgesdan/develop

Develop
This commit is contained in:
Danilo Borges 2024-06-04 17:13:52 -03:00 committed by GitHub
commit b07249145b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 18 additions and 14 deletions

View File

@ -9,14 +9,17 @@ if (POLICY CMP0141)
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>") set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif() endif()
# CMAKE_TOOLCHAIN_FILE # VCPKG source directory
set(PROJECT_VCPKG_DIRECTORY "C:/vcpkg") set(PROJECT_VCPKG_DIRECTORY "C:/vcpkg")
set(PROJECT_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/inc") # Includes directory
set(PROJECT_INCLUDES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/inc")
# CMAKE_TOOLCHAIN_FILE
include("${PROJECT_VCPKG_DIRECTORY}/scripts/buildsystems/vcpkg.cmake") include("${PROJECT_VCPKG_DIRECTORY}/scripts/buildsystems/vcpkg.cmake")
project ("xna") project ("xna")
# Include sub-projects. # Include sub-projects.
include_directories(${PROJECT_INCLUDE_DIR}) include_directories(${PROJECT_INCLUDES_DIR})
add_subdirectory ("framework") add_subdirectory ("framework")
add_subdirectory ("samples") add_subdirectory ("samples")

View File

@ -6,8 +6,9 @@
The project is still under development and the next updates will focus on the following tasks: The project is still under development and the next updates will focus on the following tasks:
- [x] Finish basic classes - [x] Finish basic classes
- [ ] Code refactoring and cleaning - [x] Code refactoring and cleaning
- [ ] 3D support - [ ] 3D support
- [ ] Implementation of missing classes and functions
- [ ] Content Pipeline - [ ] Content Pipeline
- [ ] Multiplatform support - [ ] Multiplatform support
@ -24,10 +25,10 @@ Use the following command in vcpkg to install DirectXTK:
.\vcpkg install directxtk[tools,spectre,xaudio2-9] .\vcpkg install directxtk[tools,spectre,xaudio2-9]
``` ```
In the root CMakeLists.txt set the vcpkg CMAKE_TOOLCHAIN_FILE path In the root CMakeLists.txt set the vcpkg path
``` ```
include("C:/vcpkg/scripts/buildsystems/vcpkg.cmake") set(PROJECT_VCPKG_DIRECTORY "C:/vcpkg")
``` ```
## 📝 License ## 📝 License

View File

@ -53,5 +53,5 @@ find_package(directxtk CONFIG REQUIRED)
target_link_libraries( target_link_libraries(
Xn65 D3d11.lib dxgi.lib dxguid.lib d3dcompiler.lib Microsoft::DirectXTK Xn65 D3d11.lib dxgi.lib dxguid.lib d3dcompiler.lib Microsoft::DirectXTK
"${PROJECT_INCLUDE_DIR}/libmspack/mspack.lib" "${PROJECT_INCLUDES_DIR}/libmspack/mspack.lib"
) )

View File

@ -10,11 +10,7 @@ namespace xna {
SoundEffectInstance::~SoundEffectInstance() { SoundEffectInstance::~SoundEffectInstance() {
impl = nullptr; impl = nullptr;
} }
//Remover posteriormente
SoundEffect::SoundEffect() {
}
SoundEffect::SoundEffect(String const& fileName) { SoundEffect::SoundEffect(String const& fileName) {
if (!AudioEngine::impl || !AudioEngine::impl->_dxAudioEngine) if (!AudioEngine::impl || !AudioEngine::impl->_dxAudioEngine)

View File

@ -25,8 +25,6 @@ namespace xna {
class SoundEffect { class SoundEffect {
public: public:
//Remover posteriormente ou implementar funções de carregamento dos dados
SoundEffect();
SoundEffect(String const& fileName); SoundEffect(String const& fileName);
SoundEffect( SoundEffect(
std::vector<Byte> const& format, std::vector<Byte> const& format,

View File

@ -2,6 +2,12 @@
#define XNA_ENUMS_HPP #define XNA_ENUMS_HPP
namespace xna { namespace xna {
enum class AudioChannels
{
Mono = 1,
Stereo = 2,
};
enum class AudioReverb { enum class AudioReverb {
Off, Off,
Default, Default,