World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
spherical.h
См. документацию.
1 /*
2  * Copyright (c) 2016 Vittorio Giovara <vittorio.giovara@gmail.com>
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
26 #ifndef AVUTIL_SPHERICAL_H
27 #define AVUTIL_SPHERICAL_H
28 
29 #include <stddef.h>
30 #include <stdint.h>
31 
57 
66 
73 };
74 
82 typedef struct AVSphericalMapping {
87 
129 
171 
184 
192 
206  size_t width, size_t height,
207  size_t *left, size_t *top,
208  size_t *right, size_t *bottom);
209 
217 const char *av_spherical_projection_name(enum AVSphericalProjection projection);
218 
226 int av_spherical_from_name(const char *name);
232 #endif /* AVUTIL_SPHERICAL_H */
AVSphericalProjection
AVSphericalProjection
Definition: spherical.h:51
AVSphericalMapping::projection
enum AVSphericalProjection projection
Definition: spherical.h:86
right
GLdouble GLdouble right
Definition: SDL_opengl_glext.h:6106
av_spherical_tile_bounds
void av_spherical_tile_bounds(const AVSphericalMapping *map, size_t width, size_t height, size_t *left, size_t *top, size_t *right, size_t *bottom)
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
AV_SPHERICAL_EQUIRECTANGULAR_TILE
@ AV_SPHERICAL_EQUIRECTANGULAR_TILE
Definition: spherical.h:72
AV_SPHERICAL_EQUIRECTANGULAR
@ AV_SPHERICAL_EQUIRECTANGULAR
Definition: spherical.h:56
AVSphericalMapping::bound_right
uint32_t bound_right
Distance from the right edge.
Definition: spherical.h:169
AVSphericalMapping
Definition: spherical.h:82
AVSphericalMapping
struct AVSphericalMapping AVSphericalMapping
bottom
GLint GLint bottom
Definition: SDL_opengl_glext.h:1952
AVSphericalMapping::padding
uint32_t padding
Definition: spherical.h:182
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
AVSphericalMapping::bound_bottom
uint32_t bound_bottom
Distance from the bottom edge.
Definition: spherical.h:170
int32_t
signed __int32 int32_t
Definition: SDL_config.h:38
av_spherical_projection_name
const char * av_spherical_projection_name(enum AVSphericalProjection projection)
AV_SPHERICAL_CUBEMAP
@ AV_SPHERICAL_CUBEMAP
Definition: spherical.h:65
AVSphericalMapping::bound_left
uint32_t bound_left
Distance from the left edge.
Definition: spherical.h:167
top
GLdouble GLdouble GLdouble GLdouble top
Definition: SDL_opengl_glext.h:6106
AVSphericalMapping::bound_top
uint32_t bound_top
Distance from the top edge.
Definition: spherical.h:168
name
EGLImageKHR EGLint * name
Definition: SDL_egl.h:1497
AVSphericalMapping::roll
int32_t roll
Rotation around the forward vector [-180, 180].
Definition: spherical.h:128
av_spherical_from_name
int av_spherical_from_name(const char *name)
AVSphericalMapping::yaw
int32_t yaw
Rotation around the up vector [-180, 180].
Definition: spherical.h:126
av_spherical_alloc
AVSphericalMapping * av_spherical_alloc(size_t *size)
size
GLsizeiptr size
Definition: SDL_opengl_glext.h:540
uint32_t
unsigned __int32 uint32_t
Definition: SDL_config.h:39
AVSphericalMapping::pitch
int32_t pitch
Rotation around the right vector [-90, 90].
Definition: spherical.h:127
left
GLint left
Definition: SDL_opengl_glext.h:1952