Sha256: 64aabf52e31ae5003c79b8c043e9c72d9045b68f1d791ff4e797cf8b77cdc6fc

Contents?: true

Size: 1.1 KB

Versions: 25

Compression:

Stored size: 1.1 KB

Contents

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


#include <memory>
#include <xot/noncopyable.h>
#include "reflex/defs.h"


class b2Fixture;
class b2Shape;


namespace Reflex
{


	class Body;


	class Fixture : public Xot::NonCopyable
	{

		public:

			Fixture (Body* body, const b2Shape* b2shape, void* userdata = NULL);

			~Fixture ();

			void set_density (float density);

			float    density () const;

			void set_friction (float friction);

			float    friction () const;

			void set_restitution (float restitution);

			float    restitution () const;

			void set_sensor (bool state);

			bool  is_sensor () const;

			      b2Fixture* b2ptr ();

			const b2Fixture* b2ptr () const;

			void       set_next (Fixture* fixture);

			      Fixture* next ();

			const Fixture* next () const;

		private:

			b2Fixture* b2fixture;

			std::unique_ptr<Fixture> pnext;

	};// Fixture


	void Fixture_copy_attributes (Fixture* to, const Fixture& from);

	Fixture* Fixture_create_temporary ();

	bool Fixture_is_temporary (const Fixture& fixture);


}// Reflex


#endif//EOH

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
reflexion-0.3.3 src/fixture.h
reflexion-0.3.2 src/fixture.h
reflexion-0.3.1 src/fixture.h
reflexion-0.3 src/fixture.h
reflexion-0.2.1 src/fixture.h
reflexion-0.2 src/fixture.h
reflexion-0.1.57 src/fixture.h
reflexion-0.1.56 src/fixture.h
reflexion-0.1.55 src/fixture.h
reflexion-0.1.54 src/fixture.h
reflexion-0.1.53 src/fixture.h
reflexion-0.1.52 src/fixture.h
reflexion-0.1.51 src/fixture.h
reflexion-0.1.50 src/fixture.h
reflexion-0.1.49 src/fixture.h
reflexion-0.1.48 src/fixture.h
reflexion-0.1.47 src/fixture.h
reflexion-0.1.46 src/fixture.h
reflexion-0.1.45 src/fixture.h
reflexion-0.1.44 src/fixture.h