added SCE PlayStation Mobile basic project template

This commit is contained in:
Michael Becker 2020-10-20 20:59:14 -04:00
parent 515e332f61
commit 0a917c6c7f
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7
7 changed files with 147 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<UniversalEditor Version="2.0">
<ProjectTemplates>
<ProjectTemplate ID="{BF876842-64CA-4832-A562-DBA6970C691A}" TypeID="{33C51321-C18B-409C-A7D0-BEF65BFEFC9A}">
<Information>
<Title>Basic PlayStation(R) Mobile Project</Title>
<ProjectNamePrefix>PsmApp</ProjectNamePrefix>
<Description>Creates a basic PlayStation Mobile app for developing on PlayStation Vita and PlayStation 3.</Description>
<IconPath LargeFileName="Images/Psm_32x32.png" SmallFileName="Images/Psm_16x16.png" />
<Path>
<Part>Sony</Part>
<Part>PlayStation</Part>
</Path>
</Information>
<FileSystem CopyFrom="content" />
</ProjectTemplate>
</ProjectTemplates>
</UniversalEditor>

View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{7FB49F92-2DB6-42DE-8A9B-8568615CAD32}</ProjectGuid>
<ProjectTypeGuids>{69878862-DA7D-4DC6-B0A1-50D8FAB4242F};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
<RootNamespace>PsmRuntime</RootNamespace>
<AssemblyName>PsmRuntime</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Sce.PlayStation.Core" />
</ItemGroup>
<ItemGroup>
<Compile Include="AppMain.cs" />
</ItemGroup>
<ItemGroup>
<ShaderProgram Include="shaders\Simple.fcg" />
<ShaderProgram Include="shaders\Simple.vcg" />
</ItemGroup>
<ItemGroup>
<PsmMetadata Include="app.xml" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Sce\Sce.Psm.CSharp.targets" />
</Project>

View File

@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using Sce.PlayStation.Core;
using Sce.PlayStation.Core.Environment;
using Sce.PlayStation.Core.Graphics;
using Sce.PlayStation.Core.Input;
namespace $(Project.Title)
{
public class AppMain
{
private static GraphicsContext graphics;
public static void Main (string[] args)
{
Initialize ();
while (true) {
SystemEvents.CheckEvents ();
Update ();
Render ();
}
}
public static void Initialize ()
{
// Set up the graphics system
graphics = new GraphicsContext ();
}
public static void Update ()
{
// Query gamepad for current state
var gamePadData = GamePad.GetData (0);
}
public static void Render ()
{
// Clear the screen
graphics.SetClearColor (0.0f, 0.0f, 0.0f, 0.0f);
graphics.Clear ();
// Present the screen
graphics.SwapBuffers ();
}
}
}

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<application project_name="*" version="1.00" default_locale="en-US">
<runtime_config>
<memory managed_heap_size="32768" resource_heap_size="65536" />
</runtime_config>
<feature_list>
<feature value="GamePad" />
<feature value="Touch" />
</feature_list>
</application>

View File

@ -0,0 +1,6 @@
void main( float4 out Color : COLOR,
uniform float4 MaterialColor )
{
Color = MaterialColor;
}

View File

@ -0,0 +1,8 @@
void main( float4 in a_Position : POSITION,
float4 out v_Position : POSITION,
uniform float4x4 WorldViewProj
)
{
v_Position = mul( a_Position, WorldViewProj );
}

View File

@ -307,6 +307,12 @@
<Content Include="Editors\RavenSoftware\Carcass\CarcassEditor.glade" />
<Content Include="Editors\RavenSoftware\Carcass\Dialogs\ModelReferencePropertiesDialog.glade" />
<Content Include="Editors\Multimedia\Audio\Waveform\Commands.uexml" />
<Content Include="Templates\Project\SCE\PSM\BasicProject.uexml" />
<Content Include="Templates\Project\SCE\PSM\content\app.xml" />
<Content Include="Templates\Project\SCE\PSM\content\%24%28Project.Title%29.csproj" />
<Content Include="Templates\Project\SCE\PSM\content\AppMain.cs" />
<Content Include="Templates\Project\SCE\PSM\content\shaders\Simple.vcg" />
<Content Include="Templates\Project\SCE\PSM\content\shaders\Simple.fcg" />
</ItemGroup>
<ItemGroup>
<Content Include="Configuration\Application.upl" />
@ -338,6 +344,8 @@
<Folder Include="Extensions\Amiga\Associations\VectorImage\" />
<Folder Include="Editors\RavenSoftware\Carcass\Dialogs\" />
<Folder Include="Editors\Multimedia\Audio\Waveform\" />
<Folder Include="Templates\Project\SCE\" />
<Folder Include="Templates\Project\SCE\PSM\" />
</ItemGroup>
<ItemGroup>
<Content Include="Templates\Project\Concertroid\Images\Concert.xcf" />