matrixcascade / painterengine Goto Github PK
View Code? Open in Web Editor NEWPainterEngine is a application/game engine with software renderer,PainterEngine can be transplanted to any platform that supports C
License: MIT License
PainterEngine is a application/game engine with software renderer,PainterEngine can be transplanted to any platform that supports C
License: MIT License
在\kernel\PX_Object_CursorButton.c的函数PX_Object_CursorButtonCreate(px_memorypool *mp,..)中,visual studio发现:
pObject=PX_ObjectCreate(mp,Parent,(px_float)x,(px_float)y,0,(px_float)Width,(px_float)Height,0);
if (pObject==PX_NULL)
{
MP_Free(pObject->mp,pCb);
return PX_NULL;
}
这一部分中MP_Free
的第一个参数pObject->mp
,pObject
是一个nullptr
,不能解引用。
联系上文:
PX_Object_CursorButton *pCb=(PX_Object_CursorButton *)MP_Malloc(mp,sizeof(PX_Object_CursorButton));
也许你的意思是MP_Free(mp,pCb);
?
There is px_audio.c in platform/windows
There is px_audio.c in platform/android
There is px_audio.c in platform/webassembly
but There is no px_audio.c in platform/linux
我在使用cmake编译PainterEngine示例时出现lnk错误,希望教程指导。
我在PainterEngine/platform/linux下make,报错
In file included from ../../platform/linux/px_display.c:1:
../../platform/linux/px_display.h:3:10: fatal error: GL/freeglut.h: No such file or directory
3 | #include <GL/freeglut.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [makefile:48: ../../platform/linux/px_display.o] Error 1
请问如何解决.
PainterEngine/kernel/PX_Object.h
Line 177 in b1b024c
core/PX_Memory.h
第6行__PX_memroy
应改为__PX_memory
尝试过 vs2022 和 vs2019, 最后都会报错,看起来是 libpng 和 libjpeg 库有问题:
最终我学着painterEngine的编译版本的样子做了个 mingw + painterEngine + live 2d ,其中带有 libpng 和 libjpeg ,点击【编译.bat】可编译:
分享给拐子快速入坑,mingw + painterEngine + live 2d(370MB):链接:https://pan.baidu.com/s/1uVD7mhzpMjc0A_YIT_PjGw?pwd=msib
提取码:msib
--来自百度网盘超级会员V3的分享
类似LVGL的draw context
请问如何实现渐变色和网格渐变的demo或者api
#mingw32-64 makefile
#####################################################
target :=PainterEngine.exe
project_path := ../../project
painterengine_path := ../..
#####################################################
project_build := $(wildcard $(project_path)/*.c)
project_build_o := $(patsubst %.c,%.o,$(project_build))
painterengine_build_core := $(wildcard $(painterengine_path)/core/*.c)
painterengine_build_painterengine_o := $(patsubst %.c,%.o,$(painterengine_build_core))
painterengine_build_kernel := $(wildcard $(painterengine_path)/kernel/*.c)
painterengine_build_painterengine_o += $(patsubst %.c,%.o,$(painterengine_build_kernel))
painterengine_build_architecture := $(wildcard $(painterengine_path)/architecture/*.c)
painterengine_build_painterengine_o += $(patsubst %.c,%.o,$(painterengine_build_architecture))
painterengine_build_platform := $(wildcard $(painterengine_path)/platform/windows/*.c)
painterengine_build_painterengine_o += $(patsubst %.c,%.o,$(painterengine_build_platform))
painterengine_build_platform := $(wildcard $(painterengine_path)/platform/windows/*.cpp)
painterengine_build_painterengine_o += $(patsubst %.cpp,%.o,$(painterengine_build_platform))
all:$(project_build_o) $(painterengine_build_painterengine_o)
gcc $(project_build_o) $(painterengine_build_painterengine_o) \
-o $(project_path)/$(target) \
-I "$(painterengine_path)" \
-I "$(project_path)" \
-I "$(painterengine_path)/platform/windows" \
-L. -lwinmm -ld2d1 -lws2_32 -ldsound -lcomdlg32
$(project_path)/$(target)
make clean
$(project_path)/%.o:$(project_path)/%.c
gcc -c $^ -o $@ -I "$(painterengine_path)" -I "$(painterengine_path)/platform/windows"
$(painterengine_path)/architecture/%.o:$(painterengine_path)/architecture/%.c
gcc -c $^ -o $@ -I "$(painterengine_path)"
$(painterengine_path)/kernel/%.o:$(painterengine_path)/kernel/%.c
gcc -c $^ -o $@
$(painterengine_path)/core/%.o:$(painterengine_path)/core/%.c
gcc -c $^ -o $@
$(painterengine_path)/platform/windows/%.o:$(painterengine_path)/platform/windows/%.c
gcc -c $^ -o $@ -I "$(project_path)" -I "$(painterengine_path)" -I "$(painterengine_path)/platform/windows"
.PHONY:clean
clean:
-del /s "$(painterengine_path)/core/*.o"
-del /s "$(painterengine_path)/kernel/*.o"
-del /s "$(painterengine_path)/architecture/*.o"
-del /s "$(painterengine_path)/platform/windows/*.o"
-del /s "$(project_path)/*.o"
https://www.painterengine.com/main/instances/instance2023053101/index.html
Edit
组件,编辑text字段shift+2
不能打出@
,打出的还是2
;shift+9
不能打出左括号(
1
打出的是Y
When I cd
into PainterEngine/platform/linux
, and use sudo make
command to install the engine, the error occured. I wander if I have to install Android NDK or anything else?
By the way, my platform via uname -a
is Linux VM-4-14-ubuntu 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
.
在PX_Typedef.c中:
px_void PX_strset(px_char *dst,const px_char*src) { dst[0]=0; PX_strcat(dst,src); }
在PX_Typedef.h中:
px_void PX_strset(px_void *dst,const px_void *src);
root@centos7:~/.../platform/linux# make
gcc -c ../../project/PainterEngine_Application.c -o ../../project/PainterEngine_Application.o -I "../.." -I "../../platform/linux"
In file included from ../../project/PainterEngine_Startup.h:8:0,
from ../../project/PainterEngine_Application.h:8,
from ../../project/PainterEngine_Application.c:1:
../../platform/others/PainterEngineVK_for_windows/api/PainterEngineVK.h:4:21: fatal error: windows.h: No such file or directory
#include <windows.h>
^
compilation terminated.
make: *** [../../project/PainterEngine_Application.o] Error 1
# 环境
root@centos7:~/.../platform/linux# pwd
/root/work/PainterEngine/platform/linux
uname -a
Linux centos7.localdomain 3.10.0-1160.66.1.el7.x86_64 #1 SMP Wed May 18 16:02:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
macos上编译报错:
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_3D.c -o /Users/2333333/Downloads/PainterEngine/core/PX_3D.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_AES.c -o /Users/2333333/Downloads/PainterEngine/core/PX_AES.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_ANN.c -o /Users/2333333/Downloads/PainterEngine/core/PX_ANN.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Arle.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Arle.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Base64.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Base64.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_BaseGeo.c -o /Users/2333333/Downloads/PainterEngine/core/PX_BaseGeo.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Bitmap.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Bitmap.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_BpNeural.c -o /Users/2333333/Downloads/PainterEngine/core/PX_BpNeural.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Effect.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Effect.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Font.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Font.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Hashmap.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Hashmap.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Huffman.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Huffman.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_KalmanFilter.c -o /Users/2333333/Downloads/PainterEngine/core/PX_KalmanFilter.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Linker.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Linker.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_List.c -o /Users/2333333/Downloads/PainterEngine/core/PX_List.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Log.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Log.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_MFCC.c -o /Users/2333333/Downloads/PainterEngine/core/PX_MFCC.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Memory.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Memory.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_MemoryPool.c -o /Users/2333333/Downloads/PainterEngine/core/PX_MemoryPool.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Packet.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Packet.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_ParallelCore.c -o /Users/2333333/Downloads/PainterEngine/core/PX_ParallelCore.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Quadtree.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Quadtree.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Quicksort.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Quicksort.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Sha256.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Sha256.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Sound.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Sound.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_SoundModule.c -o /Users/2333333/Downloads/PainterEngine/core/PX_SoundModule.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_String.c -o /Users/2333333/Downloads/PainterEngine/core/PX_String.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Surface.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Surface.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_TRaw.c -o /Users/2333333/Downloads/PainterEngine/core/PX_TRaw.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Texture.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Texture.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_TriangleCross.c -o /Users/2333333/Downloads/PainterEngine/core/PX_TriangleCross.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Tuning.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Tuning.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Typedef.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Typedef.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Vector.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Vector.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_Wave.c -o /Users/2333333/Downloads/PainterEngine/core/PX_Wave.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_curve25519.c -o /Users/2333333/Downloads/PainterEngine/core/PX_curve25519.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/core/PX_rbtree.c -o /Users/2333333/Downloads/PainterEngine/core/PX_rbtree.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_3D_ObjData.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_3D_ObjData.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_Animation.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_Animation.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_Json.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_Json.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_Lexer.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_Lexer.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_MODBUS.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_MODBUS.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_Object.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_Object.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_Partical.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_Partical.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_Resource.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_Resource.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_Script_ASMCompiler.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_Script_ASMCompiler.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_Script_Interpreter.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_Script_Interpreter.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_Script_VM.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_Script_VM.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_SoundLab.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_SoundLab.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_Sync.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_Sync.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/kernel/PX_World.c -o /Users/2333333/Downloads/PainterEngine/kernel/PX_World.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/architecture/PainterEngine_Console.c -o /Users/2333333/Downloads/PainterEngine/architecture/PainterEngine_Console.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/architecture/PainterEngine_MessageBox.c -o /Users/2333333/Downloads/PainterEngine/architecture/PainterEngine_MessageBox.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/architecture/PainterEngine_Runtime.c -o /Users/2333333/Downloads/PainterEngine/architecture/PainterEngine_Runtime.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
gcc -c /Users/2333333/Downloads/PainterEngine/platform/linux/linux_file.c -o /Users/2333333/Downloads/PainterEngine/platform/linux/linux_file.o -I "/Users/2333333/Downloads/PainterEngine" -I "/Users/2333333/Downloads/PainterEngine/platform/linux"
In file included from /Users/2333333/Downloads/PainterEngine/platform/linux/linux_file.c:2:
/Users/2333333/Downloads/PainterEngine/platform/linux/linux_file.h:10:10: fatal error:
'android/asset_manager.h' file not found
#include <android/asset_manager.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [/Users/2333333/Downloads/PainterEngine/platform/linux/linux_file.o] Error 1
但是android目录里的确没有asset_manager.h
啊
gcc -c ../../platform/linux/px_display.c -o ../../platform/linux/px_display.o -I "../../project" -I "../.." -I "../../platform/linux"
In file included from ../../platform/linux/px_display.c:1:
../../platform/linux/px_display.h:3:10: fatal error: GL/freeglut.h: 没有那个文件或目录
3 | #include <GL/freeglut.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
麻烦解答下
px_void* PX_ListPush(px_list *list, px_void *data, px_int size)
和api文档的不一致
px_byte *PX_MemoryFine(px_memory *memory, const px_void *buffer, px_int size)
api文档里面是find
painterengine\core\px_3d.c(862): error C4703: potentially uninitialized local pointer variable 'pface' used
I'm a starter and cloned your repo today (3rd May, 2020).
While I tried to use the font module like your answer on https://www.zhihu.com/question/35391145 on VS2019, it said Error C3861: 'PX_LoadFontModuleFromFile': identifier not found.
Then I searched all the PainterEngine codes, I could not find the function either.
So, have you moved these codes, or you created a new way to do this work? How should I do to render fonts by custom?
BTW, your jpg/png decoder libs seems to be 32-bit. If I want a 64-bit version, what should I do?
开发环境是Cmake + Mac
`FAILURE: Build failed with an exception.
Build command failed.
Error while executing process /Users/1/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /Users/yijunchao/Desktop/tang/sound/SoundLibAndroid/app/.cxx/cmake/debug/armeabi-v7a --target clean}
ninja: error: loading 'build.ninja': No such file or directory
`
难道要直接把所有src加到项目里。。。
错误信息如下
1>${WorkPath}\PainterEngine_test_1\PainterEngine\PainterEngineHelper.c(254,1): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>正在生成代码...
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): message : 参见“fopen”的声明
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): message : ${WorkPath}\PainterEngine_test_1\PainterEngine\Kernel\PX_Sync.c(944) : error C4703: 使用了可能未初始化的本地指针变量“pClient”
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): message : ${WorkPath}\PainterEngine_test_1\PainterEngine\Kernel\PX_Script_Interpreter.c(6055) : error C4703: 使用了可能未初始化的本地指针变量“pfunc”
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): message : ${WorkPath}\PainterEngine_test_1\PainterEngine\Kernel\PX_Script_Interpreter.c(6419) : error C4703: 使用了可能未初始化的本地指针变量“plastop”
1>已完成生成项目“PainterEngine_test_1.vcxproj”的操作 - 失败。
另外是否考虑一下增加cpp兼容性?增加跨平台兼容性
#ifdefined __cplusplus
extern "C" {
#endif
/*
code here
*/
#ifdefined __cplusplus
}
#endif
PainterEngine/core/PX_MemoryPool.c
Lines 6 to 7 in b1b024c
As the heading have said.
This engine could have more users if there were more documentations available, especially in English. I look forward to working with PainterEngine.
以及,为什么看上去很不Markdown
怎么样用一个makefile来搞定这个PainterEngine的编译呢?
HI dear author,
It;s truly an honor to write this letter,
I wonder how to compile this on linux ubuntu16?
thank you
best regards
William
打算在linux下使用学习一下,但发现没有现成的demo,方便更新一下吗
如题,想利用painterengine实作一个node editor,但要使用winform及c#呼叫使用,不知道可否给一个思路呢,感谢。
可以支持Tiny CC吗?, 不是很懂, 不知道tcc能不能绘图
windows平台的makefile里编译的目标文件地址为$(project_path)\$(target)
,这2个变量的值如下
target :=..\..\project\PainterEngine.exe
project_path := ..\..\project
目标文件地址会变成..\..\project\..\..\project\PainterEngine.exe
,但实际上是..\..\project\PainterEngine.exe
,于是会出现文件不存在的错误,把target的值改为PainterEngine.exe
后可以正常编译
1、安装依赖库
sudo apt-get install build-essential freeglut3 freeglut3-dev binutils-gold
2、修改makefile
```diff --git a/platform/linux/makefile b/platform/linux/makefile
index d3fb1c5..b995da0 100644
--- a/platform/linux/makefile
+++ b/platform/linux/makefile
@@ -29,7 +29,7 @@ all:$(project_build_o) $(painterengine_build_painterengine_o)
-I "$(painterengine_path)" \
-I "$(project_path)" \
-I "$(painterengine_path)/platform/linux" \
- -L. -lGL -lglut
+ -L. -lGL -lglut -lpthread
$(project_path)/%.o:$(project_path)/%.c
Please gkd.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.