util.h
Go to the documentation of this file.
/*******************************************************
* Copyright (c) 2015-2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
********************************************************/
#pragma once
#include <fg/defines.h>
#ifdef __cplusplus
extern "C" {
#endif
FGAPI fg_err fg_update_vertex_buffer(const unsigned pBufferId,
const size_t pBufferSize,
const void* pBufferData);
FGAPI fg_err fg_update_pixel_buffer(const unsigned pBufferId,
const size_t pBufferSize,
const void* pBufferData);
FGAPI fg_err fg_finish();
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
namespace forge
{
FGAPI void updateVertexBuffer(const unsigned pBufferId,
const size_t pBufferSize,
const void* pBufferData);
FGAPI void updatePixelBuffer(const unsigned pBufferId,
const size_t pBufferSize,
const void* pBufferData);
FGAPI void finish();
}
#endif
defines.h
FGAPI
#define FGAPI
Definition defines.h:28
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.
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.
fg_finish
FGAPI fg_err fg_finish()
Sync all rendering operations till this point.
forge
Definition chart.h:305
forge::finish
FGAPI void finish()
Sync all rendering operations till this point.
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.
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.