• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2018 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can
5  * be found in the LICENSE file.
6  *
7  */
8 
9 #pragma once
10 
11 //
12 //
13 //
14 
15 #include "skc.h"
16 
17 //
18 //
19 //
20 
21 struct skc_interop *
22 skc_interop_create();
23 
24 void
25 skc_interop_destroy(struct skc_interop * interop);
26 
27 cl_context_properties
28 skc_interop_get_wgl_context();
29 
30 cl_context_properties
31 skc_interop_get_wgl_dc();
32 
33 void
34 skc_interop_set_cl_context(struct skc_interop * interop,
35                            cl_context           context_cl);
36 
37 bool
38 skc_interop_poll(struct skc_interop * interop,
39                  int                * key);
40 
41 void
42 skc_interop_transform(struct skc_interop        * interop,
43                       struct ts_transform_stack * ts);
44 
45 bool
46 skc_interop_should_exit(struct skc_interop * interop);
47 
48 skc_framebuffer_t
49 skc_interop_get_framebuffer();
50 
51 void
52 skc_interop_blit(struct skc_interop * interop);
53 
54 void
55 skc_interop_get_size(struct skc_interop * interop,
56                      uint32_t           * width,
57                      uint32_t           * height);
58 //
59 //
60 //
61