code cleanup: quiet warnings building with mingw.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55658 954f8c5b-7b00-dc11-b283-0030488c597c
minor fix for annoyance with directory selection on windows.

selecting a relative directory through BUTTONS_OT_directory_browse would convert '//' into '//\'.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55659 954f8c5b-7b00-dc11-b283-0030488c597c
add edge-angle drawing in editmode for manifold edges.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55660 954f8c5b-7b00-dc11-b283-0030488c597c
correction for drawing edge-angles with scaled matrix.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55661 954f8c5b-7b00-dc11-b283-0030488c597c
minor improvement to edge-angle-drawing, when transforming verts draw the angle of the opposite edge since this is the angle thats being changed.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55662 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55663 954f8c5b-7b00-dc11-b283-0030488c597c
misc minor edits.

- pass string size to BLI_timestr() to avoid possible buffer overrun.
- quiet warning for mingw.
- include guards for windows utf conversion funcs.
- fix for mistage in edge-angle-selection check.
- some style cleanup.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55664 954f8c5b-7b00-dc11-b283-0030488c597c
fix/workaround [#34346] Blender total crashes when File/User preferences twice and go to System tab


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55665 954f8c5b-7b00-dc11-b283-0030488c597c
remove unused GLUquadricObj in draw_manipulator_rotate()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55666 954f8c5b-7b00-dc11-b283-0030488c597c
Support for brush overlay in texture paint mode. For the image editor,
the tiled overlay is still a bit off, investigating on how to better
correct this, though it may well be non trivial.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55668 954f8c5b-7b00-dc11-b283-0030488c597c
Slight cleanup for 2d painting. Cache is always enabled (used one of the
bookkeeping variables from when the code was shared with texture
painting) Also texonly now is always zero, probably another leftover
from 2d/3d painting entanglement era.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55669 954f8c5b-7b00-dc11-b283-0030488c597c
Implement GPU-side display transform for clip editor

Implemented using GLSL API from OpenColorIO library and
some general functions were added to it's c-api:

- OCIO_setupGLSLDraw prepares OpenGL context for GPU-based
  transformation for a giver processor.

  This function compiles and links shader, sets  up it's
  argument. After this transformation would be applied
  on an image displaying as a 2D texture.

  So, glaDrawPixelsTex called after OCIO_setupGLSLDraw will
  do a proper color space transform.

- OCIO_finishGLSLDraw restores OpenGL context after all
  color-managed display is over.

- OCIO_freeOGLState frees allocated state structure used
  for cacheing some GLSL-related stuff.

There're some utility functions in IMB_colormanagent which
are basically proxies to lower level OCIO functions but
which could be used from any place in blender.

Chacheing of movie clip frame on GPU is also removed now,
and either glaDrawPixelsTex or glaDrawPixelsAuto are used
for display now. This is so no code duplication happens
now and no large textures are lurking around in GPU memory.

Known issues:
- Texture buffer and GLSL are no longer checking for
  video card capabilities, possibly could lead to some
  artifacts on crappy drivers/cards.

- Only float buffers are displaying using GLSL, byte
  buffers will still use fallback display method.

  This is to be addressed later.

- If RGB curves are used as a part of display transform,
  GLSL display will also be disabled. This is also thing
  to be solved later.

Additional changes:

- glaDrawPixelsTexScaled will now use RGBA16F as an
  internal format of storing textures when it's used
  to draw float buffer. This is needed so LUT are
  applied without precision loss.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55670 954f8c5b-7b00-dc11-b283-0030488c597c
SVN property for new file



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55671 954f8c5b-7b00-dc11-b283-0030488c597c
Compile fix for recent OCIO commit, missing GLEW include.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55672 954f8c5b-7b00-dc11-b283-0030488c597c