Forge
util.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
15extern "C" {
16#endif
17
31FGAPI fg_err fg_update_vertex_buffer(const unsigned pBufferId,
32 const size_t pBufferSize,
33 const void* pBufferData);
34
44FGAPI fg_err fg_update_pixel_buffer(const unsigned pBufferId,
45 const size_t pBufferSize,
46 const void* pBufferData);
47
54
57#ifdef __cplusplus
58}
59#endif
60
61#ifdef __cplusplus
62namespace forge
63{
64
72FGAPI void updateVertexBuffer(const unsigned pBufferId,
73 const size_t pBufferSize,
74 const void* pBufferData);
75
83FGAPI void updatePixelBuffer(const unsigned pBufferId,
84 const size_t pBufferSize,
85 const void* pBufferData);
86
91
92}
93#endif
#define FGAPI
Definition defines.h:28
fg_err
Definition defines.h:49
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.
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 fg_err fg_finish()
Sync all rendering operations till this point.
Definition chart.h:305
FGAPI void finish()
Sync all rendering operations till this point.
FGAPI void updatePixelBuffer(const unsigned pBufferId, const size_t pBufferSize, const void *pBufferData)
Update backend specific pixel buffer from given host side memory.
FGAPI void updateVertexBuffer(const unsigned pBufferId, const size_t pBufferSize, const void *pBufferData)
Update backend specific vertex buffer from given host side memory.