mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Rasterizer skeleton
This commit is contained in:
parent
d9ff63c022
commit
e1b9c13024
5 changed files with 184 additions and 49 deletions
40
xs/src/libslic3r/Rasterizer/Rasterizer.cpp
Normal file
40
xs/src/libslic3r/Rasterizer/Rasterizer.cpp
Normal file
|
@ -0,0 +1,40 @@
|
|||
#include "Rasterizer.hpp"
|
||||
|
||||
#include <png.h>
|
||||
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
class Raster::Impl {
|
||||
|
||||
};
|
||||
|
||||
Raster::Raster(const Raster::Resolution &r, const Raster::PixelDim &pd):
|
||||
impl_(new Impl), resolution_(r), pxdim_(pd) {}
|
||||
|
||||
Raster::~Raster() {}
|
||||
|
||||
Raster::Raster(const Raster &cpy): resolution_(cpy.resolution_),
|
||||
pxdim_(cpy.pxdim_) {
|
||||
*impl_ = *(cpy.impl_);
|
||||
}
|
||||
|
||||
Raster::Raster(Raster &&m):
|
||||
impl_(std::move(m.impl_)), resolution_(m.resolution_), pxdim_(m.pxdim_) {}
|
||||
|
||||
void Raster::clear()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Raster::draw(const Polygon &poly)
|
||||
{
|
||||
png_image ifo;
|
||||
}
|
||||
|
||||
void Raster::finish()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue