Sha256: 328c45841e175157d1c26f3aca51b1ead64a890a370b437e9664aed5b34d72a2

Contents?: true

Size: 848 Bytes

Versions: 24

Compression:

Stored size: 848 Bytes

Contents

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


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


namespace Rays
{


	class Bitmap;


	class Texture
	{

		public:

			Texture ();

			Texture (int width, int height, const ColorSpace& cs = RGBA);

			Texture (const Bitmap& bitmap);

			~Texture ();

			int          width () const;

			int reserved_width () const;

			int          height () const;

			int reserved_height () const;

			const ColorSpace& color_space () const;

			Context context () const;

			GLuint id () const;

			void set_modified (bool modified = true);

			bool     modified () const;

			operator bool () const;

			bool operator ! () const;

			struct Data;

			Xot::PSharedImpl<Data> self;

	};// Texture


}// Rays


#endif//EOH

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rays-0.1.36 src/texture.h
rays-0.1.35 src/texture.h
rays-0.1.34 src/texture.h
rays-0.1.33 src/texture.h
rays-0.1.32 src/texture.h
rays-0.1.31 src/texture.h
rays-0.1.30 src/texture.h
rays-0.1.29 src/texture.h
rays-0.1.28 src/texture.h
rays-0.1.27 src/texture.h
rays-0.1.26 src/texture.h
rays-0.1.25 src/texture.h
rays-0.1.24 src/texture.h
rays-0.1.23 src/texture.h
rays-0.1.22 src/texture.h
rays-0.1.21 src/texture.h
rays-0.1.20 src/texture.h
rays-0.1.19 src/texture.h
rays-0.1.18 src/texture.h
rays-0.1.17 src/texture.h