change android icon, move code so .cpp and implement stroke preview using Stroke class for accurate preview.
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 25 KiB |
@@ -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>
|
||||
|
||||