~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to source/gameengine/GamePlayer/xembed/blender_plugin_types.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * ***** BEGIN GPL LICENSE BLOCK *****
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or
5
 
 * modify it under the terms of the GNU General Public License
6
 
 * as published by the Free Software Foundation; either version 2
7
 
 * of the License, or (at your option) any later version.
8
 
 *
9
 
 * This program is distributed in the hope that it will be useful,
10
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
 * GNU General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU General Public License
15
 
 * along with this program; if not, write to the Free Software Foundation,
16
 
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
 
 *
18
 
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19
 
 * All rights reserved.
20
 
 *
21
 
 * The Original Code is: all of this file.
22
 
 *
23
 
 * Contributor(s): none yet.
24
 
 *
25
 
 * ***** END GPL LICENSE BLOCK *****
26
 
 * Plugin-instance related data
27
 
 */
28
 
 
29
 
#ifndef __BLENDER_PLUGIN_TYPES_H__
30
 
#define __BLENDER_PLUGIN_TYPES_H__
31
 
 
32
 
#include <stdio.h>
33
 
 
34
 
#ifdef _WIN32
35
 
/* Windows stuff goes here: */
36
 
#include <windows.h>
37
 
 
38
 
#elif defined(__APPLE__)
39
 
/* Apple stuff goes here: */
40
 
 
41
 
#else 
42
 
/* Unix stuff goes here: */
43
 
#include <GL/glx.h>
44
 
#include <X11/Intrinsic.h>
45
 
#endif
46
 
 
47
 
#include "npapi.h"              /* NS related types*/
48
 
#include "prlock.h"             /* NSPR locking */
49
 
 
50
 
#ifdef __cplusplus
51
 
extern "C" {
52
 
#endif
53
 
 
54
 
        struct netscape_plugin_Plugin;
55
 
        
56
 
        typedef struct _BlenderPluginInstance {
57
 
                /** reach back to the browser: needed for file
58
 
                 * streaming */
59
 
                NPP browser_instance;
60
 
 
61
 
                /** The default stream.... */
62
 
                NPStream* main_file_stream;
63
 
 
64
 
                /** Total bytes expected for main file */
65
 
                int stream_total;
66
 
 
67
 
                /** Total bytes retrieved for mail file */
68
 
                int stream_retrieved;
69
 
 
70
 
                /** Mem chunk for the main file */
71
 
                void* main_file_store;
72
 
 
73
 
                /** URL of the .blend you want to show. Must be set. */
74
 
                char* blend_file;
75
 
 
76
 
                /** Blenderplayer pid **/
77
 
                pid_t pID;
78
 
 
79
 
                /** Window ID (used by embedder) **/
80
 
                Window window;
81
 
 
82
 
                /** Display used by browser **/
83
 
                Display* display;
84
 
 
85
 
 
86
 
                /** Temp filename used to pass animation data to the player */
87
 
                char* temp_mail_file_name;
88
 
 
89
 
        } BlenderPluginInstance;
90
 
        
91
 
#ifdef __cplusplus
92
 
}
93
 
#endif
94
 
 
95
 
# endif
96