grits
7 years agoVersion bump for 0.7 v0.7.x v0.7
Andy Spencer [Wed, 15 Feb 2012 05:48:32 +0000 (05:48 +0000)]
Version bump for 0.7

7 years agoFix run-time warning when closing NULL dir
Andy Spencer [Tue, 14 Feb 2012 18:17:19 +0000 (18:17 +0000)]
Fix run-time warning when closing NULL dir

7 years agoUse depth test for partial tile drawing
Andy Spencer [Tue, 14 Feb 2012 04:53:33 +0000 (04:53 +0000)]
Use depth test for partial tile drawing

If a child tile exists, draw it first and rely on the depth test to
prevent overwriting it with the parent tile.

7 years agoFix crash when unloading the root tile
Andy Spencer [Tue, 14 Feb 2012 03:39:12 +0000 (03:39 +0000)]
Fix crash when unloading the root tile

7 years agoImprove performance of GritsTile
Andy Spencer [Tue, 14 Feb 2012 03:20:20 +0000 (03:20 +0000)]
Improve performance of GritsTile

This avoid doing lots of computation in the inner the draw loop by
moving it out to the top-level draw function.

7 years agoRemove background env tile
Andy Spencer [Mon, 13 Feb 2012 23:22:12 +0000 (23:22 +0000)]
Remove background env tile

because it doesn't do anything..

7 years agoFix memory leaks in tile loading
Andy Spencer [Mon, 13 Feb 2012 23:12:20 +0000 (23:12 +0000)]
Fix memory leaks in tile loading

- Splitting a tile could accidentally overwrite a already split tile if
  one (but not all) of the children were garbage collected.

