Sha256: dd4d9ebd29df05b92ccf8b6ddc2675a8b2cdf948b9377319bde214800fb2c571

Contents?: true

Size: 681 Bytes

Versions: 3

Compression:

Stored size: 681 Bytes

Contents

// -*- c++ -*-
#pragma once
#ifndef __RAYS_TEXTURE_H__
#define __RAYS_TEXTURE_H__


#include <xot/pimpl.h>
#include <rays/defs.h>
#include <rays/opengl.h>


namespace Rays
{


	class Bitmap;


	class Texture
	{

		public:

			Texture ();

			Texture (const Bitmap& bitmap, bool alphaonly = false);

			~Texture ();

			GLuint id () const;

			int width () const;

			int height () const;

			float s (float x) const;

			float t (float y) const;

			float s_max () const;

			float t_max () const;

			const Bitmap& bitmap () const;

			operator bool () const;

			bool operator ! () const;

			struct Data;

			Xot::PImpl<Data, true> self;

	};// Texture


}// Rays


#endif//EOH

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rays-0.1.6 include/rays/texture.h
rays-0.1.5 include/rays/texture.h
rays-0.1.4 include/rays/texture.h