Archived
1
Fork 0
This repository has been archived on 2025-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
box-car-2d/GLEssentials/Path.h

27 lines
421 B
C++

//
// Path.h
// OSXGLEssentials
//
// Created by Joshua Moerman on 10/03/14.
//
//
#pragma once
#include <Box2D/Box2D.h>
#include <memory>
struct PathBuilder {
virtual ~PathBuilder() = default;
virtual void buildUpTo(float x) = 0;
};
// Has a path builder object
struct Path {
Path(b2World & world);
void buildUpTo(float x);
private:
b2World & world;
std::unique_ptr<PathBuilder> impl;
};