- Garbage collection never actually happened.. because tile always had
  empty children. To fix this a `load' flag was added so that the
  children could be garbage collected as well without having to check
  the data flag which may always be null.

tile->load: set when texture loading has started
tile->data: set when texture loading has finished

7 years agoCast function pointers for gluTessCallback
Andy Spencer [Sun, 12 Feb 2012 07:22:08 +0000 (07:22 +0000)]
Cast function pointers for gluTessCallback

The glu type does not work on Mac OSX, and an un-casted version does not
work in Debian.. Hopefully casting it to GCallback (void-void function)
will work both places..

7 years agoReentrant dispose functions for sat and map
Andy Spencer [Sun, 12 Feb 2012 06:17:28 +0000 (06:17 +0000)]
Reentrant dispose functions for sat and map

7 years agoDelay load the textures for label markers
Andy Spencer [Sat, 11 Feb 2012 17:32:27 +0000 (17:32 +0000)]
Delay load the textures for label markers

This makes the normal constructor thread-safe so they don't need to be
created from a callback, the same should eventually be done for the icon
markers.

7 years agoLoad tiles at a lower resolution
Andy Spencer [Sat, 11 Feb 2012 08:14:29 +0000 (08:14 +0000)]
Load tiles at a lower resolution

The updated FOV code causes tiles to get loaded sooner than they used to
bee. While this may be "correct" it creates hard-to-read tiles because
they're so small. It also increases memory usage..

7 years agoCheck for split on all child tiles
Andy Spencer [Sat, 11 Feb 2012 07:03:17 +0000 (07:03 +0000)]
Check for split on all child tiles

When tiles split, all the children will be valid so only [0][0] needs to
be checked. However, a child tile may be garbage collected in which case
there may be a NULL child tile.

7 years agoFix key-press in GritsTest
Andy Spencer [Sat, 11 Feb 2012 06:16:07 +0000 (06:16 +0000)]
Fix key-press in GritsTest

Some key events are > 256 which caused an array index out of bounds.

7 years agoIncrease camera angle to 60 degrees
Andy Spencer [Fri, 10 Feb 2012 18:26:50 +0000 (18:26 +0000)]
Increase camera angle to 60 degrees

Using the 30 degree viewing angle looks reasonable realistic,
but is difficult to use since it requires much more panning.

Derivation of FOV_DIST for a 1600x1200 monitor
with a vertical viewing angle of 60 degrees:

        ---  +.
         |   | '-.     angle
  height |   |    '-./
  (px)   |   |      /'-.
         |   +------|---+ (o) eye
         |   |      \ .-'
         |   |     .-'
         |   |  .-'
        ---  +-'

             |----------|
               FOV_DIST (px)

  height   = 1200 px
  angle    =   60 deg
  fov_dist = cot(angle/2)*(height/2) = ~1039.23

Derivation of angle for window of a given height:

  angle    = atan((height/2)/FOV_DIST)*2

7 years agoUpdate test plugin for level rendering changes
Andy Spencer [Thu, 9 Feb 2012 09:30:25 +0000 (09:30 +0000)]
Update test plugin for level rendering changes

7 years agoAdd ortho flag to GritsMarker
Andy Spencer [Thu, 9 Feb 2012 09:20:58 +0000 (09:20 +0000)]
Add ortho flag to GritsMarker

Setting ortho to true causes the marker to be drawn orthographic and
flat against the screen. This is the default and behavior and is markers
have been drawn in the past.

Clearing the flag causes he marker to be drawn using the viewers
perspective projection but scaled to a fixed size.

7 years agoSupport pixmap icons in GritsMarker
Adam Boggs [Thu, 9 Feb 2012 07:07:38 +0000 (07:07 +0000)]
Support pixmap icons in GritsMarker

This adds a second marker constructor that loads a pixmap from a file
and uses that as the marker.

Rotation angles are also supported so that the marker can be made to
point in a certain direction.

7 years agoCorrect FOV_DIST and MPPX calculations
Andy Spencer [Wed, 8 Feb 2012 07:35:39 +0000 (07:35 +0000)]
Correct FOV_DIST and MPPX calculations

Derivation of FOV_DIST for a 1600x1200 monitor
with a vertical viewing angle of 30 degrees:

        ---  +._
         |   |  '-._     angle
  height |   |      '-._/
  (px)   |   |         ('-._
        ---  +--------------+ (o) eye

             |--------------|
               FOV_DIST (px)

  height   = 1200 px
  angle    =   30 deg
  fov_dist = cot(angle)*height = 2078.46

Derivation of angle for window of a given height:

  angle    = atan(height/FOV_DIST)

Derivation of resolution in meters per pixel
at a given distance:

        ---  +._
         |   |  '-._
  length |   |      '-._
  (m)    |   |          '-._
        ---  +--------------+ (o) eye

             |--------------|
               dist (m)

  length   = tan(angle) * dist
  mppx     = length / height
           = (tan(atan(height/FOV_DIST)) * dist) / height
           = dist/FOV_DIST

7 years agoAdd grits_viewer_unproject function
Andy Spencer [Mon, 6 Feb 2012 06:32:35 +0000 (06:32 +0000)]
Add grits_viewer_unproject function

This does the opposite of the grits_viewer_project function and can be
used to get the lat-lon-elev point corresponding to a point on the
screen, such as the pointer location. This currently has an undefined
output if the screen coordinates do not map to the location of an object
in the viewer.

This should not be used to determine if an objects has been selected or
clicked on. OpenGL picking should be used for that by connecting to one
of the GritsObject mouse event signals.

7 years agoRewrite expose to preserve the depth buffer
Andy Spencer [Mon, 6 Feb 2012 05:41:44 +0000 (05:41 +0000)]
Rewrite expose to preserve the depth buffer

Sorted objects are now drawn with depth testing enabled. Unsorted
objects are drawn without depth testing. This mostly affects
GRITS_LEVEL_WORD+n objects.

Objects at other levels such as BACKGROUND, OVERLAY, and HUD should
generally disable sorting so that they are always drawn to the screen.
For those levels, the depth-buffer is set to read-only. This preserves
the depth buffer so  that it can be used later on to get the world-level
depth at a given screen location.

7 years agoAdd rate limit to auto-saving prefs
Andy Spencer [Sat, 4 Feb 2012 07:54:35 +0000 (07:54 +0000)]
Add rate limit to auto-saving prefs

7 years agoFix bugs in GritsTile
Andy Spencer [Sat, 4 Feb 2012 00:28:21 +0000 (00:28 +0000)]
Fix bugs in GritsTile

- Prevent black spots when tiles are hidden by a thread while they are
  being drawn by the main thread.

- Add hack to draw maps in a lighter color

7 years agoImprove rendering of non lat-lon tiles tms
Andy Spencer [Mon, 30 Jan 2012 07:50:27 +0000 (07:50 +0000)]
Improve rendering of non lat-lon tiles

There have been a long standing bugs related to this..
Up until now the solution was to only use tiles that split along
lat-long lines and to also split the geometry (in roam) along the same
lines.

Hopefully this allows tiles to be rendered properly.

See examples/tex.c for details of how this rendering works.

7 years agoUse multi-texturing for alpha masking in tex.c
Andy Spencer [Mon, 30 Jan 2012 07:06:08 +0000 (07:06 +0000)]
Use multi-texturing for alpha masking in tex.c

Multi-texturing uses two textures for each fragment. The example uses
GL_TEXTURE0 as the regular texture color and a second texture as the
alpha mask. Since there are two textures they can have separate
filtering an wrapping parameters.

The color texture uses GL_MODULATE which combines it with the existing
color. The alpha mask uses GL_REPLACE which causes it to replace the
linearly filtered alpha mask from the color texture with a hard-edged
alpha mask that is clamped to transparent at the border.

This is similar to how drawing is done in NASA World Wind

7 years agoUse glBlendFuncSeparate for alpha masking in tex.c
Andy Spencer [Mon, 30 Jan 2012 06:39:15 +0000 (06:39 +0000)]
Use glBlendFuncSeparate for alpha masking in tex.c

The draw happens in two steps:

1. Copy the alpha mask to the framebuffer without changing the color
   channels: glBlendFuncSeparate(GL_ZERO, GL_ONE, GL_ONE, GL_ZERO)

   This uses GL_LINEAR filtering and GL_CLAMP_TO_BORDER to create a
   alpha mask with hard edges as opposed to blurred edges.

2. Copy the texture color to the framebuffer using the alpha mask
   stored in the frame buffer as the mask:
   glBlendFuncSeparate(GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_ZERO, GL_ZERO);

   We can turn on GL_LINEAR filtering and GL_CLAMP here because the
   alpha mask is taken from the framebuffer instead of the filtered
   alpha component of the texture.

This creates a nice looking image without having to do any fancy setup.
The previous version also has issues if the texture is not split in the
middle of the polygon.

Unfortunately glBlendFuncSeparate depends on OpenGL 2.0 and requires
twice as many draws.

7 years agoCleanup tex formatting and clear background first
Andy Spencer [Mon, 30 Jan 2012 06:32:10 +0000 (06:32 +0000)]
Cleanup tex formatting and clear background first

Clearing the entire background lets us add in textures with

  glBlendFunc(GL_ONE, GL_ONE);

without having to determine which texture is drawn first

7 years agoSwitch map plugin to tile map service
Andy Spencer [Sat, 21 Jan 2012 04:16:29 +0000 (04:16 +0000)]
Switch map plugin to tile map service

7 years agoAdd support for Mercator projections in tiles
Andy Spencer [Sat, 21 Jan 2012 04:16:25 +0000 (04:16 +0000)]
Add support for Mercator projections in tiles

This split tiles in the correct

7 years agoAdd Tile Map Service downloading
Andy Spencer [Mon, 16 Jan 2012 03:13:00 +0000 (03:13 +0000)]
Add Tile Map Service downloading

This uses map tiles directly from openstreetmap.org. The problem with
this is that those tiles are rendered using a Mercator projections which
is non-linear with respect to latitude. Two things must be done to
properly correct for this:

1. Split tiles at the correct location. With the Mercator projection,
   the midpoint of a tile is the midpoint of the longitude but not the
   midpoint of the latitude.

   Correcting this very important because it prevent tiles from being
   drawn in entirely the wrong place.

2. Morph each tile to lat-lon projection when it is drawn. This could
   possibly be done with a OpenGL fragment shader.

   This noticeable when zoomed out so it's not too bad to just ignore
   the issue.. The web based map servers have similar issues with land
   area at high-up zoom levels.

Eventually we'll want to fetch the XML and render the maps locally..

7 years agoVersion bump for 0.6.3
Andy Spencer [Tue, 10 Jan 2012 08:22:20 +0000 (08:22 +0000)]
Version bump for 0.6.3

7 years agoRemove object when test plugin unloads
Andy Spencer [Tue, 10 Jan 2012 07:21:35 +0000 (07:21 +0000)]
Remove object when test plugin unloads

7 years agoFix clipping plane issues
Andy Spencer [Sun, 8 Jan 2012 23:06:16 +0000 (23:06 +0000)]
Fix clipping plane issues

The clipping plane is flat, so the distance between the camera and the
clipping plane varies based on where screen location. I.e. it is closest
in the center and farther at the corners. Add a offset to elev to
account of this. It would be better to use a sin or to calculate
distances directly, but this is easy and appears to work.

7 years agoFix test rules
Andy Spencer [Sat, 7 Jan 2012 22:36:41 +0000 (22:36 +0000)]
Fix test rules

7 years agoCompute near/far clipping planes
Andy Spencer [Sat, 7 Jan 2012 22:36:05 +0000 (22:36 +0000)]
Compute near/far clipping planes

7 years agoRemove haze over the oceans
Andy Spencer [Tue, 3 Jan 2012 07:35:54 +0000 (07:35 +0000)]
Remove haze over the oceans

The blue haze is nice of there's a white background, but we don't have a
working white background at the moment..

7 years agoAdd GritsLine
Andy Spencer [Tue, 3 Jan 2012 07:32:34 +0000 (07:32 +0000)]
Add GritsLine

GritsLine is similar to GritsPoly, but does not draw a filled polygon.
As such it does not need to do any tessellation.

Currently it draws the points directly instead of using a display list.
This should make it easier to updated the line at runtime without
needing to create a new object.

7 years agoMove polygon parsing into grits-util
Andy Spencer [Tue, 3 Jan 2012 07:31:53 +0000 (07:31 +0000)]
Move polygon parsing into grits-util

This allows it to be used in other places
e.g. for line parsing

7 years agoUpdate plugins folder symlink
Andy Spencer [Tue, 3 Jan 2012 01:03:12 +0000 (01:03 +0000)]
Update plugins folder symlink

7 years agoIgnore local gen.sh
Andy Spencer [Tue, 3 Jan 2012 00:34:50 +0000 (00:34 +0000)]
Ignore local gen.sh

7 years agoMove build scripts to separate repository
Andy Spencer [Sun, 1 Jan 2012 21:01:27 +0000 (13:01 -0800)]
Move build scripts to separate repository

7 years agoImprove support for relative search paths
Andy Spencer [Mon, 19 Dec 2011 08:19:31 +0000 (08:19 +0000)]
Improve support for relative search paths

7 years agoAdd support for Mac OS
Andy Spencer [Mon, 12 Dec 2011 06:42:23 +0000 (06:42 +0000)]
Add support for Mac OS

7 years agoCleanup OpenGL example and add Mac OS support
Andy Spencer [Mon, 12 Dec 2011 06:34:00 +0000 (06:34 +0000)]
Cleanup OpenGL example and add Mac OS support

7 years agoUpdate windowing system tests
Andy Spencer [Mon, 12 Dec 2011 06:16:19 +0000 (06:16 +0000)]
Update windowing system tests

- Add support for Mac OS
- Hopefully make things simpler

7 years agoMove OpenGL includes to a common place
Andy Spencer [Mon, 12 Dec 2011 05:37:20 +0000 (05:37 +0000)]
Move OpenGL includes to a common place

Apple seems to think the should put GL.h in OpenGL instead of GL..
putting it all gtkgl.h makes it a little easier, but requires gtkgl.h to
be included in the install and by grits.h.

7 years agoUpdate teapot example
Andy Spencer [Sun, 11 Dec 2011 23:36:53 +0000 (23:36 +0000)]
Update teapot example

7 years agoVersion bump for 0.6.2 v0.6.2
Andy Spencer [Wed, 30 Nov 2011 07:53:12 +0000 (07:53 +0000)]
Version bump for 0.6.2

7 years agoFix grits-demo linking on 64-bit
Andy Spencer [Wed, 30 Nov 2011 07:48:20 +0000 (07:48 +0000)]
Fix grits-demo linking on 64-bit

7 years agoVersion bump for 0.6.1 v0.6.1
Andy Spencer [Fri, 25 Nov 2011 06:54:48 +0000 (06:54 +0000)]
Version bump for 0.6.1

7 years agoFix off-by-one error
Andy Spencer [Fri, 25 Nov 2011 07:44:09 +0000 (07:44 +0000)]
Fix off-by-one error

7 years agoFix more warnings
Andy Spencer [Fri, 25 Nov 2011 06:57:52 +0000 (06:57 +0000)]
Fix more warnings

7 years agoFix 64-bit warnings
Andy Spencer [Thu, 24 Nov 2011 10:07:14 +0000 (10:07 +0000)]
Fix 64-bit warnings

7 years agoFix extra mouse-over bug
Andy Spencer [Thu, 24 Nov 2011 09:40:03 +0000 (09:40 +0000)]
Fix extra mouse-over bug

When selecting one polygon, it sets the line width and makes it appear
that following polygons are also selected.

7 years agoMake picking 64-bit compatible
Andy Spencer [Thu, 24 Nov 2011 09:23:12 +0000 (09:23 +0000)]
Make picking 64-bit compatible

Use an array and index into that instead of passing pointers to
glPushName since 64-bit pointers do not fit in the name stack.

7 years agoUse correct resolution tiles when zooming out
Andy Spencer [Thu, 10 Nov 2011 08:18:06 +0000 (08:18 +0000)]
Use correct resolution tiles when zooming out

7 years agoVersion bump for 0.6 v0.6.x v0.6
Andy Spencer [Mon, 31 Oct 2011 07:39:14 +0000 (07:39 +0000)]
Version bump for 0.6

7 years agoFix warning if with non-existent cache paths
Andy Spencer [Wed, 2 Nov 2011 07:18:48 +0000 (07:18 +0000)]
Fix warning if with non-existent cache paths

7 years agoUpdate dolt
Andy Spencer [Wed, 2 Nov 2011 06:32:21 +0000 (06:32 +0000)]
Update dolt

7 years agoUse -no-undefined for win32 builds
Andy Spencer [Thu, 25 Aug 2011 05:56:56 +0000 (05:56 +0000)]
Use -no-undefined for win32 builds

This is the libtool flag which is different than the ld flag, and is
needed for building win32 dlls..

7 years agoUpdate copyright notices
Andy Spencer [Mon, 31 Oct 2011 06:53:11 +0000 (06:53 +0000)]
Update copyright notices

7 years agoUpdate some documentation
Andy Spencer [Mon, 31 Oct 2011 06:47:51 +0000 (06:47 +0000)]
Update some documentation

7 years agoAdd alert plugin to grits-test
Andy Spencer [Mon, 31 Oct 2011 06:26:47 +0000 (06:26 +0000)]
Add alert plugin to grits-test

7 years agoUse rounded corners for GritsPoly
Andy Spencer [Thu, 27 Oct 2011 07:28:47 +0000 (07:28 +0000)]
Use rounded corners for GritsPoly

7 years agoFix memory leaks
Andy Spencer [Thu, 27 Oct 2011 07:18:02 +0000 (07:18 +0000)]
Fix memory leaks

7 years agoPass objects to grits_viewer_remove instead of refs
Andy Spencer [Thu, 27 Oct 2011 05:12:34 +0000 (05:12 +0000)]
Pass objects to grits_viewer_remove instead of refs

(finally)

7 years agoSave prefs after changes
Andy Spencer [Thu, 27 Oct 2011 05:03:46 +0000 (05:03 +0000)]
Save prefs after changes

7 years agoImprove performance of GritsPoly
Andy Spencer [Mon, 17 Oct 2011 07:57:35 +0000 (07:57 +0000)]
Improve performance of GritsPoly

Use separate display lists, and only create them and perform
tessellation when they are actually used.

This is especially useful for large number of polygons which aren't
always displayed (or may never be displayed).

Generating the display lists from the first draw() also avoids a large
number of idle callbacks.

7 years agoFix typo
Andy Spencer [Mon, 17 Oct 2011 07:56:50 +0000 (07:56 +0000)]
Fix typo

7 years agoAdd clicked signal to GritsObject
Andy Spencer [Sat, 15 Oct 2011 09:20:50 +0000 (09:20 +0000)]
Add clicked signal to GritsObject

Using mouse-down/mouse-up is rather not helpful since GritsViewer does a
lot with mouse drags.

7 years agoAdd mouse-over testing to test plugin
Andy Spencer [Sat, 15 Oct 2011 06:22:56 +0000 (06:22 +0000)]
Add mouse-over testing to test plugin

7 years agoAdd mouse, keyboard, and motion events to GritsObject
Andy Spencer [Sat, 15 Oct 2011 06:20:43 +0000 (06:20 +0000)]
Add mouse, keyboard, and motion events to GritsObject

These work by chaining the event from GritsOpenGL up to each individual
object, which then emits the callback if it is currently selected
(moused over).

7 years agoAdd mouse enter/leave signals to objects
Andy Spencer [Sat, 15 Oct 2011 06:13:39 +0000 (06:13 +0000)]
Add mouse enter/leave signals to objects

This uses the OpenGL Selection render mode to determine which objects
the mouse is over. It requires fairly tight integration between
GritsOpenGL and GritsObject.

The signal code is handled internally by GritsObject. However, most of
the actual selection matching work is done by GritsOpenGL.

Object types that wish to improve performance can implement the pick()
function in addition to the draw() function. The pick function is used
when performing selection matching. It works similar to draw, but does
not need to do textures/lighting/opacity/etc.

7 years agoCleanup GritsPoly
Andy Spencer [Sat, 15 Oct 2011 06:03:48 +0000 (06:03 +0000)]
Cleanup GritsPoly

- Add GL points at the corners
- Use polygon offset between fill and border
- Calculate actual center position

7 years agoRemove excess debug messages
Andy Spencer [Sat, 15 Oct 2011 06:01:09 +0000 (06:01 +0000)]
Remove excess debug messages

7 years agoAdd string parser to GritsPoly
Andy Spencer [Wed, 12 Oct 2011 08:30:35 +0000 (08:30 +0000)]
Add string parser to GritsPoly

7 years agoAdd configurable borders to GritsPoly
Andy Spencer [Wed, 12 Oct 2011 08:30:16 +0000 (08:30 +0000)]
Add configurable borders to GritsPoly

7 years agoFix crash when unable to cache http files
Andy Spencer [Tue, 11 Oct 2011 06:28:27 +0000 (06:28 +0000)]
Fix crash when unable to cache http files

7 years agoVersion bump for 0.5.2 v0.5.2
Andy Spencer [Mon, 12 Sep 2011 00:35:19 +0000 (00:35 +0000)]
Version bump for 0.5.2

7 years agoRemove no-undefined-symbols from gen.sh
Andy Spencer [Fri, 9 Sep 2011 06:19:49 +0000 (06:19 +0000)]
Remove no-undefined-symbols from gen.sh

This should be done properly in the Makefiles now.

7 years agoAdd linker flag for the math library
Andy Spencer [Fri, 9 Sep 2011 06:13:49 +0000 (06:13 +0000)]
Add linker flag for the math library

7 years agoFix compiler warning with gluTessCallback
Andy Spencer [Fri, 9 Sep 2011 06:07:29 +0000 (06:07 +0000)]
Fix compiler warning with gluTessCallback

7 years agoAdd glut config check v0.5.1
Andy Spencer [Wed, 24 Aug 2011 17:40:41 +0000 (17:40 +0000)]
Add glut config check

7 years agoVersion bump for 0.5.1
Andy Spencer [Wed, 24 Aug 2011 16:10:32 +0000 (16:10 +0000)]
Version bump for 0.5.1

7 years agoFix linker flags
Andy Spencer [Wed, 24 Aug 2011 16:00:47 +0000 (16:00 +0000)]
Fix linker flags

7 years agoAbort when opengl setup fails
Andy Spencer [Wed, 24 Aug 2011 15:43:20 +0000 (15:43 +0000)]
Abort when opengl setup fails

7 years agoAdd timeout for http servers
Andy Spencer [Wed, 24 Aug 2011 15:42:25 +0000 (15:42 +0000)]
Add timeout for http servers

Keep it low for now because a hung sever blocks tile loading

7 years agoSwitch to higher resolution elevation dataset
Andy Spencer [Wed, 24 Aug 2011 15:39:10 +0000 (15:39 +0000)]
Switch to higher resolution elevation dataset

- Tweak perspective so we can zoom in farther
- Use less preference for edge faces for better shading

7 years agoSpeed up movement when at low elevation
Andy Spencer [Sat, 30 Jul 2011 21:14:53 +0000 (21:14 +0000)]
Speed up movement when at low elevation

7 years agoUpdate map URL and layers
Andy Spencer [Sat, 2 Jul 2011 04:17:45 +0000 (04:17 +0000)]
Update map URL and layers

Server moved to vmap0.tiles.osgeo.org

Added new layers for labels, roads, and a few other things

7 years agoAdd reset locale when formatting certain strings
Andy Spencer [Sat, 2 Jul 2011 03:19:35 +0000 (03:19 +0000)]
Add reset locale when formatting certain strings

LC_NUMERIC is used to determine the conversion for "%f" this can result
in errors when formatting strings with expected floating point formats.

7 years agoVersion bump for 0.5 v0.5.x v0.5
Andy Spencer [Sat, 18 Jun 2011 22:42:04 +0000 (22:42 +0000)]
Version bump for 0.5

7 years agoAdd GL bindings example program
Andy Spencer [Sat, 18 Jun 2011 22:16:27 +0000 (22:16 +0000)]
Add GL bindings example program

Basic standalone program that draws a circle using:
  - Cairo
  - GktGLExt
  - GLX (X11)
  - WGL (Win32)
  - CGL (Mac OS, not implemented)

7 years agoAdd some stubbed code for Mac OS support
Andy Spencer [Sat, 18 Jun 2011 22:12:38 +0000 (22:12 +0000)]
Add some stubbed code for Mac OS support

(This won't compile yet)

7 years agoChange binaries to shared objects
Andy Spencer [Sat, 18 Jun 2011 22:10:17 +0000 (22:10 +0000)]
Change binaries to shared objects

There's a double load of the GObjects when using static libraries with
plugins. Shared libraries avoid this, I think there are other work
arounds that let static binaries work too, but this should be fine for
now.

7 years agoUse only shared libs on win32
Andy Spencer [Wed, 8 Jun 2011 16:10:52 +0000 (16:10 +0000)]
Use only shared libs on win32

7 years agoVersion bump to 0.5-p0
Andy Spencer [Tue, 7 Jun 2011 09:50:15 +0000 (09:50 +0000)]
Version bump to 0.5-p0

7 years agoSwitch from GtkGLExt to internal OpenGL handling
Andy Spencer [Tue, 7 Jun 2011 08:43:32 +0000 (08:43 +0000)]
Switch from GtkGLExt to internal OpenGL handling

GtkGLExt has many problems:
  - It's code is bloated and convoluted
  - It doesn't work on Win32
  - It doesn't work with gtk+-3.0
  - The last release was in early 2006

Using our own lets us fix these issues and should be easier to maintain
than trying to figure out the GtkGLExt mess, or waiting for someone else
to fix it.

7 years agoUse -shared for plugins
Andy Spencer [Tue, 24 May 2011 06:11:49 +0000 (06:11 +0000)]
Use -shared for plugins

7 years agoMisc http fixes
Andy Spencer [Tue, 24 May 2011 06:01:36 +0000 (06:01 +0000)]
Misc http fixes

Caching still doesn't work, but it appears to be a server problem.

7 years agoSwitch map and sat plugins to using thread pools
Andy Spencer [Tue, 24 May 2011 05:59:48 +0000 (05:59 +0000)]
Switch map and sat plugins to using thread pools

TODO: switch evel as well