mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(region): add region functions
This commit is contained in:
parent
71ce2471ac
commit
cdd3413a1b
5 changed files with 357 additions and 0 deletions
32
storm/region/RGN.hpp
Normal file
32
storm/region/RGN.hpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef STORM_REGION_RGN_HPP
|
||||
#define STORM_REGION_RGN_HPP
|
||||
|
||||
#include "storm/region/Types.hpp"
|
||||
#include "storm/Array.hpp"
|
||||
#include "storm/Hash.hpp"
|
||||
#include <cstdint>
|
||||
|
||||
struct SOURCE {
|
||||
RECTF rect;
|
||||
void* param;
|
||||
int32_t sequence;
|
||||
uint32_t flags;
|
||||
};
|
||||
|
||||
struct FOUNDPARAM {
|
||||
void* param;
|
||||
int32_t sequence;
|
||||
};
|
||||
|
||||
class RGN : public TSHashObject<RGN, HASHKEY_NONE> {
|
||||
public:
|
||||
// Member variables
|
||||
TSGrowableArray<SOURCE> source;
|
||||
TSGrowableArray<RECTF> combined;
|
||||
TSGrowableArray<FOUNDPARAM> foundparams;
|
||||
RECTF foundparamsrect;
|
||||
int32_t sequence;
|
||||
int32_t dirty;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue