Skip to content

Commit

Permalink
cross-compilation start
Browse files Browse the repository at this point in the history
  • Loading branch information
Ena-Shepherd committed May 31, 2023
1 parent 876a5b0 commit 768c681
Show file tree
Hide file tree
Showing 170 changed files with 26,094 additions and 4 deletions.
17 changes: 14 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,20 @@ project(${PROJECT_NAME} CXX)
# Source files
file(GLOB SOURCES "src/*.cpp")

set( CMAKE_CURRENT_LIB_DIR
${CMAKE_CURRENT_SOURCE_DIR}/libs
)
if(CMAKE_HOST_SYSTEM MATCHES Linux)
message(STATUS "Build host runs Linux")

set( CMAKE_CURRENT_LIB_DIR
${CMAKE_CURRENT_SOURCE_DIR}/libs
)
endif()

if(CMAKE_SYSTEM MATCHES Windows)
message(STATUS "Target system is Windows")
set( CMAKE_CURRENT_LIB_DIR
${CMAKE_CURRENT_SOURCE_DIR}/windows-libs
)
endif()

## Libs dir definition
set( SFML_DIR
Expand Down
3 changes: 2 additions & 1 deletion build/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
*
# Except these files
!.gitignore
!*.so*
!*.so*
!*.dll
Binary file added build/openal32.dll
Binary file not shown.
Binary file added build/sfml-audio-2.dll
Binary file not shown.
Binary file added build/sfml-audio-d-2.dll
Binary file not shown.
Binary file added build/sfml-graphics-2.dll
Binary file not shown.
Binary file added build/sfml-graphics-d-2.dll
Binary file not shown.
Binary file added build/sfml-network-2.dll
Binary file not shown.
Binary file added build/sfml-network-d-2.dll
Binary file not shown.
Binary file added build/sfml-system-2.dll
Binary file not shown.
Binary file added build/sfml-system-d-2.dll
Binary file not shown.
Binary file added build/sfml-window-2.dll
Binary file not shown.
Binary file added build/sfml-window-d-2.dll
Binary file not shown.
45 changes: 45 additions & 0 deletions shaders/firetunnel.glsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

uniform float iTime;
uniform vec2 iResolution;

mat2 rotate(float a) {
float s = sin(a);
float c = cos(a);
return mat2(c, -s, s, c);
}

void main()
{

float t = iTime;
vec4 o, ot, oc;

vec3 p = vec3(gl_FragCoord.xy*1.-iResolution.xy,0);
p.xy *= rotate(t*.2);

p = normalize(p)*pow(length(p*.1),.2);
p.z -= t*.5;
float c = 0.;
for(float a=.5; a>.1; a/=2.)
c += abs(dot(sin(p/a), cos(p.yzx/a)))*a;

oc = vec4(abs(c-p.x*.5),abs(c-p.y*.5),c,1.);
ot = vec4(step(c,.9));
if (ot.r == 1.) {
o = oc;
o *= .1;
}
ot = vec4(step(c,.7));
if (ot.r == 1.) {
o = oc;
o *= .3;
}
ot = vec4(step(c,.5));
if (ot.r == 1.) {
o = oc;
o *= .9;
}

// Output to screen
gl_FragColor = o;
}
Binary file added windows-libs/SFML-2.5.1/bin/openal32.dll
Binary file not shown.
Binary file added windows-libs/SFML-2.5.1/bin/sfml-audio-2.dll
Binary file not shown.
Binary file added windows-libs/SFML-2.5.1/bin/sfml-audio-d-2.dll
Binary file not shown.
Binary file added windows-libs/SFML-2.5.1/bin/sfml-graphics-2.dll
Binary file not shown.
Binary file added windows-libs/SFML-2.5.1/bin/sfml-graphics-d-2.dll
Binary file not shown.
Binary file added windows-libs/SFML-2.5.1/bin/sfml-network-2.dll
Binary file not shown.
Binary file added windows-libs/SFML-2.5.1/bin/sfml-network-d-2.dll
Binary file not shown.
Binary file added windows-libs/SFML-2.5.1/bin/sfml-system-2.dll
Binary file not shown.
Binary file added windows-libs/SFML-2.5.1/bin/sfml-system-d-2.dll
Binary file not shown.
Binary file added windows-libs/SFML-2.5.1/bin/sfml-window-2.dll
Binary file not shown.
Binary file added windows-libs/SFML-2.5.1/bin/sfml-window-d-2.dll
Binary file not shown.
56 changes: 56 additions & 0 deletions windows-libs/SFML-2.5.1/include/SFML/Audio.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2018 Laurent Gomila ([email protected])
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented;
// you must not claim that you wrote the original software.
// If you use this software in a product, an acknowledgment
// in the product documentation would be appreciated but is not required.
//
// 2. Altered source versions must be plainly marked as such,
// and must not be misrepresented as being the original software.
//
// 3. This notice may not be removed or altered from any source distribution.
//
////////////////////////////////////////////////////////////

#ifndef SFML_AUDIO_HPP
#define SFML_AUDIO_HPP

////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////

#include <SFML/System.hpp>
#include <SFML/Audio/InputSoundFile.hpp>
#include <SFML/Audio/Listener.hpp>
#include <SFML/Audio/Music.hpp>
#include <SFML/Audio/OutputSoundFile.hpp>
#include <SFML/Audio/Sound.hpp>
#include <SFML/Audio/SoundBuffer.hpp>
#include <SFML/Audio/SoundBufferRecorder.hpp>
#include <SFML/Audio/SoundFileFactory.hpp>
#include <SFML/Audio/SoundFileReader.hpp>
#include <SFML/Audio/SoundFileWriter.hpp>
#include <SFML/Audio/SoundRecorder.hpp>
#include <SFML/Audio/SoundSource.hpp>
#include <SFML/Audio/SoundStream.hpp>


#endif // SFML_AUDIO_HPP

////////////////////////////////////////////////////////////
/// \defgroup audio Audio module
///
/// Sounds, streaming (musics or custom sources), recording,
/// spatialization.
///
////////////////////////////////////////////////////////////
70 changes: 70 additions & 0 deletions windows-libs/SFML-2.5.1/include/SFML/Audio/AlResource.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2018 Laurent Gomila ([email protected])
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented;
// you must not claim that you wrote the original software.
// If you use this software in a product, an acknowledgment
// in the product documentation would be appreciated but is not required.
//
// 2. Altered source versions must be plainly marked as such,
// and must not be misrepresented as being the original software.
//
// 3. This notice may not be removed or altered from any source distribution.
//
////////////////////////////////////////////////////////////

#ifndef SFML_ALRESOURCE_HPP
#define SFML_ALRESOURCE_HPP

////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio/Export.hpp>


namespace sf
{
////////////////////////////////////////////////////////////
/// \brief Base class for classes that require an OpenAL context
///
////////////////////////////////////////////////////////////
class SFML_AUDIO_API AlResource
{
protected:

////////////////////////////////////////////////////////////
/// \brief Default constructor
///
////////////////////////////////////////////////////////////
AlResource();

////////////////////////////////////////////////////////////
/// \brief Destructor
///
////////////////////////////////////////////////////////////
~AlResource();
};

} // namespace sf


#endif // SFML_ALRESOURCE_HPP

////////////////////////////////////////////////////////////
/// \class sf::AlResource
/// \ingroup audio
///
/// This class is for internal use only, it must be the base
/// of every class that requires a valid OpenAL context in
/// order to work.
///
////////////////////////////////////////////////////////////
48 changes: 48 additions & 0 deletions windows-libs/SFML-2.5.1/include/SFML/Audio/Export.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2018 Laurent Gomila ([email protected])
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented;
// you must not claim that you wrote the original software.
// If you use this software in a product, an acknowledgment
// in the product documentation would be appreciated but is not required.
//
// 2. Altered source versions must be plainly marked as such,
// and must not be misrepresented as being the original software.
//
// 3. This notice may not be removed or altered from any source distribution.
//
////////////////////////////////////////////////////////////

#ifndef SFML_AUDIO_EXPORT_HPP
#define SFML_AUDIO_EXPORT_HPP

////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Config.hpp>


////////////////////////////////////////////////////////////
// Define portable import / export macros
////////////////////////////////////////////////////////////
#if defined(SFML_AUDIO_EXPORTS)

#define SFML_AUDIO_API SFML_API_EXPORT

#else

#define SFML_AUDIO_API SFML_API_IMPORT

#endif


#endif // SFML_AUDIO_EXPORT_HPP
Loading

0 comments on commit 768c681

Please sign in to comment.