/usr/include/lib3ds/viewport.h is in lib3ds-dev 1.3.0-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | /* -*- c -*- */
#ifndef INCLUDED_LIB3DS_VIEWPORT_H
#define INCLUDED_LIB3DS_VIEWPORT_H
/*
* The 3D Studio File Format Library
* Copyright (C) 1996-2007 by Jan Eric Kyprianidis <www.kyprianidis.com>
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id: viewport.h,v 1.8 2007/06/20 17:04:09 jeh Exp $
*/
#ifndef INCLUDED_LIB3DS_TYPES_H
#include <lib3ds/types.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
/**
* Layout view types
* \ingroup viewport
*/
typedef enum Lib3dsViewType {
LIB3DS_VIEW_TYPE_NOT_USED =0,
LIB3DS_VIEW_TYPE_TOP =1,
LIB3DS_VIEW_TYPE_BOTTOM =2,
LIB3DS_VIEW_TYPE_LEFT =3,
LIB3DS_VIEW_TYPE_RIGHT =4,
LIB3DS_VIEW_TYPE_FRONT =5,
LIB3DS_VIEW_TYPE_BACK =6,
LIB3DS_VIEW_TYPE_USER =7,
LIB3DS_VIEW_TYPE_SPOTLIGHT =18,
LIB3DS_VIEW_TYPE_CAMERA =65535
} Lib3dsViewType;
/**
* Layout view settings
* \ingroup viewport
*/
typedef struct Lib3dsView {
Lib3dsWord type;
Lib3dsWord axis_lock;
Lib3dsIntw position[2];
Lib3dsIntw size[2];
Lib3dsFloat zoom;
Lib3dsVector center;
Lib3dsFloat horiz_angle;
Lib3dsFloat vert_angle;
char camera[11];
} Lib3dsView;
/**
* Layout styles
* \ingroup viewport
*/
typedef enum Lib3dsLayoutStyle {
LIB3DS_LAYOUT_SINGLE =0,
LIB3DS_LAYOUT_TWO_PANE_VERT_SPLIT =1,
LIB3DS_LAYOUT_TWO_PANE_HORIZ_SPLIT =2,
LIB3DS_LAYOUT_FOUR_PANE =3,
LIB3DS_LAYOUT_THREE_PANE_LEFT_SPLIT =4,
LIB3DS_LAYOUT_THREE_PANE_BOTTOM_SPLIT =5,
LIB3DS_LAYOUT_THREE_PANE_RIGHT_SPLIT =6,
LIB3DS_LAYOUT_THREE_PANE_TOP_SPLIT =7,
LIB3DS_LAYOUT_THREE_PANE_VERT_SPLIT =8,
LIB3DS_LAYOUT_THREE_PANE_HORIZ_SPLIT =9,
LIB3DS_LAYOUT_FOUR_PANE_LEFT_SPLIT =10,
LIB3DS_LAYOUT_FOUR_PANE_RIGHT_SPLIT =11
} Lib3dsLayoutStyle;
/**
* Viewport layout settings
* \ingroup viewport
*/
typedef struct Lib3dsLayout {
Lib3dsWord style;
Lib3dsIntw active;
Lib3dsIntw swap;
Lib3dsIntw swap_prior;
Lib3dsIntw swap_view;
Lib3dsWord position[2];
Lib3dsWord size[2];
Lib3dsDword views;
Lib3dsView *viewL;
} Lib3dsLayout;
/**
* Default view settings
* \ingroup viewport
*/
typedef struct Lib3dsDefaultView {
Lib3dsWord type;
Lib3dsVector position;
Lib3dsFloat width;
Lib3dsFloat horiz_angle;
Lib3dsFloat vert_angle;
Lib3dsFloat roll_angle;
char camera[64];
} Lib3dsDefaultView;
/**
* Viewport and default view settings
* \ingroup viewport
*/
struct Lib3dsViewport {
Lib3dsLayout layout;
Lib3dsDefaultView default_view;
};
extern LIB3DSAPI Lib3dsBool lib3ds_viewport_read(Lib3dsViewport *viewport, Lib3dsIo *io);
extern LIB3DSAPI void lib3ds_viewport_set_views(Lib3dsViewport *viewport, Lib3dsDword views);
extern LIB3DSAPI Lib3dsBool lib3ds_viewport_write(Lib3dsViewport *viewport, Lib3dsIo *io);
extern LIB3DSAPI void lib3ds_viewport_dump(Lib3dsViewport *viewport);
#ifdef __cplusplus
}
#endif
#endif
|