adding symbols to dll on windows

This commit is contained in:
Kbz-8
2023-12-08 19:13:25 +01:00
parent 19ce912afe
commit 5dcc2045d6
34 changed files with 108 additions and 75 deletions

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/08 02:24:58 by maldavid #+# #+# */
/* Updated: 2023/11/25 10:01:35 by maldavid ### ########.fr */
/* Updated: 2023/12/08 19:10:09 by kbz_8 ### ########.fr */
/* */
/* ************************************************************************** */
@@ -21,10 +21,11 @@
#include <renderer/descriptors/vk_descriptor_set.h>
#include <renderer/buffers/vk_ibo.h>
#include <renderer/buffers/vk_vbo.h>
#include <core/profile.h>
namespace mlx
{
class Texture : public Image
class MLX_API Texture : public Image
{
public:
Texture() = default;
@@ -61,9 +62,9 @@ namespace mlx
bool _has_been_updated = false;
};
Texture stbTextureLoad(std::filesystem::path file, int* w, int* h);
MLX_API Texture stbTextureLoad(std::filesystem::path file, int* w, int* h);
struct TextureRenderData
struct MLX_API TextureRenderData
{
Texture* texture;
std::size_t hash = 0;
@@ -78,7 +79,7 @@ namespace mlx
namespace std
{
template <>
struct hash<mlx::TextureRenderData>
struct MLX_API hash<mlx::TextureRenderData>
{
size_t operator()(const mlx::TextureRenderData& td) const noexcept
{

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/07 16:36:33 by maldavid #+# #+# */
/* Updated: 2023/12/07 18:50:53 by kbz_8 ### ########.fr */
/* Updated: 2023/12/08 19:10:22 by kbz_8 ### ########.fr */
/* */
/* ************************************************************************** */
@@ -16,10 +16,11 @@
#include <renderer/images/texture.h>
#include <array>
#include <glm/glm.hpp>
#include <core/profile.h>
namespace mlx
{
class TextureAtlas : public Image
class MLX_API TextureAtlas : public Image
{
public:
TextureAtlas() = default;

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/25 11:54:21 by maldavid #+# #+# */
/* Updated: 2023/11/18 17:10:05 by maldavid ### ########.fr */
/* Updated: 2023/12/08 19:10:38 by kbz_8 ### ########.fr */
/* */
/* ************************************************************************** */
@@ -18,12 +18,13 @@
#include <vector>
#include <renderer/command/vk_cmd_buffer.h>
#include <renderer/command/vk_cmd_pool.h>
#include <core/profile.h>
namespace mlx
{
uint32_t formatSize(VkFormat format);
MLX_API uint32_t formatSize(VkFormat format);
class Image
class MLX_API Image
{
friend class SwapChain;