Sha256: 7ebdecf6ee31f9c6ae31e549458ca5fc2d265bb77a55e0afb6628238c34cdb0b

Contents?: true

Size: 848 Bytes

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
rays-0.1.48 src/texture.h
rays-0.1.47 src/texture.h
rays-0.1.46 src/texture.h
rays-0.1.45 src/texture.h
rays-0.1.44 src/texture.h
rays-0.1.43 src/texture.h
rays-0.1.42 src/texture.h
rays-0.1.40 src/texture.h
rays-0.1.39 src/texture.h
rays-0.1.38 src/texture.h
rays-0.1.37 src/texture.h