void
get_sun_screen_pos(double alt, double azm, gint * x, gint * y)
{
- gint y0 = 400;// - уровень горизонта
+ gint y0 = 365;// - уровень горизонта
gint o_width = 128,
o_height = 128;
*x = (int)(azm * 800) - 64;
while (tmp != NULL){
actor = tmp->data;
if (now >= actor->time_start_animation
+ && actor->time_start_animation > 0
/* && now - actor->time_start_animation <= actor->duration_animation*/){
pfunc = actor->func_change;
if (pfunc)
*lon = 30.166666;
}
+double
+get_max_sun_alt(double lon, double lat, int year, int month, int day)
+{
+
+}
+
void get_sun_pos(double * alt, double * azm)
{
int year, month, day, hour, min, zone;