Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Add shader settings support in external .json #163

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

on-situ-repos
Copy link
Contributor

Features :

  • shader configuration in json format
  • support of external images / textures (with filtering and wrap modes), and float parameters
  • support of includes
  • support of C style comments in .json
  • automatic reload if either shader, config files, included files, images change
  • ISubPicShaderPresenter interface to retrieve the parameters, call just after SetPixelShader

Sample shader for testing purpose

@on-situ-repos on-situ-repos force-pushed the shader_settings_json branch 2 times, most recently from e56874e to 22a0dde Compare March 17, 2016 12:31
sh0wTuan2016 referenced this pull request Mar 19, 2016
… to get the icons for the toolbar (play, pause, etc) buttons; else it uses built-in icons.

"Toolbar.bmp" can be of bitdepth <= 24, in which case RGB(255, 0, 255) is considered transparent or of bitdepth 32, in which case the alpha channel is used for transparency / gradients; 32 bit bitmaps mustn't use any compression in order to load properly; its resolution should be 15h x h to load, each icon being h x h in size for bigger toolbar.bmp files, the player minimum width is set so that all icons remain visible.
The volume slider isn't modified yet - it keeps its size.

Patch by foxx1337

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1706 10f7b99b-c216-0410-bff0-8a66a9350fd8
@sh0wTuan2016 sh0wTuan2016 mentioned this pull request Mar 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
1 participant