mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
736cd175d5
commit
bbf33e8e4d
202 changed files with 7389 additions and 5609 deletions
|
|
@ -3,10 +3,11 @@
|
|||
#ifndef LMPACKER_HPP_
|
||||
#define LMPACKER_HPP_
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
struct rectangle {
|
||||
unsigned int idx;
|
||||
|
|
@ -18,7 +19,7 @@ struct rectangle {
|
|||
int extY = 0;
|
||||
|
||||
rectangle(unsigned int idx, int x, int y, int width, int height)
|
||||
: idx(idx), x(x), y(y), width(width), height(height){
|
||||
: idx(idx), x(x), y(y), width(width), height(height) {
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -46,11 +47,17 @@ public:
|
|||
bool buildFast(uint32_t width, uint32_t height, uint16_t extension) {
|
||||
return build(width, height, extension, 1, 2);
|
||||
}
|
||||
bool build(uint32_t width, uint32_t height, uint16_t extension, uint32_t mbit, uint32_t vstep);
|
||||
bool build(
|
||||
uint32_t width,
|
||||
uint32_t height,
|
||||
uint16_t extension,
|
||||
uint32_t mbit,
|
||||
uint32_t vstep
|
||||
);
|
||||
|
||||
std::vector<rectangle> getResult() {
|
||||
return rects;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // LMPACKER_HPP_
|
||||
#endif // LMPACKER_HPP_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue