texture.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * 3D Engine
  3. * texture.h:
  4. * Based on pikuma.com 3D software renderer in C
  5. * Copyright (c) 2021 986-Studio. All rights reserved.
  6. *
  7. * Created by Manoël Trapier on 07/03/2021.
  8. */
  9. #ifndef THREEDENGINE_SOURCE_INCLUDE_TEXTURE_H
  10. #define THREEDENGINE_SOURCE_INCLUDE_TEXTURE_H
  11. #include <stdint.h>
  12. #include <display.h>
  13. /***********************************************************************************************************************
  14. * Data types
  15. **********************************************************************************************************************/
  16. typedef struct tex2_t
  17. {
  18. double u, v;
  19. } tex2_t;
  20. /***********************************************************************************************************************
  21. * Global variables
  22. **********************************************************************************************************************/
  23. extern int textureWidth;
  24. extern int textureHeight;
  25. extern const uint8_t REDBRICK_TEXTURE[];
  26. colour_t *meshTexture;
  27. /***********************************************************************************************************************
  28. * Prototypes
  29. **********************************************************************************************************************/
  30. #endif /* THREEDENGINE_SOURCE_INCLUDE_TEXTURE_H */