GearEngine  0.0.1
Gear::Texture2D 클래스 참조abstract

#include <Texture.h>

Gear::Texture2D에 대한 상속 다이어그램 :
Inheritance graph
Gear::Texture2D에 대한 협력 다이어그램:
Collaboration graph

Public 멤버 함수

virtual uint32_t GetWidth () const =0
 
virtual uint32_t GetHeight () const =0
 
virtual void SetData (void *data, uint32_t size)=0
 
virtual void Bind (uint32_t slot=0) const =0
 

정적 Public 멤버 함수

static Ref< Texture2DCreate (uint32_t width, uint32_t height)
 
static Ref< Texture2DCreate (const std::string &path)
 

상세한 설명

Texture.h 파일의 21 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ Bind()

virtual void Gear::Texture::Bind ( uint32_t  slot = 0) const
pure virtualinherited

Gear::OpenGLTexture2D에서 구현되었습니다.

◆ Create() [1/2]

Ref< Texture2D > Gear::Texture2D::Create ( const std::string &  path)
static

Texture.cpp 파일의 23 번째 라인에서 정의되었습니다.

24  {
25  switch (Renderer::GetAPI())
26  {
28  GR_CORE_ASSERT(false, "RendererAPI::None is currently not supported!");
29  return nullptr;
31  return CreateRef<OpenGLTexture2D>(path);
32  }
33  GR_CORE_ASSERT(false, "Unknown RendererAPI!");
34  return nullptr;
35  }
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ Create() [2/2]

Ref< Texture2D > Gear::Texture2D::Create ( uint32_t  width,
uint32_t  height 
)
static

Texture.cpp 파일의 9 번째 라인에서 정의되었습니다.

10  {
11  switch (Renderer::GetAPI())
12  {
14  GR_CORE_ASSERT(false, "RendererAPI::None is currently not supported!");
15  return nullptr;
17  return CreateRef<OpenGLTexture2D>(width, height);
18  }
19  GR_CORE_ASSERT(false, "Unknown RendererAPI!");
20  return nullptr;
21  }
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetHeight()

virtual uint32_t Gear::Texture::GetHeight ( ) const
pure virtualinherited

Gear::OpenGLTexture2D에서 구현되었습니다.

◆ GetWidth()

virtual uint32_t Gear::Texture::GetWidth ( ) const
pure virtualinherited

Gear::OpenGLTexture2D에서 구현되었습니다.

◆ SetData()

virtual void Gear::Texture::SetData ( void *  data,
uint32_t  size 
)
pure virtualinherited

Gear::OpenGLTexture2D에서 구현되었습니다.


이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.:
Gear::RendererAPI::API::None
@ None
Gear::RendererAPI::API::OpenGL
@ OpenGL
Gear::Renderer::GetAPI
static RendererAPI::API GetAPI()
Definition: Renderer.h:23
GR_CORE_ASSERT
#define GR_CORE_ASSERT(x,...)
Definition: Core.h:68