Forge

update_buffer.h
Go to the documentation of this file.
1 /*******************************************************
2 * Copyright (c) 2015-2019, ArrayFire
3 * All rights reserved.
4 *
5 * This file is distributed under 3-clause BSD license.
6 * The complete license agreement can be obtained at:
7 * http://arrayfire.com/licenses/BSD-3-Clause
8 ********************************************************/
9
10 #pragma once
11
12 #include <fg/defines.h>
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
31 FGAPI fg_err fg_update_vertex_buffer(const unsigned pBufferId,
32 const size_t pBufferSize,
33 const void* pBufferData);
34
44 FGAPI fg_err fg_update_pixel_buffer(const unsigned pBufferId,
45 const size_t pBufferSize,
46 const void* pBufferData);
47
53 FGAPI fg_err fg_finish();
54
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #ifdef __cplusplus
62 namespace forge
63 {
64
72 FGAPI void updateVertexBuffer(const unsigned pBufferId,
73 const size_t pBufferSize,
74 const void* pBufferData);
75
83 FGAPI void updatePixelBuffer(const unsigned pBufferId,
84 const size_t pBufferSize,
85 const void* pBufferData);
86
90 FGAPI void finish();
91
92 }
93 #endif
forge
Definition: chart.h:304
forge::updatePixelBuffer
FGAPI void updatePixelBuffer(const unsigned pBufferId, const size_t pBufferSize, const void *pBufferData)
Update backend specific pixel buffer from given host side memory.
fg_update_pixel_buffer
FGAPI fg_err fg_update_pixel_buffer(const unsigned pBufferId, const size_t pBufferSize, const void *pBufferData)
Update backend specific pixel buffer from given host side memory.
FGAPI
#define FGAPI
Definition: defines.h:28
defines.h
forge::finish
FGAPI void finish()
Sync all rendering operations till this point.
fg_err
fg_err
Definition: defines.h:49
fg_update_vertex_buffer
FGAPI fg_err fg_update_vertex_buffer(const unsigned pBufferId, const size_t pBufferSize, const void *pBufferData)
Update backend specific vertex buffer from given host side memory.
forge::updateVertexBuffer
FGAPI void updateVertexBuffer(const unsigned pBufferId, const size_t pBufferSize, const void *pBufferData)
Update backend specific vertex buffer from given host side memory.
fg_finish
FGAPI fg_err fg_finish()
Sync all rendering operations till this point.