| 1 | /* |
|---|
| 2 | This file is part of the Astrometry.net suite. |
|---|
| 3 | Copyright 2007 Keir Mierle and Dustin Lang. |
|---|
| 4 | |
|---|
| 5 | The Astrometry.net suite is free software; you can redistribute |
|---|
| 6 | it and/or modify it under the terms of the GNU General Public License |
|---|
| 7 | as published by the Free Software Foundation, version 2. |
|---|
| 8 | |
|---|
| 9 | The Astrometry.net suite is distributed in the hope that it will be |
|---|
| 10 | useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 12 | General Public License for more details. |
|---|
| 13 | |
|---|
| 14 | You should have received a copy of the GNU General Public License |
|---|
| 15 | along with the Astrometry.net suite ; if not, write to the Free Software |
|---|
| 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 17 | */ |
|---|
| 18 | #include <stdio.h> |
|---|
| 19 | #include <math.h> |
|---|
| 20 | #include <stdarg.h> |
|---|
| 21 | |
|---|
| 22 | #include "tilerender.h" |
|---|
| 23 | #include "render_solid.h" |
|---|
| 24 | |
|---|
| 25 | int render_solid(cairo_t* cairo, render_args_t* args) { |
|---|
| 26 | double rgba[] = { 0,0,0,1 }; |
|---|
| 27 | get_first_rgba_arg_of_type(args, "solid_rgba ", rgba); |
|---|
| 28 | cairo_set_source_rgba(cairo, rgba[0], rgba[1], rgba[2], rgba[3]); |
|---|
| 29 | cairo_paint(cairo); |
|---|
| 30 | return 0; |
|---|
| 31 | } |
|---|
| 32 | |
|---|