Pixma Posted January 8, 2019 Share Posted January 8, 2019 hi, I have a problem with creating a project for my Graphic Wrapper implementation? I created some Vulkan cpp/h files and adapter files. Now I want to create a Solution/Project where I can test these Vulkan functionality. To test the Vulkan Functionality, I want to create some triangles and polygons. I saw this is done with premake. But I dont't know how I can create an additional Project file in this solution for testing. greeting Pixma Link to comment Share on other sites More sharing options...
vladislavbelov Posted January 8, 2019 Share Posted January 8, 2019 Hi, try to use existing projects, example of the "engine" solution: source_dirs = { "ps", "ps/scripting", "network/scripting", "ps/GameSetup", "ps/XML", "soundmanager", "soundmanager/data", "soundmanager/items", "soundmanager/scripting", "maths", "maths/scripting", "i18n", "i18n/scripting", "third_party/cppformat", } extern_libs = { "spidermonkey", "sdl", -- key definitions "libxml2", "opengl", "zlib", "boost", "enet", "libcurl", "tinygettext", "icu", "iconv", "libsodium", } if not _OPTIONS["without-audio"] then table.insert(extern_libs, "openal") table.insert(extern_libs, "vorbis") end setup_static_lib_project("engine", source_dirs, extern_libs, {}) Add your project near to these lines. Link to comment Share on other sites More sharing options...
Pixma Posted January 8, 2019 Author Share Posted January 8, 2019 (edited) hmm ok, what do you think about the following idea? I create a folder samples inside the graphics project. There is a main function from where I can call the samples which I am creating. For example creating a Triangle, creating a triangle with shader, creating a mesh, ans so on. Finally with these main function, I make the graphics project as Startup Project. edit: hmm, I have noticed now, that this is not possible, because this is a library project. edit 2: ok, now I have another idea, to create this in the pyrogenesis project. So I append this project for command argument --sample in Debugging. And in the main function then I check for this argument. Edited January 8, 2019 by Pixma Link to comment Share on other sites More sharing options...
vladislavbelov Posted January 9, 2019 Share Posted January 9, 2019 16 hours ago, Pixma said: hmm ok, what do you think about the following idea? You can do locally whatever you want to develop/test/understand the project If you want to add it to the game repo, I'm not sure, that it's needed. But some base stuff can be tested inside tests. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now