Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
OpenGLTexture.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 #ifdef USING_OPENGL
6 
7 namespace Engine
8 {
12  class ENGINE_API OpenGLTexture : public Texture
13  {
14  public:
18  ~OpenGLTexture() override;
24  void CreateTextureWithData(stbi_uc* data, bool genMipMaps, TextureDataSize bytes = TextureDataSize::U_CHAR, bool storage = false) override;
25  private:
26  friend class Skeleton;
27  friend class ResourceManager;
28 
34  explicit OpenGLTexture(const eastl::string& filename, int desiredChannels = 4);
40  explicit OpenGLTexture(int width, int height);
41  };
42 } //namespace Engine
43 #endif
#define ENGINE_API
Definition: api.hpp:25
TextureDataSize
Definition: Texture.hpp:11