Exemple #1
0
	void toggleObject()
	{
		models.objectIndex++;
		if (models.objectIndex >= static_cast<uint32_t>(models.objects.size()))
		{
			models.objectIndex = 0;
		}
		reBuildCommandBuffers();
	}
	virtual void render()
	{
		if (!prepared)
			return;
		vkDeviceWaitIdle(device);
		draw();
		vkDeviceWaitIdle(device);
		if (!paused)
		{
			reBuildCommandBuffers();
		}
	}
Exemple #3
0
	void togglePipelines()
	{
		if (pipelineRight == &pipelines.solid)
		{
			pipelineRight = &pipelines.wire;
			pipelineLeft = &pipelines.wirePassThrough;
		}
		else
		{
			pipelineRight = &pipelines.solid;
			pipelineLeft = &pipelines.solidPassThrough;
		}
		reBuildCommandBuffers();
	}
Exemple #4
0
	void toggleSplitScreen()
	{
		splitScreen = !splitScreen;
		reBuildCommandBuffers();
		updateUniformBuffers();
	}
Exemple #5
0
	void toggleSkyBox()
	{
		displaySkybox = !displaySkybox;
		reBuildCommandBuffers();
	}
Exemple #6
0
	void toggleBloom()
	{
		bloom = !bloom;
		reBuildCommandBuffers();
	}
Exemple #7
0
	void toggleSampleShading()
	{
		useSampleShading = !useSampleShading;
		reBuildCommandBuffers();
	}
	void toggleNormals()
	{
		displayNormals = !displayNormals;
		reBuildCommandBuffers();
	}