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:
Hartmut Seichter 2019-02-02 00:11:33 +01:00
parent 7037abbcb6
commit 40e8c43e01
15 changed files with 217 additions and 37 deletions

View file

@ -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();