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
|
@ -1,13 +1,15 @@
|
|||
#include "pw/io/image_io.hpp"
|
||||
|
||||
#include <pw/core/debug.hpp>
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include "stb_image.h"
|
||||
// #include "stb_image_write.h"
|
||||
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#include "stb_image_write.h"
|
||||
|
||||
namespace pw {
|
||||
|
||||
|
||||
struct image_io::impl
|
||||
{
|
||||
|
||||
|
@ -19,7 +21,8 @@ struct image_io::impl
|
|||
|
||||
if (data) {
|
||||
|
||||
image r;
|
||||
image r;
|
||||
|
||||
r.create(sizei(x,y),image::pixel_layout::RGBA8,data);
|
||||
return r;
|
||||
}
|
||||
|
@ -29,6 +32,7 @@ struct image_io::impl
|
|||
|
||||
bool write(const std::string& uri, uint32_t flags)
|
||||
{
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue