change android icon, move code so .cpp and implement stroke preview using Stroke class for accurate preview.

This commit is contained in:
2017-03-29 00:50:51 +01:00
parent 675e0148ec
commit ade95724e8
14 changed files with 421 additions and 370 deletions

View File

@@ -37,6 +37,8 @@ add_library(
../engine/shape.cpp
../engine/layout.cpp
../engine/app.cpp
../engine/brush.cpp
../engine/canvas.cpp
)
target_include_directories(native-lib PRIVATE

View File

@@ -28,7 +28,9 @@ android {
// Sets a flag to enable format macro constants for the C++ compiler.
//cppFlags "-D__STDC_FORMAT_MACROS"
arguments '-DANDROID_PLATFORM=android-19',
'-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=gnustl_static'
'-DANDROID_TOOLCHAIN=clang',
'-DANDROID_STL=gnustl_static',
'-DCMAKE_BUILD_TYPE=Debug'
}
}
ndk {

View File

@@ -167,6 +167,10 @@ static void engine_draw_frame(struct engine* engine) {
if (engine->display == NULL)
return;
glClearColor(.1f, .1f, .1f, 1.f);
glViewport(0, 0, (GLsizei)engine->width, (GLsizei)engine->height);
glClear(GL_COLOR_BUFFER_BIT);
App::I.update(0);
eglSwapBuffers(engine->display, engine->surface);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">LayoutEngine</string>
<string name="app_name">PanoPainter</string>
</resources>