texture.h

来自「一个纹理地形渲染器」· C头文件 代码 · 共 32 行

H
32
字号
// System Texture class

#pragma once

#include "ObjectAdapter.h"


namespace System
{
    /// A texture map.
    /// Create a texture instance using the Display::createTexture factory method.
    /// To select this texture for rendering call Display::selectTexture.

    class Texture : public ObjectAdapter
	{
	public:

        /// check if texture object is valid.
        /// todo: is this still required?

        virtual bool valid() const = 0;

        /// get width of texture in pixels.

		virtual int width() const = 0;

        /// get height of texture in pixels.

		virtual int height() const = 0;
	};
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?