Skip to content

weimingtom/Sakura

Repository files navigation

Sakura

Sakura=OpenTK+PSSSDK

History

  • 2018-05-15: HelloWorld done.
  • 2018-03-23: PuzzleGameDemo done.
  • 2018-03-22: ActionGameDemo done.
  • 2018-03-21: FeatureCatalog done.
  • 2018-03-17: HelloSprite done.
  • 2018-01-28: PersistentMemorySample done.
  • 2018-01-27: StorageSample done.
  • 2018-01-27: SystemParametersSample done.
  • 2018-01-27: SystemEventsSample done.
  • 2018-01-27: ShellSample done.
  • 2018-01-27: DialogSample done.
  • 2018-01-27: ClipboardSample done.
  • 2018-01-27: SocketSample done.
  • 2018-01-27: SocketSample done.
  • 2018-01-27: HttpSample done.
  • 2018-01-26: ImageSample done.
  • 2018-01-26: FontSample done.
  • 2018-01-26: TouchSample done.
  • 2018-01-26: MotionSample done.
  • 2018-01-26: GamePadSample done.
  • 2018-01-26: SoundPlayerSample done.
  • 2018-01-26: BgmPlayerSample done.
  • 2018-01-25: ShaderCatalogSample done.
  • 2018-01-21: PixelBufferSample done.
  • 2018-01-17: MathSample done.
  • 2018-01-17: PrimitiveSample done.
  • 2018-01-16: SpriteSample done.
  • 2018-01-15: TriangleSample done.

References

Bug / TODO

  • HelloWorld: USE_SampleDraw
  • HelloWorld: USE_COLORMASK
  • HelloWorld: // if (!UISystem.StoredGraphicsState.ColorMask.Equals(UISystem.GraphicsContext.GetColorMask()))
  • HelloWorld: //UISystem.RestoreGraphics(); //FIXME:???
  • HelloWorld: class TextRenderHelper: public ImageAsset DrawText...Image image = new Image(ImageMode.A/(ImageMode)1/ //alpha not implemented
  • PuzzleGameDemo: Draw text wrong, bubble not shown.
  • ActionGameDemo: ColorBuffer and SetColorTarget(ColorBuffer buffer) not implemented
  • FeatureCatalog: BlendMode.None not work (black bg, not white bg, search '//drawing.Clear(_backColor); //FIXME:???for png file background').
  • FeatureCatalog: different fonts make some white pixels around the text.
  • FeatureCatalog: public Texture2D (int width, int height, bool mipmap, PixelFormat format, PixelBufferOption option, bool supportNPOT) should be removed
  • SpriteSample: The sprite is not center, larger than original size
  • SpriteSample: NPOT, see Texture2D.SetPixels, see __supportNPOT
  • SampleLib : Font size
  • search FIXME:not used
  • ShaderCatalogSample : in Texture2D, if (fileName.Contains("renga.png")), 256 is changed to 250
  • ShaderCatalogSample : in GraphicsContext, global textureDic is clear in SwapBuffers(), but global vertexBuffer is clear in SetShaderProgram()
  • SpriteSample: GL.Clear(ClearBufferMask.DepthBufferBit); //FIXME:??????in SpriteSample, for sprite black bg problem
  • SpriteSample: __supportNPOT can be set true if REPEAT wrap mode not used
  • Data files not found error.
  • BgmPlayerSample: if (Status == BgmStatus.Stopped || Status == BgmStatus.Paused) //FIXME: Can restart???
  • GamePadSample, ...: //SampleDraw.ClearSprite(); //FIXME:modified, for preventing memory overflow
  • GamePadSample: AnalogLeftX, AnalogLeftY, AnalogRightX, AnalogRightY not implemented
  • in Texture2D, public void SetPixels(...) { __supportNPOT = true; //NOTE:bug for repeat wrap mode //FIXME: for SampleDraw.DrawText()
  • in Font, * 0.70f), _style); //FIXME:???0.8
  • Render() memory leak
  • MotionSample: MotionData not set
  • Check OpenAL dll in Windows XP
  • SocketSample: in SampleButton, return; //FIXME: for textures overflow
  • HelloSprite: DebugFlags.Navigate not implemented (20180318:fixed, Key A and W + drag).
  • HelloSprite: DebugFlags.DrawGrid not implemented (20180318:fixed).

cgc

cgc.exe "BlinnPhong.fcg" -profile glslf -o "BlinnPhong.glslf"
cgc.exe "BlinnPhong.vcg" -profile glslv -o "BlinnPhong.glslv"
cgc input_f.txt -profile glslf -o a.txt
python cg_glsl_to_es20_glsl.py a.txt > output_f.txt
cgc input_v.txt -profile glslv -o a.txt
python cg_glsl_to_es20_glsl.py a.txt > output_v.txt

cg to glsl mod

//gl_TexCoord[0].xy = a_TexCoord.xy; -> removed
vec2 _v_TexCoord1; -> varying vec2 _v_TexCoord1;
uniform sampler2D xxx:TEXUNIT0 -> Texture0
uniform sampler2D xxx:TEXUNIT0 -> Texture1

About

Sakura=OpenTK+PSSSDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages