Settings
  • Just about everything is in dockable panes, these work similarly to Visual Studio's docking panes. The layout will be saved upon closing and restored upon opening the program.
  • Word Wrap and Line Numbering is saved upon changing toggling them from the View menu.
  • Panes which are hidden (due to being closed), can be reopened from the View menu.

Layout
Due to changes this section of the documentation will need to be updated, will get to that soon. Everything else should still apply.

Functionality
  • When no texture is set, the effect will render as a full screen quad by filling the entire visible area.
  • When any textures are present, the editor will scan through them in order (starting at 0) until it finds one, at which point it will set the viewport to match the texture's dimensions.
  • Mouse coordinates are passed in the domain of the viewport used to render the effect, not the preview pane's size (unless it's smaller than the actual render area).

Pulling values from the rendering system
This is still a not-so-complete implementation as I'm experimenting with ideas on how to make it robust and easy to work with. In it's current form you must annotate a variable with a specific string to pull in values, which looks like the following:
float Time < string Source = "GameTime.ElapsedTime.TotalMilliseconds"; >;

The hierarchy of available values looks like the following:
  • GameTime
    • ElapsedTime OR ElapsedGameTime (both are the same)
      • Days (integer form)
      • Hours (integer form)
      • Minutes (integer form)
      • Seconds (integer form)
      • Milliseconds (integer form)
      • Ticks (integer form)
      • TotalDays (decimal form)
      • TotalHours (decimal form)
      • TotalMinutes (decimal form)
      • TotalSeconds (decimal form)
      • TotalMilliseconds (decimal form)
    • TotalTime OR TotalGameTime (both are the same)
      • Days (integer form)
      • Hours (integer form)
      • Minutes (integer form)
      • Seconds (integer form)
      • Milliseconds (integer form)
      • Ticks (integer form)
      • TotalDays (decimal form)
      • TotalHours (decimal form)
      • TotalMinutes (decimal form)
      • TotalSeconds (decimal form)
      • TotalMilliseconds (decimal form)
  • Viewport
    • X
    • Y
    • Width
    • Height
    • MinDepth (near clip)
    • MaxDepth (far clip)
    • AspectRatio
    • TitleSafeArea (float4 in format { X, Y, Width, Height })
  • TextureN (N is an optional number corresponding to sampler index, no N means Texture0)
    • Width
    • Height
    • Size (float2 in format { Width, Height })
    • LevelCount (number of LOD levels)
  • Mouse
    • Position (float2 in format { X / Width, Y / Height }, 0->1 range)
    • Location (float2 in format { X, Y }, 0->Width/Height range)
    • Scroll
    • LeftButton (bool)
    • MiddleButton (bool)
    • RightButton (bool)
    • XButton1 (bool)
    • XButton2 (bool)

Known Issues
  • Folding detects single line statements, low priority so don't expect a fix for awhile.
  • Loaded effects are not parsed to find #include statements.
  • Long compilations lock up the editor until completed, fix is planned for next release.

Requirements

Last edited May 26, 2012 at 2:46 AM by Default_Ex, version 7

Comments

No comments yet.