moving to a structure in visual representing the underlying APIs first and then layering on top the scene graph. Various other additions and fixes.
This commit is contained in:
parent
7037abbcb6
commit
40e8c43e01
15 changed files with 217 additions and 37 deletions
|
@ -18,10 +18,13 @@ bool image::create(const sizei &s, image::pixel_layout t, void *ptr)
|
|||
auto a = reinterpret_cast<uint8_t*>(ptr);
|
||||
|
||||
_data.assign(a,a + n);
|
||||
_size = s;
|
||||
_layout = t;
|
||||
|
||||
} else {
|
||||
|
||||
_data.resize(n,0);
|
||||
_size = sizei(0,0);
|
||||
}
|
||||
|
||||
return !_data.empty();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue