/* * 3D Engine * texture.h: * Based on pikuma.com 3D software renderer in C * Copyright (c) 2021 986-Studio. All rights reserved. * * Created by Manoƫl Trapier on 07/03/2021. */ #ifndef THREEDENGINE_SOURCE_INCLUDE_TEXTURE_H #define THREEDENGINE_SOURCE_INCLUDE_TEXTURE_H #include #include #include /*********************************************************************************************************************** * Data types **********************************************************************************************************************/ typedef struct tex2_t { double u, v; } tex2_t; typedef struct texture_t { upng_t *png; colour_t *data; int width; int height; } texture_t; /*********************************************************************************************************************** * Prototypes **********************************************************************************************************************/ void loadTextureDateFromPng(texture_t *texture, const char *filepath); void textureCleanup(texture_t *texture); #endif /* THREEDENGINE_SOURCE_INCLUDE_TEXTURE_H */