1. 31 Oct, 2017 2 commits
    • Kenneth Moreland's avatar
      Fix portable implementations with GNU compiler · b1655f1e
      Kenneth Moreland authored
      The GNU compiler is being strict about POSIX compliance. Explicitly
      port those things outside of POSIX (like snprintf).
      b1655f1e
    • Kenneth Moreland's avatar
      Fix warnings on MSVC · f577114f
      Kenneth Moreland authored
      Most of the warnings are about using "unsafe" functions. In addition to
      replacing string functions like strcpy with counting strncpy versions,
      which makes sense, older MSVC versions for some reason don't support
      POSIX versions of these functions. Instead, they have their weird
      offshoots, which is a pain.
      f577114f
  2. 10 Feb, 2015 1 commit
    • Kenneth Moreland's avatar
      Make test file name separators consistent · a9baf8fa
      Kenneth Moreland authored
      Some of the files in the tests directory used a dash to separate words
      (e.g. test-config.h and test-util.h) whereas others used an underscore
      (e.g. test_codes.h and mpi_comm.h). Renamed the files such that they all
      use underscores, which matches better the filenames used elsewhere.
      a9baf8fa
  3. 22 Jan, 2015 2 commits
    • Kenneth Moreland's avatar
      Adjust size of viewport when rendering tiles · cf97fd19
      Kenneth Moreland authored
      In the RandomTransform test when rendering pre-rendered images, we were
      previously always rendering to the entire window size. However, when
      trying tiled displays, which break up the display, the actual global
      display can be a little smaller than that due to roundoff in the
      division. This change sets the viewport to be exactly the size of the
      global viewport.
      cf97fd19
    • Kenneth Moreland's avatar
      Randomly test pre rendered compositing. · 22628722
      Kenneth Moreland authored
      Modify the RandomTransform test to try a composite using a pre-rendered
      image in addition to using rendering callbacks (through the OpenGL
      layer). This should be better about catching bugs like the previously
      fixed one.
      22628722
  4. 29 Oct, 2011 1 commit
    • Kenneth Moreland's avatar
      Make RandomTransform test less susceptible to numerical error. · 920a91b1
      Kenneth Moreland authored
      The way the translation transform was picked, I was getting z shifts
      that were so close that after OpenGL transforms you ended up with the
      same depth value, which of course threw off the compositing.  This
      change limits the precision used for the Z shift which seems to avoid
      really close values but does not seem to encourage the same value
      (although that is still a possibility).
      920a91b1
  5. 04 May, 2011 2 commits
  6. 24 Feb, 2011 1 commit
  7. 31 Jan, 2011 1 commit
  8. 10 Jan, 2011 1 commit
  9. 20 Dec, 2010 2 commits
  10. 15 Dec, 2010 1 commit
    • Kenneth Moreland's avatar
      Fix 64bit to 32bit demotions. · 402d28d2
      Kenneth Moreland authored
      Many parts of the code allowed implicit conversion from a 64 bit value
      to a 32 bit value.  A lot of this was using IceTSizeType as a 32 bit
      integer.  Using the compiler warnings, remove the conversions or make
      them explicit.
      402d28d2
  11. 09 Aug, 2010 1 commit
  12. 20 Jul, 2010 1 commit
    • Kenneth Moreland's avatar
      Change icetImageGetColor/Depth to use short suffixes. · 07c4d37f
      Kenneth Moreland authored
      The icetImageGetColor* and icetImageGetDepth* now use the abbriviated
      OpenGL convention of using single characters to identify type (such as
      ub and f) instead of longer names (such as UByte and Float).  I am
      no longer enamored with this convention, but it is used elsewhere in
      IceT (e.g. icetBoundingBox), and I am a fan of consistency.
      07c4d37f
  13. 13 Jul, 2010 1 commit
  14. 02 Jul, 2010 1 commit
  15. 28 Jun, 2010 2 commits
  16. 25 Jun, 2010 1 commit
    • Kenneth Moreland's avatar
      Change the name of the development includes. · 1fe6b21e
      Kenneth Moreland authored
      The development include files had very generic names like draw.h
      and image.h.  These could easily be confused for includes from
      other packages.  To reduce the posibility of filename collisions,
      prefix each development include with IceTDev.
      1fe6b21e
  17. 17 Jun, 2010 1 commit
    • Kenneth Moreland's avatar
      Removed OpenGL rendering dependency from core. (broken) · 47657ff6
      Kenneth Moreland authored
      image.c is now completely OpenGL independent.  The rendering callbacks
      now pass the parameters that IceT fiddles with (matrices, background,
      readback region) and lets the user code render with whatever system
      available.  The OpenGL layer now has the code that sets up OpenGL before
      making its own callback (which, like before, takes no arguments) and
      then reading the data back from the OpenGL buffers.
      
      I know that there are glaring bugs in this code.  I will address them
      soon.
      47657ff6
  18. 16 Jun, 2010 3 commits
    • Kenneth Moreland's avatar
    • Kenneth Moreland's avatar
      Added width and height to image objects. · 994c277f
      Kenneth Moreland authored
      The intention is to make things more clear for the client code when
      passing an image object.  This is particularly important in the callback
      that is expected to fill some sub part of an image that is set to
      the size of the physical viewport rather than any tile.
      994c277f
    • Kenneth Moreland's avatar
      Remove OpenGL from draw.c. · da8bf613
      Kenneth Moreland authored
      All the functions in draw.c now no longer depend on OpenGL at all.
      The biggest interface change to this effect is that icetDrawFrame()
      now requires the user to pass in the projection/modelview matrices
      and the background color.  A new function in the OpenGL layer called
      icetGLDrawFrame() behaves like the old function by grabbing these
      values from OpenGL.
      da8bf613
  19. 15 Jun, 2010 1 commit
    • Kenneth Moreland's avatar
      Unify seed in RandomTransform test. · e66ffc99
      Kenneth Moreland authored
      Previously, each process independently created a seed with the
      time function.  Easy to implement, but problematic if not all
      the time is synchronized.  Instead, create a seed on the root
      process and send to the rest.  The rest modify their seed
      slightly.  This way you can replicate a failure by just forcing
      one seed value rather than worry about all the processes.
      e66ffc99
  20. 14 Jun, 2010 3 commits
  21. 11 Jun, 2010 1 commit
  22. 18 May, 2010 1 commit
    • Kenneth Moreland's avatar
      Change IceTPointerArithmetic to signed. · 74ae5b77
      Kenneth Moreland authored
      The IceTPointerArithmetic type (and the subsequently derived
      IcetSizeType) were declared as unsigned integers of the correct
      length.  The problem is that it became odd to represent negative
      numbers, which can happen when doing actual arithmetic.  I
      recently traced down a bug in icetGetViewportProject where
      an IceTInt was subtracted by an IceTSizeType (resulting in a
      negative number) and then cast to an IceTDouble.  Because the
      twos complement was interpreted as a positive number we got a
      huge number that was totally unexpected.  This change should
      prevent mistakes like these.
      74ae5b77
  23. 14 May, 2010 1 commit
    • Kenneth Moreland's avatar
      Make icetUnsafeStateGet type safe. · f9a6354b
      Kenneth Moreland authored
      The previous version of icetUnsafeStateGet blindly cast whatever
      type was stored in the state variable to whatever the caller
      wanted.  If the caller got the type wrong, that would be hard to
      debug.  Replaced this method with several type-specific versions.
      This makes a compile-type check to be sure the user is storing
      the expected type into a compatible pointer and a run-time check
      to make sure that the expected pointer is what is actually
      stored.  If the run-time check fails, then a crash will probably
      still occur, but it will be much easier to diagnose.
      f9a6354b
  24. 11 May, 2010 1 commit
  25. 04 May, 2010 1 commit
    • Kenneth Moreland's avatar
      Converted tests to use Glut. · ccc8ed32
      Kenneth Moreland authored
      Previously the tests used some hack-ish code for creating windows
      on X and Win32.  Unfortunately, this meant that I could not run
      the tests on Mac, where I now do most of my development.  Rather
      that make my own knock off again, I am using a well-established
      portable library.
      ccc8ed32
  26. 10 Jul, 2006 1 commit
  27. 16 Dec, 2005 2 commits
  28. 12 Aug, 2003 2 commits
  29. 24 Jul, 2003 1 commit