id
int64
0
755k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
65
repo_stars
int64
100
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
9 values
repo_extraction_date
stringclasses
92 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
17,674
tcp_socket_messenger.cpp
anbox_anbox/src/anbox/network/tcp_socket_messenger.cpp
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. * */ #include "anbox/network/tcp_socket_messenger.h" namespace anbox::network { TcpSocketMessenger::TcpSocketMessenger(const boost::asio::ip::address_v4 &addr, unsigned short port, const std::shared_ptr<Runtime> &rt) { boost::asio::ip::tcp::endpoint endpoint(addr, port); auto socket = std::make_shared<boost::asio::ip::tcp::socket>(rt->service()); socket->connect(endpoint); setup(socket); local_port_ = socket->local_endpoint().port(); } TcpSocketMessenger::TcpSocketMessenger( std::shared_ptr<boost::asio::ip::tcp::socket> const &socket) : BaseSocketMessenger(socket) {} TcpSocketMessenger::~TcpSocketMessenger() {} unsigned short TcpSocketMessenger::local_port() const { return local_port_; } }
1,468
C++
.cpp
33
40
79
0.712788
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
17,675
local_socket_messenger.cpp
anbox_anbox/src/anbox/network/local_socket_messenger.cpp
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. * */ #include "anbox/network/local_socket_messenger.h" #include "anbox/logger.h" #include "anbox/network/socket_helper.h" #include "anbox/utils.h" #include <boost/system/error_code.hpp> namespace anbox::network { LocalSocketMessenger::LocalSocketMessenger( std::shared_ptr<boost::asio::local::stream_protocol::socket> const &socket) : BaseSocketMessenger(socket) {} LocalSocketMessenger::LocalSocketMessenger(const std::string &path, const std::shared_ptr<Runtime> &rt) : socket_(std::make_shared<boost::asio::local::stream_protocol::socket>( rt->service())) { boost::system::error_code err; socket_->connect(boost::asio::local::stream_protocol::endpoint(path), err); if (err) { const auto msg = utils::string_format("Failed to connect to socket %s: %s", path, err.message()); BOOST_THROW_EXCEPTION(std::runtime_error(msg)); } setup(socket_); } LocalSocketMessenger::~LocalSocketMessenger() {} }
1,695
C++
.cpp
40
37.75
79
0.707273
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
17,676
stream_socket_transport.cpp
anbox_anbox/src/anbox/network/stream_socket_transport.cpp
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. * */ #include "anbox/network/stream_socket_transport.h" #include "anbox/common/variable_length_array.h" #include "anbox/network/fd_socket_transmission.h" #include <system_error> #include <errno.h> #include <sys/epoll.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/un.h> #include <boost/exception/errinfo_errno.hpp> #include <boost/throw_exception.hpp> namespace anbox::network { StreamSocketTransport::StreamSocketTransport(const std::string& socket_path, const std::shared_ptr<Runtime>& rt) : socket_(std::make_shared<boost::asio::local::stream_protocol::socket>( rt->service())), { socket_.connect(boost::asio::local::stream_protocol::endpoint(socket_path)); read_next_message(); } void StreamSocketTransport::register_observer( std::shared_ptr<Observer> const& observer) { this->observer_ = observer; } void StreamSocketTransport::unregister_observer( std::shared_ptr<Observer> const& observer) { if (this->observer_ != observer) return; this->observer_.reset(); } void StreamSocketTransport::send_message(std::vector<uint8_t> const& buffer) {} void StreamSocketTransport::read_next_message() { auto callback = std::bind(&StreamSocketTransport::on_read_size, this, std::placeholders::_1, std::placeholders::_2); } void StreamSocketTransport::on_read_size(const boost::system::error_code& ec, std::size_t bytes_read) {} }
2,170
C++
.cpp
53
36.641509
80
0.715914
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
17,677
connection_creator.cpp
anbox_anbox/src/anbox/rpc/connection_creator.cpp
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. * */ #include "anbox/rpc/connection_creator.h" #include "anbox/logger.h" #include "anbox/network/local_socket_messenger.h" #include "anbox/rpc/message_processor.h" #include <string> namespace ba = boost::asio; namespace anbox::rpc { ConnectionCreator::ConnectionCreator(const MessageProcessorFactory& factory) : next_connection_id_(0), connections_( std::make_shared<network::Connections<network::SocketConnection>>()), message_processor_factory_(factory) {} ConnectionCreator::~ConnectionCreator() noexcept {} void ConnectionCreator::create_connection_for( std::shared_ptr<boost::asio::local::stream_protocol::socket> const& socket) { if (connections_->size() >= 1) { socket->close(); WARNING( "A second client tried to connect. Denied request as we already have " "one and only allow a single client"); return; } auto const messenger = std::make_shared<network::LocalSocketMessenger>(socket); auto const processor = message_processor_factory_(messenger); auto const& connection = std::make_shared<network::SocketConnection>( messenger, messenger, next_id(), connections_, processor); connection->set_name("rpc"); connections_->add(connection); connection->read_next_message(); } int ConnectionCreator::next_id() { return next_connection_id_.fetch_add(1); } }
2,033
C++
.cpp
50
37.3
79
0.738095
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
true
false
17,681
daemon.h
anbox_anbox/android/service/daemon.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. * */ #ifndef ANBOX_ANDROID_DAEMON_H_ #define ANBOX_ANDROID_DAEMON_H_ namespace anbox { class Daemon { public: Daemon(); ~Daemon(); int run(); }; } // namespace anbox #endif
858
C++
.h
27
29.62963
76
0.74607
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,683
platform_service.h
anbox_anbox/android/service/platform_service.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. * */ #ifndef ANBOX_ANDROID_PLATFORM_SERVICE_H_ #define ANBOX_ANDROID_PLATFORM_SERVICE_H_ #include "android/service/platform_service_interface.h" #include "android/service/platform_api_stub.h" #include <binder/Parcel.h> #include <memory> namespace android { class PlatformService : public BnPlatformService { public: static const char* service_name() { return "org.anbox.PlatformService"; } PlatformService(const std::shared_ptr<anbox::PlatformApiStub> &platform_api_stub); status_t boot_finished() override; status_t update_window_state(const Parcel &data) override; status_t update_application_list(const Parcel &data) override; status_t set_clipboard_data(const Parcel &data) override; status_t get_clipboard_data(const Parcel &data, Parcel *reply) override; private: anbox::PlatformApiStub::WindowStateUpdate::Window unpack_window_state(const Parcel &data); std::shared_ptr<anbox::PlatformApiStub> platform_api_stub_; }; } // namespace android #endif
1,668
C++
.h
38
41.315789
94
0.769895
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,684
activity_manager_interface.h
anbox_anbox/android/service/activity_manager_interface.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. * */ #ifndef ANBOX_ANDROID_ACTIVITY_MANAGER_INTERFACE_H_ #define ANBOX_ANDROID_ACTIVITY_MANAGER_INTERFACE_H_ #include <binder/IBinder.h> #include <binder/IInterface.h> #include <binder/Parcel.h> #include <utils/String16.h> #include <utils/StrongPointer.h> #include <cstdint> #include "anbox/graphics/rect.h" namespace android { class IActivityManager : public IInterface { public: DECLARE_META_INTERFACE(ActivityManager); enum { // This needs to stay synchronized with frameworks/base/core/java/android/app/IActivityManager.java SET_FOCUSED_TASK = IBinder::FIRST_CALL_TRANSACTION + 130, REMOVE_TASK = IBinder::FIRST_CALL_TRANSACTION + 131, RESIZE_TASK = IBinder::FIRST_CALL_TRANSACTION + 285, }; virtual status_t setFocusedTask(int32_t id) = 0; virtual status_t removeTask(int32_t id) = 0; virtual status_t resizeTask(int32_t id, const anbox::graphics::Rect &rect, int resize_mode) = 0; }; class BpActivityManager : public BpInterface<IActivityManager> { public: BpActivityManager(const sp<IBinder> &binder); status_t setFocusedTask(int32_t id) override; status_t removeTask(int32_t id) override; status_t resizeTask(int32_t id, const anbox::graphics::Rect &rect, int resize_mode); }; } // namespace android #endif
1,966
C++
.h
48
37.9375
107
0.752621
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,686
platform_service_interface.h
anbox_anbox/android/service/platform_service_interface.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. * */ #ifndef ANBOX_ANDROID_PLATFORM_SERVICE_INTERFACE_H_ #define ANBOX_ANDROID_PLATFORM_SERVICE_INTERFACE_H_ #include <binder/IBinder.h> #include <binder/IInterface.h> #include <binder/Parcel.h> #include <utils/String16.h> #include <utils/StrongPointer.h> #include <cstdint> namespace android { class IPlatformService : public IInterface { public: DECLARE_META_INTERFACE(PlatformService); enum { // Keep this synchronized with frameworks/base/services/java/com/android/server/wm/AnboxPlatformServiceProxy.java BOOT_FINISHED = IBinder::FIRST_CALL_TRANSACTION, UPDATE_WINDOW_STATE = IBinder::FIRST_CALL_TRANSACTION + 1, UPDATE_APPLICATION_LIST = IBinder::FIRST_CALL_TRANSACTION + 2, SET_CLIPBOARD_DATA = IBinder::FIRST_CALL_TRANSACTION + 3, GET_CLIPBOARD_DATA = IBinder::FIRST_CALL_TRANSACTION + 4, }; virtual status_t boot_finished() = 0; virtual status_t update_window_state(const Parcel &data) = 0; virtual status_t update_application_list(const Parcel &data) = 0; virtual status_t set_clipboard_data(const Parcel &data) = 0; virtual status_t get_clipboard_data(const Parcel &data, Parcel *reply) = 0; }; class BpPlatformService : public BpInterface<IPlatformService> { public: BpPlatformService(const sp<IBinder> &binder); status_t boot_finished() override; status_t update_window_state(const Parcel &data) override; status_t update_application_list(const Parcel &data) override; status_t set_clipboard_data(const Parcel &data) override; status_t get_clipboard_data(const Parcel &data, Parcel *reply) override; }; class BnPlatformService : public BnInterface<IPlatformService> { public: virtual status_t onTransact(uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags); }; } // namespace android #endif
2,536
C++
.h
58
39.87931
121
0.743922
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,687
android_api_skeleton.h
anbox_anbox/android/service/android_api_skeleton.h
/* * Copyright (C) 2016 Simon Fels <morphis@gravedo.de> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. * */ #ifndef ANBOX_PLATFORM_API_SKELETON_H_ #define ANBOX_PLATFORM_API_SKELETON_H_ #include "android/service/activity_manager_interface.h" namespace google { namespace protobuf { class Closure; } // namespace protobuf } // namespace google namespace core { namespace posix { class ChildProcess; } // posix } // core namespace anbox { namespace protobuf { namespace bridge { class InstallApplication; class LaunchApplication; class SetDnsServers; class SetFocusedTask; class RemoveTask; class ResizeTask; } // namespace bridge namespace rpc { class Void; } // namespace rpc } // namespace protobuf class AndroidApiSkeleton { public: AndroidApiSkeleton(); ~AndroidApiSkeleton(); void launch_application(anbox::protobuf::bridge::LaunchApplication const *request, anbox::protobuf::rpc::Void *response, google::protobuf::Closure *done); void set_focused_task(anbox::protobuf::bridge::SetFocusedTask const *request, anbox::protobuf::rpc::Void *response, google::protobuf::Closure *done); void remove_task(anbox::protobuf::bridge::RemoveTask const *request, anbox::protobuf::rpc::Void *response, google::protobuf::Closure *done); void resize_task(anbox::protobuf::bridge::ResizeTask const *request, anbox::protobuf::rpc::Void *response, google::protobuf::Closure *done); private: void wait_for_process(core::posix::ChildProcess &process, anbox::protobuf::rpc::Void *response); void connect_services(); android::sp<android::BpActivityManager> activity_manager_; }; } // namespace anbox #endif
2,421
C++
.h
67
30.925373
86
0.702691
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,706
JpegStub.h
anbox_anbox/android/camera/JpegStub.h
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef JPEGSTUB_H_ #define JPEGSTUB_H_ extern "C" { struct JpegStub { void* mInternalEncoder; void* mInternalStream; }; void JpegStub_init(JpegStub* stub, int* strides); void JpegStub_cleanup(JpegStub* stub); int JpegStub_compress(JpegStub* stub, const void* image, int width, int height, int quality); void JpegStub_getCompressedImage(JpegStub* stub, void* buff); size_t JpegStub_getCompressedSize(JpegStub* stub); }; #endif // JPEGSTUB_H_
1,083
C++
.h
30
33.933333
75
0.757634
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,716
codec_defs.h
anbox_anbox/android/opengl/shared/OpenglCodecCommon/codec_defs.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _CODEC_DEFS_H #define _CODEC_DEFS_H #define CODEC_SERVER_PORT 22468 #define CODEC_MAX_VERTEX_ATTRIBUTES 64 #endif
726
C++
.h
20
35.15
74
0.785206
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,718
ErrorLog.h
anbox_anbox/android/opengl/shared/OpenglCodecCommon/ErrorLog.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _ERROR_LOG_H_ #define _ERROR_LOG_H_ #if defined(__ANDROID__) # include <cutils/log.h> # define ERR(...) ALOGE(__VA_ARGS__) # ifdef EMUGL_DEBUG # define DBG(...) ALOGD(__VA_ARGS__) # else # define DBG(...) ((void)0) # endif #else # include <stdio.h> # define ERR(...) fprintf(stderr, __VA_ARGS__) # ifdef EMUGL_DEBUG # define DBG(...) fprintf(stderr, __VA_ARGS__) # else # define DBG(...) ((void)0) # endif #endif #endif
1,108
C++
.h
35
30.6
74
0.671335
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,723
gl_base_types.h
anbox_anbox/android/opengl/shared/OpenglCodecCommon/gl_base_types.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __GL_BASE_TYPES__H #define __GL_BASE_TYPES__H #include <KHR/khrplatform.h> #ifndef gl_APIENTRY #define gl_APIENTRY KHRONOS_APIENTRY #endif #ifndef gl2_APIENTRY #define gl2_APIENTRY KHRONOS_APIENTRY #endif typedef void GLvoid; typedef unsigned int GLenum; typedef unsigned char GLboolean; typedef unsigned int GLbitfield; typedef char GLchar; typedef khronos_int8_t GLbyte; typedef short GLshort; typedef int GLint; typedef int GLsizei; typedef khronos_uint8_t GLubyte; typedef unsigned short GLushort; typedef unsigned int GLuint; typedef khronos_float_t GLfloat; typedef khronos_float_t GLclampf; typedef khronos_int32_t GLfixed; typedef khronos_int32_t GLclampx; typedef khronos_intptr_t GLintptr; typedef khronos_ssize_t GLsizeiptr; typedef char *GLstr; /* JR XXX Treating this as an in handle - is this correct? */ typedef void * GLeglImageOES; /* ErrorCode */ #ifndef GL_INVALID_ENUM #define GL_NO_ERROR 0 #define GL_INVALID_ENUM 0x0500 #define GL_INVALID_VALUE 0x0501 #define GL_INVALID_OPERATION 0x0502 #define GL_STACK_OVERFLOW 0x0503 #define GL_STACK_UNDERFLOW 0x0504 #define GL_OUT_OF_MEMORY 0x0505 #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 #endif #endif
1,991
C++
.h
57
33.824561
74
0.724585
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
17,727
renderControl_enc.h
anbox_anbox/android/opengl/system/renderControl_enc/renderControl_enc.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef GUARD_renderControl_encoder_context_t #define GUARD_renderControl_encoder_context_t #include "IOStream.h" #include "ChecksumCalculator.h" #include "renderControl_client_context.h" #include <stdint.h> #include <EGL/egl.h> #include "glUtils.h" struct renderControl_encoder_context_t : public renderControl_client_context_t { IOStream *m_stream; ChecksumCalculator *m_checksumCalculator; renderControl_encoder_context_t(IOStream *stream, ChecksumCalculator *checksumCalculator); }; #endif // GUARD_renderControl_encoder_context_t
606
C++
.h
16
36.25
91
0.80789
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,728
renderControl_client_context.h
anbox_anbox/android/opengl/system/renderControl_enc/renderControl_client_context.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __renderControl_client_context_t_h #define __renderControl_client_context_t_h #include "renderControl_client_proc.h" #include "renderControl_types.h" struct renderControl_client_context_t { rcGetRendererVersion_client_proc_t rcGetRendererVersion; rcGetEGLVersion_client_proc_t rcGetEGLVersion; rcQueryEGLString_client_proc_t rcQueryEGLString; rcGetGLString_client_proc_t rcGetGLString; rcGetNumConfigs_client_proc_t rcGetNumConfigs; rcGetConfigs_client_proc_t rcGetConfigs; rcChooseConfig_client_proc_t rcChooseConfig; rcGetFBParam_client_proc_t rcGetFBParam; rcCreateContext_client_proc_t rcCreateContext; rcDestroyContext_client_proc_t rcDestroyContext; rcCreateWindowSurface_client_proc_t rcCreateWindowSurface; rcDestroyWindowSurface_client_proc_t rcDestroyWindowSurface; rcCreateColorBuffer_client_proc_t rcCreateColorBuffer; rcOpenColorBuffer_client_proc_t rcOpenColorBuffer; rcCloseColorBuffer_client_proc_t rcCloseColorBuffer; rcSetWindowColorBuffer_client_proc_t rcSetWindowColorBuffer; rcFlushWindowColorBuffer_client_proc_t rcFlushWindowColorBuffer; rcMakeCurrent_client_proc_t rcMakeCurrent; rcFBPost_client_proc_t rcFBPost; rcFBSetSwapInterval_client_proc_t rcFBSetSwapInterval; rcBindTexture_client_proc_t rcBindTexture; rcBindRenderbuffer_client_proc_t rcBindRenderbuffer; rcColorBufferCacheFlush_client_proc_t rcColorBufferCacheFlush; rcReadColorBuffer_client_proc_t rcReadColorBuffer; rcUpdateColorBuffer_client_proc_t rcUpdateColorBuffer; rcOpenColorBuffer2_client_proc_t rcOpenColorBuffer2; rcCreateClientImage_client_proc_t rcCreateClientImage; rcDestroyClientImage_client_proc_t rcDestroyClientImage; rcSelectChecksumCalculator_client_proc_t rcSelectChecksumCalculator; rcGetNumDisplays_client_proc_t rcGetNumDisplays; rcGetDisplayWidth_client_proc_t rcGetDisplayWidth; rcGetDisplayHeight_client_proc_t rcGetDisplayHeight; rcGetDisplayDpiX_client_proc_t rcGetDisplayDpiX; rcGetDisplayDpiY_client_proc_t rcGetDisplayDpiY; rcGetDisplayVsyncPeriod_client_proc_t rcGetDisplayVsyncPeriod; rcPostLayer_client_proc_t rcPostLayer; rcPostAllLayersDone_client_proc_t rcPostAllLayersDone; virtual ~renderControl_client_context_t() {} typedef renderControl_client_context_t *CONTEXT_ACCESSOR_TYPE(void); static void setContextAccessor(CONTEXT_ACCESSOR_TYPE *f); int initDispatchByName( void *(*getProc)(const char *name, void *userData), void *userData); virtual void setError(unsigned int error){ (void)error; }; virtual unsigned int getError(){ return 0; }; }; #endif
2,599
C++
.h
52
48
93
0.855906
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,729
renderControl_opcodes.h
anbox_anbox/android/opengl/system/renderControl_enc/renderControl_opcodes.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __GUARD_renderControl_opcodes_h_ #define __GUARD_renderControl_opcodes_h_ #define OP_rcGetRendererVersion 10000 #define OP_rcGetEGLVersion 10001 #define OP_rcQueryEGLString 10002 #define OP_rcGetGLString 10003 #define OP_rcGetNumConfigs 10004 #define OP_rcGetConfigs 10005 #define OP_rcChooseConfig 10006 #define OP_rcGetFBParam 10007 #define OP_rcCreateContext 10008 #define OP_rcDestroyContext 10009 #define OP_rcCreateWindowSurface 10010 #define OP_rcDestroyWindowSurface 10011 #define OP_rcCreateColorBuffer 10012 #define OP_rcOpenColorBuffer 10013 #define OP_rcCloseColorBuffer 10014 #define OP_rcSetWindowColorBuffer 10015 #define OP_rcFlushWindowColorBuffer 10016 #define OP_rcMakeCurrent 10017 #define OP_rcFBPost 10018 #define OP_rcFBSetSwapInterval 10019 #define OP_rcBindTexture 10020 #define OP_rcBindRenderbuffer 10021 #define OP_rcColorBufferCacheFlush 10022 #define OP_rcReadColorBuffer 10023 #define OP_rcUpdateColorBuffer 10024 #define OP_rcOpenColorBuffer2 10025 #define OP_rcCreateClientImage 10026 #define OP_rcDestroyClientImage 10027 #define OP_rcSelectChecksumCalculator 10028 #define OP_rcGetNumDisplays 10029 #define OP_rcGetDisplayWidth 10030 #define OP_rcGetDisplayHeight 10031 #define OP_rcGetDisplayDpiX 10032 #define OP_rcGetDisplayDpiY 10033 #define OP_rcGetDisplayVsyncPeriod 10034 #define OP_rcPostLayer 10035 #define OP_rcPostAllLayersDone 10036 #define OP_last 10037 #endif
1,670
C++
.h
43
37.767442
48
0.767241
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,730
renderControl_client_base.h
anbox_anbox/android/opengl/system/renderControl_enc/renderControl_client_base.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __renderControl_client_base_t_h #define __renderControl_client_base_t_h #include "renderControl_client_proc.h" struct renderControl_client_base_t { rcGetRendererVersion_client_proc_t rcGetRendererVersion; rcGetEGLVersion_client_proc_t rcGetEGLVersion; rcQueryEGLString_client_proc_t rcQueryEGLString; rcGetGLString_client_proc_t rcGetGLString; rcGetNumConfigs_client_proc_t rcGetNumConfigs; rcGetConfigs_client_proc_t rcGetConfigs; rcChooseConfig_client_proc_t rcChooseConfig; rcGetFBParam_client_proc_t rcGetFBParam; rcCreateContext_client_proc_t rcCreateContext; rcDestroyContext_client_proc_t rcDestroyContext; rcCreateWindowSurface_client_proc_t rcCreateWindowSurface; rcDestroyWindowSurface_client_proc_t rcDestroyWindowSurface; rcCreateColorBuffer_client_proc_t rcCreateColorBuffer; rcOpenColorBuffer_client_proc_t rcOpenColorBuffer; rcCloseColorBuffer_client_proc_t rcCloseColorBuffer; rcSetWindowColorBuffer_client_proc_t rcSetWindowColorBuffer; rcFlushWindowColorBuffer_client_proc_t rcFlushWindowColorBuffer; rcMakeCurrent_client_proc_t rcMakeCurrent; rcFBPost_client_proc_t rcFBPost; rcFBSetSwapInterval_client_proc_t rcFBSetSwapInterval; rcBindTexture_client_proc_t rcBindTexture; rcBindRenderbuffer_client_proc_t rcBindRenderbuffer; rcColorBufferCacheFlush_client_proc_t rcColorBufferCacheFlush; rcReadColorBuffer_client_proc_t rcReadColorBuffer; rcUpdateColorBuffer_client_proc_t rcUpdateColorBuffer; rcOpenColorBuffer2_client_proc_t rcOpenColorBuffer2; rcCreateClientImage_client_proc_t rcCreateClientImage; rcDestroyClientImage_client_proc_t rcDestroyClientImage; }; #endif
1,691
C++
.h
36
45.055556
65
0.867273
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,731
renderControl_ftable.h
anbox_anbox/android/opengl/system/renderControl_enc/renderControl_ftable.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __renderControl_client_ftable_t_h #define __renderControl_client_ftable_t_h static const struct _renderControl_funcs_by_name { const char *name; void *proc; } renderControl_funcs_by_name[] = { {"rcGetRendererVersion", (void*)rcGetRendererVersion}, {"rcGetEGLVersion", (void*)rcGetEGLVersion}, {"rcQueryEGLString", (void*)rcQueryEGLString}, {"rcGetGLString", (void*)rcGetGLString}, {"rcGetNumConfigs", (void*)rcGetNumConfigs}, {"rcGetConfigs", (void*)rcGetConfigs}, {"rcChooseConfig", (void*)rcChooseConfig}, {"rcGetFBParam", (void*)rcGetFBParam}, {"rcCreateContext", (void*)rcCreateContext}, {"rcDestroyContext", (void*)rcDestroyContext}, {"rcCreateWindowSurface", (void*)rcCreateWindowSurface}, {"rcDestroyWindowSurface", (void*)rcDestroyWindowSurface}, {"rcCreateColorBuffer", (void*)rcCreateColorBuffer}, {"rcOpenColorBuffer", (void*)rcOpenColorBuffer}, {"rcCloseColorBuffer", (void*)rcCloseColorBuffer}, {"rcSetWindowColorBuffer", (void*)rcSetWindowColorBuffer}, {"rcFlushWindowColorBuffer", (void*)rcFlushWindowColorBuffer}, {"rcMakeCurrent", (void*)rcMakeCurrent}, {"rcFBPost", (void*)rcFBPost}, {"rcFBSetSwapInterval", (void*)rcFBSetSwapInterval}, {"rcBindTexture", (void*)rcBindTexture}, {"rcBindRenderbuffer", (void*)rcBindRenderbuffer}, {"rcColorBufferCacheFlush", (void*)rcColorBufferCacheFlush}, {"rcReadColorBuffer", (void*)rcReadColorBuffer}, {"rcUpdateColorBuffer", (void*)rcUpdateColorBuffer}, {"rcOpenColorBuffer2", (void*)rcOpenColorBuffer2}, {"rcCreateClientImage", (void*)rcCreateClientImage}, {"rcDestroyClientImage", (void*)rcDestroyClientImage}, {"rcSelectChecksumCalculator", (void*)rcSelectChecksumCalculator}, {"rcGetNumDisplays", (void*)rcGetNumDisplays}, {"rcGetDisplayWidth", (void*)rcGetDisplayWidth}, {"rcGetDisplayHeight", (void*)rcGetDisplayHeight}, {"rcGetDisplayDpiX", (void*)rcGetDisplayDpiX}, {"rcGetDisplayDpiY", (void*)rcGetDisplayDpiY}, {"rcGetDisplayVsyncPeriod", (void*)rcGetDisplayVsyncPeriod}, {"rcPostLayer", (void*)rcPostLayer}, {"rcPostAllLayersDone", (void*)rcPostAllLayersDone}, }; static const int renderControl_num_funcs = sizeof(renderControl_funcs_by_name) / sizeof(struct _renderControl_funcs_by_name); #endif
2,275
C++
.h
48
45.5
125
0.775978
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
17,732
renderControl_client_proc.h
anbox_anbox/android/opengl/system/renderControl_enc/renderControl_client_proc.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __renderControl_client_proc_t_h #define __renderControl_client_proc_t_h #include "renderControl_types.h" #ifndef renderControl_APIENTRY #define renderControl_APIENTRY #endif typedef GLint (renderControl_APIENTRY *rcGetRendererVersion_client_proc_t) (void * ctx); typedef EGLint (renderControl_APIENTRY *rcGetEGLVersion_client_proc_t) (void * ctx, EGLint*, EGLint*); typedef EGLint (renderControl_APIENTRY *rcQueryEGLString_client_proc_t) (void * ctx, EGLenum, void*, EGLint); typedef EGLint (renderControl_APIENTRY *rcGetGLString_client_proc_t) (void * ctx, EGLenum, void*, EGLint); typedef EGLint (renderControl_APIENTRY *rcGetNumConfigs_client_proc_t) (void * ctx, uint32_t*); typedef EGLint (renderControl_APIENTRY *rcGetConfigs_client_proc_t) (void * ctx, uint32_t, GLuint*); typedef EGLint (renderControl_APIENTRY *rcChooseConfig_client_proc_t) (void * ctx, EGLint*, uint32_t, uint32_t*, uint32_t); typedef EGLint (renderControl_APIENTRY *rcGetFBParam_client_proc_t) (void * ctx, EGLint); typedef uint32_t (renderControl_APIENTRY *rcCreateContext_client_proc_t) (void * ctx, uint32_t, uint32_t, uint32_t); typedef void (renderControl_APIENTRY *rcDestroyContext_client_proc_t) (void * ctx, uint32_t); typedef uint32_t (renderControl_APIENTRY *rcCreateWindowSurface_client_proc_t) (void * ctx, uint32_t, uint32_t, uint32_t); typedef void (renderControl_APIENTRY *rcDestroyWindowSurface_client_proc_t) (void * ctx, uint32_t); typedef uint32_t (renderControl_APIENTRY *rcCreateColorBuffer_client_proc_t) (void * ctx, uint32_t, uint32_t, GLenum); typedef void (renderControl_APIENTRY *rcOpenColorBuffer_client_proc_t) (void * ctx, uint32_t); typedef void (renderControl_APIENTRY *rcCloseColorBuffer_client_proc_t) (void * ctx, uint32_t); typedef void (renderControl_APIENTRY *rcSetWindowColorBuffer_client_proc_t) (void * ctx, uint32_t, uint32_t); typedef int (renderControl_APIENTRY *rcFlushWindowColorBuffer_client_proc_t) (void * ctx, uint32_t); typedef EGLint (renderControl_APIENTRY *rcMakeCurrent_client_proc_t) (void * ctx, uint32_t, uint32_t, uint32_t); typedef void (renderControl_APIENTRY *rcFBPost_client_proc_t) (void * ctx, uint32_t); typedef void (renderControl_APIENTRY *rcFBSetSwapInterval_client_proc_t) (void * ctx, EGLint); typedef void (renderControl_APIENTRY *rcBindTexture_client_proc_t) (void * ctx, uint32_t); typedef void (renderControl_APIENTRY *rcBindRenderbuffer_client_proc_t) (void * ctx, uint32_t); typedef EGLint (renderControl_APIENTRY *rcColorBufferCacheFlush_client_proc_t) (void * ctx, uint32_t, EGLint, int); typedef void (renderControl_APIENTRY *rcReadColorBuffer_client_proc_t) (void * ctx, uint32_t, GLint, GLint, GLint, GLint, GLenum, GLenum, void*); typedef int (renderControl_APIENTRY *rcUpdateColorBuffer_client_proc_t) (void * ctx, uint32_t, GLint, GLint, GLint, GLint, GLenum, GLenum, void*); typedef int (renderControl_APIENTRY *rcOpenColorBuffer2_client_proc_t) (void * ctx, uint32_t); typedef uint32_t (renderControl_APIENTRY *rcCreateClientImage_client_proc_t) (void * ctx, uint32_t, EGLenum, GLuint); typedef int (renderControl_APIENTRY *rcDestroyClientImage_client_proc_t) (void * ctx, uint32_t); typedef void (renderControl_APIENTRY *rcSelectChecksumCalculator_client_proc_t) (void * ctx, uint32_t, uint32_t); typedef int (renderControl_APIENTRY *rcGetNumDisplays_client_proc_t) (void * ctx); typedef int (renderControl_APIENTRY *rcGetDisplayWidth_client_proc_t) (void * ctx, uint32_t); typedef int (renderControl_APIENTRY *rcGetDisplayHeight_client_proc_t) (void * ctx, uint32_t); typedef int (renderControl_APIENTRY *rcGetDisplayDpiX_client_proc_t) (void * ctx, uint32_t); typedef int (renderControl_APIENTRY *rcGetDisplayDpiY_client_proc_t) (void * ctx, uint32_t); typedef int (renderControl_APIENTRY *rcGetDisplayVsyncPeriod_client_proc_t) (void * ctx, uint32_t); typedef void (renderControl_APIENTRY *rcPostLayer_client_proc_t) (void * ctx, const char*, uint32_t, float, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t); typedef void (renderControl_APIENTRY *rcPostAllLayersDone_client_proc_t) (void * ctx); #endif
4,170
C++
.h
46
89.521739
180
0.780286
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,733
renderControl_types.h
anbox_anbox/android/opengl/system/renderControl_enc/renderControl_types.h
/* * Copyright 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <stdint.h> #include <EGL/egl.h> #include "glUtils.h" // values for 'param' argument of rcGetFBParam #define FB_WIDTH 1 #define FB_HEIGHT 2 #define FB_XDPI 3 #define FB_YDPI 4 #define FB_FPS 5 #define FB_MIN_SWAP_INTERVAL 6 #define FB_MAX_SWAP_INTERVAL 7
880
C++
.h
26
32.769231
74
0.762911
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,735
gralloc_cb.h
anbox_anbox/android/opengl/system/OpenglSystemCommon/gralloc_cb.h
/* * Copyright 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __GRALLOC_CB_H__ #define __GRALLOC_CB_H__ #include <hardware/hardware.h> #include <hardware/gralloc.h> #include <cutils/native_handle.h> #define BUFFER_HANDLE_MAGIC ((int)0xabfabfab) #define CB_HANDLE_NUM_INTS(nfds) (int)((sizeof(cb_handle_t) - (nfds)*sizeof(int)) / sizeof(int)) // // Our buffer handle structure // struct cb_handle_t : public native_handle { cb_handle_t(int p_fd, int p_ashmemSize, int p_usage, int p_width, int p_height, int p_frameworkFormat, int p_format, int p_glFormat, int p_glType) : fd(p_fd), magic(BUFFER_HANDLE_MAGIC), usage(p_usage), width(p_width), height(p_height), frameworkFormat(p_frameworkFormat), format(p_format), glFormat(p_glFormat), glType(p_glType), ashmemSize(p_ashmemSize), ashmemBase(0), ashmemBasePid(0), mappedPid(0), lockedLeft(0), lockedTop(0), lockedWidth(0), lockedHeight(0), hostHandle(0) { version = sizeof(native_handle); numFds = 0; numInts = CB_HANDLE_NUM_INTS(numFds); } ~cb_handle_t() { magic = 0; } void setFd(int p_fd) { if (p_fd >= 0) { numFds = 1; } else { numFds = 0; } fd = p_fd; numInts = CB_HANDLE_NUM_INTS(numFds); } static bool validate(const cb_handle_t* hnd) { return (hnd && hnd->version == sizeof(native_handle) && hnd->magic == BUFFER_HANDLE_MAGIC && hnd->numInts == CB_HANDLE_NUM_INTS(hnd->numFds)); } bool canBePosted() { return (0 != (usage & GRALLOC_USAGE_HW_FB)); } // file-descriptors int fd; // ashmem fd (-1 of ashmem region did not allocated, i.e. no SW access needed) // ints int magic; // magic number in order to validate a pointer to be a cb_handle_t int usage; // usage bits the buffer was created with int width; // buffer width int height; // buffer height int frameworkFormat; // format requested by the Android framework int format; // real internal pixel format format int glFormat; // OpenGL format enum used for host h/w color buffer int glType; // OpenGL type enum used when uploading to host int ashmemSize; // ashmem region size for the buffer (0 unless is HW_FB buffer or // s/w access is needed) union { intptr_t ashmemBase; // CPU address of the mapped ashmem region uint64_t padding; // enforce same size on 32-bit/64-bit } __attribute__((aligned(8))); int ashmemBasePid; // process id which mapped the ashmem region int mappedPid; // process id which succeeded gralloc_register call int lockedLeft; // region of buffer locked for s/w write int lockedTop; int lockedWidth; int lockedHeight; uint32_t hostHandle; }; #endif //__GRALLOC_CB_H__
3,740
C++
.h
100
31.1
96
0.611142
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,736
HostConnection.h
anbox_anbox/android/opengl/system/OpenglSystemCommon/HostConnection.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __COMMON_HOST_CONNECTION_H #define __COMMON_HOST_CONNECTION_H #include "IOStream.h" #include "renderControl_enc.h" #include "ChecksumCalculator.h" class GLEncoder; class gl_client_context_t; class GL2Encoder; class gl2_client_context_t; class HostConnection { public: static HostConnection *get(); ~HostConnection(); GLEncoder *glEncoder(); GL2Encoder *gl2Encoder(); renderControl_encoder_context_t *rcEncoder(); ChecksumCalculator *checksumHelper() { return &m_checksumHelper; } void flush() { if (m_stream) { m_stream->flush(); } } private: HostConnection(); static gl_client_context_t *s_getGLContext(); static gl2_client_context_t *s_getGL2Context(); // setProtocol initilizes GL communication protocol for checksums // should be called when m_rcEnc is created void setChecksumHelper(renderControl_encoder_context_t *rcEnc); private: IOStream *m_stream; GLEncoder *m_glEnc; GL2Encoder *m_gl2Enc; renderControl_encoder_context_t *m_rcEnc; ChecksumCalculator m_checksumHelper; }; #endif
1,714
C++
.h
53
29.226415
74
0.744707
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,737
EGLImage.h
anbox_anbox/android/opengl/system/OpenglSystemCommon/EGLImage.h
/* * Copyright (C) 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __COMMON_EGL_IMAGE_H #define __COMMON_EGL_IMAGE_H #include <EGL/egl.h> #include <EGL/eglext.h> #include <GLES/gl.h> #include <system/window.h> struct EGLImage_t { EGLDisplay dpy; EGLenum target; union { android_native_buffer_t *native_buffer; uint32_t host_egl_image; }; }; #endif
930
C++
.h
32
26.8125
74
0.744966
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,738
ThreadInfo.h
anbox_anbox/android/opengl/system/OpenglSystemCommon/ThreadInfo.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _THREAD_INFO_H #define _THREAD_INFO_H #include "HostConnection.h" #include <pthread.h> #ifdef __ANDROID__ #include <bionic_tls.h> #endif struct EGLContext_t; struct EGLThreadInfo { EGLThreadInfo() : currentContext(NULL), hostConn(NULL), eglError(EGL_SUCCESS) {} EGLContext_t *currentContext; HostConnection *hostConn; int eglError; }; EGLThreadInfo *slow_getEGLThreadInfo(); #ifdef __ANDROID__ // We have a dedicated TLS slot in bionic inline EGLThreadInfo* getEGLThreadInfo() { EGLThreadInfo *tInfo = (EGLThreadInfo *)(((uintptr_t *)__get_tls())[TLS_SLOT_OPENGL]); if (!tInfo) { tInfo = slow_getEGLThreadInfo(); ((uintptr_t *)__get_tls())[TLS_SLOT_OPENGL] = (uintptr_t)tInfo; } return tInfo; } #else inline EGLThreadInfo* getEGLThreadInfo() { return slow_getEGLThreadInfo(); } #endif #endif // of _THREAD_INFO_H
1,556
C++
.h
48
28.833333
84
0.706079
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
17,739
EGLClientIface.h
anbox_anbox/android/opengl/system/OpenglSystemCommon/EGLClientIface.h
/* * Copyright 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _SYSTEM_COMMON_EGL_CLIENT_IFACE_H #define _SYSTEM_COMMON_EGL_CLIENT_IFACE_H struct EGLThreadInfo; // defined in ThreadInfo.h typedef struct { EGLThreadInfo* (*getThreadInfo)(); const char* (*getGLString)(int glEnum); } EGLClient_eglInterface; typedef struct { void* (*getProcAddress)(const char *funcName); void (*init)(); void (*finish)(); } EGLClient_glesInterface; // // Any GLES/GLES2 client API library should define a function named "init_emul_gles" // with the following prototype, // It will be called by EGL after loading the GLES library for initialization // and exchanging interface function pointers. // typedef EGLClient_glesInterface *(*init_emul_gles_t)(EGLClient_eglInterface *eglIface); #endif
1,344
C++
.h
35
36.657143
87
0.771297
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,743
egl_ftable.h
anbox_anbox/android/opengl/system/egl/egl_ftable.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ static const struct _egl_funcs_by_name { const char *name; void *proc; } egl_funcs_by_name[] = { {"eglGetError", (void *)eglGetError}, {"eglGetDisplay", (void *)eglGetDisplay}, {"eglInitialize", (void *)eglInitialize}, {"eglTerminate", (void *)eglTerminate}, {"eglQueryString", (void *)eglQueryString}, {"eglGetConfigs", (void *)eglGetConfigs}, {"eglChooseConfig", (void *)eglChooseConfig}, {"eglGetConfigAttrib", (void *)eglGetConfigAttrib}, {"eglCreateWindowSurface", (void *)eglCreateWindowSurface}, {"eglCreatePbufferSurface", (void *)eglCreatePbufferSurface}, {"eglCreatePixmapSurface", (void *)eglCreatePixmapSurface}, {"eglDestroySurface", (void *)eglDestroySurface}, {"eglQuerySurface", (void *)eglQuerySurface}, {"eglBindAPI", (void *)eglBindAPI}, {"eglQueryAPI", (void *)eglQueryAPI}, {"eglWaitClient", (void *)eglWaitClient}, {"eglReleaseThread", (void *)eglReleaseThread}, {"eglCreatePbufferFromClientBuffer", (void *)eglCreatePbufferFromClientBuffer}, {"eglSurfaceAttrib", (void *)eglSurfaceAttrib}, {"eglBindTexImage", (void *)eglBindTexImage}, {"eglReleaseTexImage", (void *)eglReleaseTexImage}, {"eglSwapInterval", (void *)eglSwapInterval}, {"eglCreateContext", (void *)eglCreateContext}, {"eglDestroyContext", (void *)eglDestroyContext}, {"eglMakeCurrent", (void *)eglMakeCurrent}, {"eglGetCurrentContext", (void *)eglGetCurrentContext}, {"eglGetCurrentSurface", (void *)eglGetCurrentSurface}, {"eglGetCurrentDisplay", (void *)eglGetCurrentDisplay}, {"eglQueryContext", (void *)eglQueryContext}, {"eglWaitGL", (void *)eglWaitGL}, {"eglWaitNative", (void *)eglWaitNative}, {"eglSwapBuffers", (void *)eglSwapBuffers}, {"eglCopyBuffers", (void *)eglCopyBuffers}, {"eglGetProcAddress", (void *)eglGetProcAddress}, {"eglLockSurfaceKHR", (void *)eglLockSurfaceKHR}, {"eglUnlockSurfaceKHR", (void *)eglUnlockSurfaceKHR}, {"eglCreateImageKHR", (void *)eglCreateImageKHR}, {"eglDestroyImageKHR", (void *)eglDestroyImageKHR}, {"eglCreateSyncKHR", (void *)eglCreateSyncKHR}, {"eglDestroySyncKHR", (void *)eglDestroySyncKHR}, {"eglClientWaitSyncKHR", (void *)eglClientWaitSyncKHR}, {"eglGetSyncAttribKHR", (void *)eglGetSyncAttribKHR} }; static const int egl_num_funcs = sizeof(egl_funcs_by_name) / sizeof(struct _egl_funcs_by_name);
3,017
C++
.h
63
44.079365
95
0.722655
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,744
gl2_types.h
anbox_anbox/android/opengl/system/GLESv2_enc/gl2_types.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _GL_2_TYPES_H_ #define _GL_2_TYPES_H_ #include "gl_base_types.h" typedef void *GLvoidptr; #endif
707
C++
.h
20
34.3
74
0.774052
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,745
gl2_client_proc.h
anbox_anbox/android/opengl/system/GLESv2_enc/gl2_client_proc.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __gl2_client_proc_t_h #define __gl2_client_proc_t_h #include "gl2_types.h" #ifndef gl2_APIENTRY #define gl2_APIENTRY #endif typedef void (gl2_APIENTRY *glActiveTexture_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glAttachShader_client_proc_t) (void * ctx, GLuint, GLuint); typedef void (gl2_APIENTRY *glBindAttribLocation_client_proc_t) (void * ctx, GLuint, GLuint, const GLchar*); typedef void (gl2_APIENTRY *glBindBuffer_client_proc_t) (void * ctx, GLenum, GLuint); typedef void (gl2_APIENTRY *glBindFramebuffer_client_proc_t) (void * ctx, GLenum, GLuint); typedef void (gl2_APIENTRY *glBindRenderbuffer_client_proc_t) (void * ctx, GLenum, GLuint); typedef void (gl2_APIENTRY *glBindTexture_client_proc_t) (void * ctx, GLenum, GLuint); typedef void (gl2_APIENTRY *glBlendColor_client_proc_t) (void * ctx, GLclampf, GLclampf, GLclampf, GLclampf); typedef void (gl2_APIENTRY *glBlendEquation_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glBlendEquationSeparate_client_proc_t) (void * ctx, GLenum, GLenum); typedef void (gl2_APIENTRY *glBlendFunc_client_proc_t) (void * ctx, GLenum, GLenum); typedef void (gl2_APIENTRY *glBlendFuncSeparate_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLenum); typedef void (gl2_APIENTRY *glBufferData_client_proc_t) (void * ctx, GLenum, GLsizeiptr, const GLvoid*, GLenum); typedef void (gl2_APIENTRY *glBufferSubData_client_proc_t) (void * ctx, GLenum, GLintptr, GLsizeiptr, const GLvoid*); typedef GLenum (gl2_APIENTRY *glCheckFramebufferStatus_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glClear_client_proc_t) (void * ctx, GLbitfield); typedef void (gl2_APIENTRY *glClearColor_client_proc_t) (void * ctx, GLclampf, GLclampf, GLclampf, GLclampf); typedef void (gl2_APIENTRY *glClearDepthf_client_proc_t) (void * ctx, GLclampf); typedef void (gl2_APIENTRY *glClearStencil_client_proc_t) (void * ctx, GLint); typedef void (gl2_APIENTRY *glColorMask_client_proc_t) (void * ctx, GLboolean, GLboolean, GLboolean, GLboolean); typedef void (gl2_APIENTRY *glCompileShader_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glCompressedTexImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*); typedef void (gl2_APIENTRY *glCompressedTexSubImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*); typedef void (gl2_APIENTRY *glCopyTexImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); typedef void (gl2_APIENTRY *glCopyTexSubImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); typedef GLuint (gl2_APIENTRY *glCreateProgram_client_proc_t) (void * ctx); typedef GLuint (gl2_APIENTRY *glCreateShader_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glCullFace_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glDeleteBuffers_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl2_APIENTRY *glDeleteFramebuffers_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl2_APIENTRY *glDeleteProgram_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glDeleteRenderbuffers_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl2_APIENTRY *glDeleteShader_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glDeleteTextures_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl2_APIENTRY *glDepthFunc_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glDepthMask_client_proc_t) (void * ctx, GLboolean); typedef void (gl2_APIENTRY *glDepthRangef_client_proc_t) (void * ctx, GLclampf, GLclampf); typedef void (gl2_APIENTRY *glDetachShader_client_proc_t) (void * ctx, GLuint, GLuint); typedef void (gl2_APIENTRY *glDisable_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glDisableVertexAttribArray_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glDrawArrays_client_proc_t) (void * ctx, GLenum, GLint, GLsizei); typedef void (gl2_APIENTRY *glDrawElements_client_proc_t) (void * ctx, GLenum, GLsizei, GLenum, const GLvoid*); typedef void (gl2_APIENTRY *glEnable_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glEnableVertexAttribArray_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glFinish_client_proc_t) (void * ctx); typedef void (gl2_APIENTRY *glFlush_client_proc_t) (void * ctx); typedef void (gl2_APIENTRY *glFramebufferRenderbuffer_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLuint); typedef void (gl2_APIENTRY *glFramebufferTexture2D_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLuint, GLint); typedef void (gl2_APIENTRY *glFrontFace_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glGenBuffers_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef void (gl2_APIENTRY *glGenerateMipmap_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glGenFramebuffers_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef void (gl2_APIENTRY *glGenRenderbuffers_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef void (gl2_APIENTRY *glGenTextures_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef void (gl2_APIENTRY *glGetActiveAttrib_client_proc_t) (void * ctx, GLuint, GLuint, GLsizei, GLsizei*, GLint*, GLenum*, GLchar*); typedef void (gl2_APIENTRY *glGetActiveUniform_client_proc_t) (void * ctx, GLuint, GLuint, GLsizei, GLsizei*, GLint*, GLenum*, GLchar*); typedef void (gl2_APIENTRY *glGetAttachedShaders_client_proc_t) (void * ctx, GLuint, GLsizei, GLsizei*, GLuint*); typedef int (gl2_APIENTRY *glGetAttribLocation_client_proc_t) (void * ctx, GLuint, const GLchar*); typedef void (gl2_APIENTRY *glGetBooleanv_client_proc_t) (void * ctx, GLenum, GLboolean*); typedef void (gl2_APIENTRY *glGetBufferParameteriv_client_proc_t) (void * ctx, GLenum, GLenum, GLint*); typedef GLenum (gl2_APIENTRY *glGetError_client_proc_t) (void * ctx); typedef void (gl2_APIENTRY *glGetFloatv_client_proc_t) (void * ctx, GLenum, GLfloat*); typedef void (gl2_APIENTRY *glGetFramebufferAttachmentParameteriv_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLint*); typedef void (gl2_APIENTRY *glGetIntegerv_client_proc_t) (void * ctx, GLenum, GLint*); typedef void (gl2_APIENTRY *glGetProgramiv_client_proc_t) (void * ctx, GLuint, GLenum, GLint*); typedef void (gl2_APIENTRY *glGetProgramInfoLog_client_proc_t) (void * ctx, GLuint, GLsizei, GLsizei*, GLchar*); typedef void (gl2_APIENTRY *glGetRenderbufferParameteriv_client_proc_t) (void * ctx, GLenum, GLenum, GLint*); typedef void (gl2_APIENTRY *glGetShaderiv_client_proc_t) (void * ctx, GLuint, GLenum, GLint*); typedef void (gl2_APIENTRY *glGetShaderInfoLog_client_proc_t) (void * ctx, GLuint, GLsizei, GLsizei*, GLchar*); typedef void (gl2_APIENTRY *glGetShaderPrecisionFormat_client_proc_t) (void * ctx, GLenum, GLenum, GLint*, GLint*); typedef void (gl2_APIENTRY *glGetShaderSource_client_proc_t) (void * ctx, GLuint, GLsizei, GLsizei*, GLchar*); typedef const GLubyte* (gl2_APIENTRY *glGetString_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glGetTexParameterfv_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat*); typedef void (gl2_APIENTRY *glGetTexParameteriv_client_proc_t) (void * ctx, GLenum, GLenum, GLint*); typedef void (gl2_APIENTRY *glGetUniformfv_client_proc_t) (void * ctx, GLuint, GLint, GLfloat*); typedef void (gl2_APIENTRY *glGetUniformiv_client_proc_t) (void * ctx, GLuint, GLint, GLint*); typedef int (gl2_APIENTRY *glGetUniformLocation_client_proc_t) (void * ctx, GLuint, const GLchar*); typedef void (gl2_APIENTRY *glGetVertexAttribfv_client_proc_t) (void * ctx, GLuint, GLenum, GLfloat*); typedef void (gl2_APIENTRY *glGetVertexAttribiv_client_proc_t) (void * ctx, GLuint, GLenum, GLint*); typedef void (gl2_APIENTRY *glGetVertexAttribPointerv_client_proc_t) (void * ctx, GLuint, GLenum, GLvoid**); typedef void (gl2_APIENTRY *glHint_client_proc_t) (void * ctx, GLenum, GLenum); typedef GLboolean (gl2_APIENTRY *glIsBuffer_client_proc_t) (void * ctx, GLuint); typedef GLboolean (gl2_APIENTRY *glIsEnabled_client_proc_t) (void * ctx, GLenum); typedef GLboolean (gl2_APIENTRY *glIsFramebuffer_client_proc_t) (void * ctx, GLuint); typedef GLboolean (gl2_APIENTRY *glIsProgram_client_proc_t) (void * ctx, GLuint); typedef GLboolean (gl2_APIENTRY *glIsRenderbuffer_client_proc_t) (void * ctx, GLuint); typedef GLboolean (gl2_APIENTRY *glIsShader_client_proc_t) (void * ctx, GLuint); typedef GLboolean (gl2_APIENTRY *glIsTexture_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glLineWidth_client_proc_t) (void * ctx, GLfloat); typedef void (gl2_APIENTRY *glLinkProgram_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glPixelStorei_client_proc_t) (void * ctx, GLenum, GLint); typedef void (gl2_APIENTRY *glPolygonOffset_client_proc_t) (void * ctx, GLfloat, GLfloat); typedef void (gl2_APIENTRY *glReadPixels_client_proc_t) (void * ctx, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*); typedef void (gl2_APIENTRY *glReleaseShaderCompiler_client_proc_t) (void * ctx); typedef void (gl2_APIENTRY *glRenderbufferStorage_client_proc_t) (void * ctx, GLenum, GLenum, GLsizei, GLsizei); typedef void (gl2_APIENTRY *glSampleCoverage_client_proc_t) (void * ctx, GLclampf, GLboolean); typedef void (gl2_APIENTRY *glScissor_client_proc_t) (void * ctx, GLint, GLint, GLsizei, GLsizei); typedef void (gl2_APIENTRY *glShaderBinary_client_proc_t) (void * ctx, GLsizei, const GLuint*, GLenum, const GLvoid*, GLsizei); typedef void (gl2_APIENTRY *glShaderSource_client_proc_t) (void * ctx, GLuint, GLsizei, const GLchar* const*, const GLint*); typedef void (gl2_APIENTRY *glStencilFunc_client_proc_t) (void * ctx, GLenum, GLint, GLuint); typedef void (gl2_APIENTRY *glStencilFuncSeparate_client_proc_t) (void * ctx, GLenum, GLenum, GLint, GLuint); typedef void (gl2_APIENTRY *glStencilMask_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glStencilMaskSeparate_client_proc_t) (void * ctx, GLenum, GLuint); typedef void (gl2_APIENTRY *glStencilOp_client_proc_t) (void * ctx, GLenum, GLenum, GLenum); typedef void (gl2_APIENTRY *glStencilOpSeparate_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLenum); typedef void (gl2_APIENTRY *glTexImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*); typedef void (gl2_APIENTRY *glTexParameterf_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat); typedef void (gl2_APIENTRY *glTexParameterfv_client_proc_t) (void * ctx, GLenum, GLenum, const GLfloat*); typedef void (gl2_APIENTRY *glTexParameteri_client_proc_t) (void * ctx, GLenum, GLenum, GLint); typedef void (gl2_APIENTRY *glTexParameteriv_client_proc_t) (void * ctx, GLenum, GLenum, const GLint*); typedef void (gl2_APIENTRY *glTexSubImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid*); typedef void (gl2_APIENTRY *glUniform1f_client_proc_t) (void * ctx, GLint, GLfloat); typedef void (gl2_APIENTRY *glUniform1fv_client_proc_t) (void * ctx, GLint, GLsizei, const GLfloat*); typedef void (gl2_APIENTRY *glUniform1i_client_proc_t) (void * ctx, GLint, GLint); typedef void (gl2_APIENTRY *glUniform1iv_client_proc_t) (void * ctx, GLint, GLsizei, const GLint*); typedef void (gl2_APIENTRY *glUniform2f_client_proc_t) (void * ctx, GLint, GLfloat, GLfloat); typedef void (gl2_APIENTRY *glUniform2fv_client_proc_t) (void * ctx, GLint, GLsizei, const GLfloat*); typedef void (gl2_APIENTRY *glUniform2i_client_proc_t) (void * ctx, GLint, GLint, GLint); typedef void (gl2_APIENTRY *glUniform2iv_client_proc_t) (void * ctx, GLint, GLsizei, const GLint*); typedef void (gl2_APIENTRY *glUniform3f_client_proc_t) (void * ctx, GLint, GLfloat, GLfloat, GLfloat); typedef void (gl2_APIENTRY *glUniform3fv_client_proc_t) (void * ctx, GLint, GLsizei, const GLfloat*); typedef void (gl2_APIENTRY *glUniform3i_client_proc_t) (void * ctx, GLint, GLint, GLint, GLint); typedef void (gl2_APIENTRY *glUniform3iv_client_proc_t) (void * ctx, GLint, GLsizei, const GLint*); typedef void (gl2_APIENTRY *glUniform4f_client_proc_t) (void * ctx, GLint, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (gl2_APIENTRY *glUniform4fv_client_proc_t) (void * ctx, GLint, GLsizei, const GLfloat*); typedef void (gl2_APIENTRY *glUniform4i_client_proc_t) (void * ctx, GLint, GLint, GLint, GLint, GLint); typedef void (gl2_APIENTRY *glUniform4iv_client_proc_t) (void * ctx, GLint, GLsizei, const GLint*); typedef void (gl2_APIENTRY *glUniformMatrix2fv_client_proc_t) (void * ctx, GLint, GLsizei, GLboolean, const GLfloat*); typedef void (gl2_APIENTRY *glUniformMatrix3fv_client_proc_t) (void * ctx, GLint, GLsizei, GLboolean, const GLfloat*); typedef void (gl2_APIENTRY *glUniformMatrix4fv_client_proc_t) (void * ctx, GLint, GLsizei, GLboolean, const GLfloat*); typedef void (gl2_APIENTRY *glUseProgram_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glValidateProgram_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glVertexAttrib1f_client_proc_t) (void * ctx, GLuint, GLfloat); typedef void (gl2_APIENTRY *glVertexAttrib1fv_client_proc_t) (void * ctx, GLuint, const GLfloat*); typedef void (gl2_APIENTRY *glVertexAttrib2f_client_proc_t) (void * ctx, GLuint, GLfloat, GLfloat); typedef void (gl2_APIENTRY *glVertexAttrib2fv_client_proc_t) (void * ctx, GLuint, const GLfloat*); typedef void (gl2_APIENTRY *glVertexAttrib3f_client_proc_t) (void * ctx, GLuint, GLfloat, GLfloat, GLfloat); typedef void (gl2_APIENTRY *glVertexAttrib3fv_client_proc_t) (void * ctx, GLuint, const GLfloat*); typedef void (gl2_APIENTRY *glVertexAttrib4f_client_proc_t) (void * ctx, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (gl2_APIENTRY *glVertexAttrib4fv_client_proc_t) (void * ctx, GLuint, const GLfloat*); typedef void (gl2_APIENTRY *glVertexAttribPointer_client_proc_t) (void * ctx, GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid*); typedef void (gl2_APIENTRY *glViewport_client_proc_t) (void * ctx, GLint, GLint, GLsizei, GLsizei); typedef void (gl2_APIENTRY *glEGLImageTargetTexture2DOES_client_proc_t) (void * ctx, GLenum, GLeglImageOES); typedef void (gl2_APIENTRY *glEGLImageTargetRenderbufferStorageOES_client_proc_t) (void * ctx, GLenum, GLeglImageOES); typedef void (gl2_APIENTRY *glGetProgramBinaryOES_client_proc_t) (void * ctx, GLuint, GLsizei, GLsizei*, GLenum*, GLvoid*); typedef void (gl2_APIENTRY *glProgramBinaryOES_client_proc_t) (void * ctx, GLuint, GLenum, const GLvoid*, GLint); typedef void* (gl2_APIENTRY *glMapBufferOES_client_proc_t) (void * ctx, GLenum, GLenum); typedef GLboolean (gl2_APIENTRY *glUnmapBufferOES_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glTexImage3DOES_client_proc_t) (void * ctx, GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*); typedef void (gl2_APIENTRY *glTexSubImage3DOES_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid*); typedef void (gl2_APIENTRY *glCopyTexSubImage3DOES_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); typedef void (gl2_APIENTRY *glCompressedTexImage3DOES_client_proc_t) (void * ctx, GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*); typedef void (gl2_APIENTRY *glCompressedTexSubImage3DOES_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*); typedef void (gl2_APIENTRY *glFramebufferTexture3DOES_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLuint, GLint, GLint); typedef void (gl2_APIENTRY *glBindVertexArrayOES_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glDeleteVertexArraysOES_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl2_APIENTRY *glGenVertexArraysOES_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef GLboolean (gl2_APIENTRY *glIsVertexArrayOES_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glDiscardFramebufferEXT_client_proc_t) (void * ctx, GLenum, GLsizei, const GLenum*); typedef void (gl2_APIENTRY *glMultiDrawArraysEXT_client_proc_t) (void * ctx, GLenum, const GLint*, const GLsizei*, GLsizei); typedef void (gl2_APIENTRY *glMultiDrawElementsEXT_client_proc_t) (void * ctx, GLenum, const GLsizei*, GLenum, const GLvoid* const*, GLsizei); typedef void (gl2_APIENTRY *glGetPerfMonitorGroupsAMD_client_proc_t) (void * ctx, GLint*, GLsizei, GLuint*); typedef void (gl2_APIENTRY *glGetPerfMonitorCountersAMD_client_proc_t) (void * ctx, GLuint, GLint*, GLint*, GLsizei, GLuint*); typedef void (gl2_APIENTRY *glGetPerfMonitorGroupStringAMD_client_proc_t) (void * ctx, GLuint, GLsizei, GLsizei*, GLchar*); typedef void (gl2_APIENTRY *glGetPerfMonitorCounterStringAMD_client_proc_t) (void * ctx, GLuint, GLuint, GLsizei, GLsizei*, GLchar*); typedef void (gl2_APIENTRY *glGetPerfMonitorCounterInfoAMD_client_proc_t) (void * ctx, GLuint, GLuint, GLenum, GLvoid*); typedef void (gl2_APIENTRY *glGenPerfMonitorsAMD_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef void (gl2_APIENTRY *glDeletePerfMonitorsAMD_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef void (gl2_APIENTRY *glSelectPerfMonitorCountersAMD_client_proc_t) (void * ctx, GLuint, GLboolean, GLuint, GLint, GLuint*); typedef void (gl2_APIENTRY *glBeginPerfMonitorAMD_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glEndPerfMonitorAMD_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glGetPerfMonitorCounterDataAMD_client_proc_t) (void * ctx, GLuint, GLenum, GLsizei, GLuint*, GLint*); typedef void (gl2_APIENTRY *glRenderbufferStorageMultisampleIMG_client_proc_t) (void * ctx, GLenum, GLsizei, GLenum, GLsizei, GLsizei); typedef void (gl2_APIENTRY *glFramebufferTexture2DMultisampleIMG_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLuint, GLint, GLsizei); typedef void (gl2_APIENTRY *glDeleteFencesNV_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl2_APIENTRY *glGenFencesNV_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef GLboolean (gl2_APIENTRY *glIsFenceNV_client_proc_t) (void * ctx, GLuint); typedef GLboolean (gl2_APIENTRY *glTestFenceNV_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glGetFenceivNV_client_proc_t) (void * ctx, GLuint, GLenum, GLint*); typedef void (gl2_APIENTRY *glFinishFenceNV_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glSetFenceNV_client_proc_t) (void * ctx, GLuint, GLenum); typedef void (gl2_APIENTRY *glCoverageMaskNV_client_proc_t) (void * ctx, GLboolean); typedef void (gl2_APIENTRY *glCoverageOperationNV_client_proc_t) (void * ctx, GLenum); typedef void (gl2_APIENTRY *glGetDriverControlsQCOM_client_proc_t) (void * ctx, GLint*, GLsizei, GLuint*); typedef void (gl2_APIENTRY *glGetDriverControlStringQCOM_client_proc_t) (void * ctx, GLuint, GLsizei, GLsizei*, GLchar*); typedef void (gl2_APIENTRY *glEnableDriverControlQCOM_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glDisableDriverControlQCOM_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glExtGetTexturesQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef void (gl2_APIENTRY *glExtGetBuffersQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef void (gl2_APIENTRY *glExtGetRenderbuffersQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef void (gl2_APIENTRY *glExtGetFramebuffersQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef void (gl2_APIENTRY *glExtGetTexLevelParameterivQCOM_client_proc_t) (void * ctx, GLuint, GLenum, GLint, GLenum, GLint*); typedef void (gl2_APIENTRY *glExtTexObjectStateOverrideiQCOM_client_proc_t) (void * ctx, GLenum, GLenum, GLint); typedef void (gl2_APIENTRY *glExtGetTexSubImageQCOM_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, GLvoid*); typedef void (gl2_APIENTRY *glExtGetBufferPointervQCOM_client_proc_t) (void * ctx, GLenum, GLvoidptr*); typedef void (gl2_APIENTRY *glExtGetShadersQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef void (gl2_APIENTRY *glExtGetProgramsQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef GLboolean (gl2_APIENTRY *glExtIsProgramBinaryQCOM_client_proc_t) (void * ctx, GLuint); typedef void (gl2_APIENTRY *glExtGetProgramBinarySourceQCOM_client_proc_t) (void * ctx, GLuint, GLenum, GLchar*, GLint*); typedef void (gl2_APIENTRY *glStartTilingQCOM_client_proc_t) (void * ctx, GLuint, GLuint, GLuint, GLuint, GLbitfield); typedef void (gl2_APIENTRY *glEndTilingQCOM_client_proc_t) (void * ctx, GLbitfield); typedef void (gl2_APIENTRY *glVertexAttribPointerData_client_proc_t) (void * ctx, GLuint, GLint, GLenum, GLboolean, GLsizei, void*, GLuint); typedef void (gl2_APIENTRY *glVertexAttribPointerOffset_client_proc_t) (void * ctx, GLuint, GLint, GLenum, GLboolean, GLsizei, GLuint); typedef void (gl2_APIENTRY *glDrawElementsOffset_client_proc_t) (void * ctx, GLenum, GLsizei, GLenum, GLuint); typedef void (gl2_APIENTRY *glDrawElementsData_client_proc_t) (void * ctx, GLenum, GLsizei, GLenum, void*, GLuint); typedef void (gl2_APIENTRY *glGetCompressedTextureFormats_client_proc_t) (void * ctx, int, GLint*); typedef void (gl2_APIENTRY *glShaderString_client_proc_t) (void * ctx, GLuint, const GLchar*, GLsizei); typedef int (gl2_APIENTRY *glFinishRoundTrip_client_proc_t) (void * ctx); #endif
21,630
C++
.h
217
98.64977
180
0.76434
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,746
gl2_opcodes.h
anbox_anbox/android/opengl/system/GLESv2_enc/gl2_opcodes.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __GUARD_gl2_opcodes_h_ #define __GUARD_gl2_opcodes_h_ #define OP_glActiveTexture 2048 #define OP_glAttachShader 2049 #define OP_glBindAttribLocation 2050 #define OP_glBindBuffer 2051 #define OP_glBindFramebuffer 2052 #define OP_glBindRenderbuffer 2053 #define OP_glBindTexture 2054 #define OP_glBlendColor 2055 #define OP_glBlendEquation 2056 #define OP_glBlendEquationSeparate 2057 #define OP_glBlendFunc 2058 #define OP_glBlendFuncSeparate 2059 #define OP_glBufferData 2060 #define OP_glBufferSubData 2061 #define OP_glCheckFramebufferStatus 2062 #define OP_glClear 2063 #define OP_glClearColor 2064 #define OP_glClearDepthf 2065 #define OP_glClearStencil 2066 #define OP_glColorMask 2067 #define OP_glCompileShader 2068 #define OP_glCompressedTexImage2D 2069 #define OP_glCompressedTexSubImage2D 2070 #define OP_glCopyTexImage2D 2071 #define OP_glCopyTexSubImage2D 2072 #define OP_glCreateProgram 2073 #define OP_glCreateShader 2074 #define OP_glCullFace 2075 #define OP_glDeleteBuffers 2076 #define OP_glDeleteFramebuffers 2077 #define OP_glDeleteProgram 2078 #define OP_glDeleteRenderbuffers 2079 #define OP_glDeleteShader 2080 #define OP_glDeleteTextures 2081 #define OP_glDepthFunc 2082 #define OP_glDepthMask 2083 #define OP_glDepthRangef 2084 #define OP_glDetachShader 2085 #define OP_glDisable 2086 #define OP_glDisableVertexAttribArray 2087 #define OP_glDrawArrays 2088 #define OP_glDrawElements 2089 #define OP_glEnable 2090 #define OP_glEnableVertexAttribArray 2091 #define OP_glFinish 2092 #define OP_glFlush 2093 #define OP_glFramebufferRenderbuffer 2094 #define OP_glFramebufferTexture2D 2095 #define OP_glFrontFace 2096 #define OP_glGenBuffers 2097 #define OP_glGenerateMipmap 2098 #define OP_glGenFramebuffers 2099 #define OP_glGenRenderbuffers 2100 #define OP_glGenTextures 2101 #define OP_glGetActiveAttrib 2102 #define OP_glGetActiveUniform 2103 #define OP_glGetAttachedShaders 2104 #define OP_glGetAttribLocation 2105 #define OP_glGetBooleanv 2106 #define OP_glGetBufferParameteriv 2107 #define OP_glGetError 2108 #define OP_glGetFloatv 2109 #define OP_glGetFramebufferAttachmentParameteriv 2110 #define OP_glGetIntegerv 2111 #define OP_glGetProgramiv 2112 #define OP_glGetProgramInfoLog 2113 #define OP_glGetRenderbufferParameteriv 2114 #define OP_glGetShaderiv 2115 #define OP_glGetShaderInfoLog 2116 #define OP_glGetShaderPrecisionFormat 2117 #define OP_glGetShaderSource 2118 #define OP_glGetString 2119 #define OP_glGetTexParameterfv 2120 #define OP_glGetTexParameteriv 2121 #define OP_glGetUniformfv 2122 #define OP_glGetUniformiv 2123 #define OP_glGetUniformLocation 2124 #define OP_glGetVertexAttribfv 2125 #define OP_glGetVertexAttribiv 2126 #define OP_glGetVertexAttribPointerv 2127 #define OP_glHint 2128 #define OP_glIsBuffer 2129 #define OP_glIsEnabled 2130 #define OP_glIsFramebuffer 2131 #define OP_glIsProgram 2132 #define OP_glIsRenderbuffer 2133 #define OP_glIsShader 2134 #define OP_glIsTexture 2135 #define OP_glLineWidth 2136 #define OP_glLinkProgram 2137 #define OP_glPixelStorei 2138 #define OP_glPolygonOffset 2139 #define OP_glReadPixels 2140 #define OP_glReleaseShaderCompiler 2141 #define OP_glRenderbufferStorage 2142 #define OP_glSampleCoverage 2143 #define OP_glScissor 2144 #define OP_glShaderBinary 2145 #define OP_glShaderSource 2146 #define OP_glStencilFunc 2147 #define OP_glStencilFuncSeparate 2148 #define OP_glStencilMask 2149 #define OP_glStencilMaskSeparate 2150 #define OP_glStencilOp 2151 #define OP_glStencilOpSeparate 2152 #define OP_glTexImage2D 2153 #define OP_glTexParameterf 2154 #define OP_glTexParameterfv 2155 #define OP_glTexParameteri 2156 #define OP_glTexParameteriv 2157 #define OP_glTexSubImage2D 2158 #define OP_glUniform1f 2159 #define OP_glUniform1fv 2160 #define OP_glUniform1i 2161 #define OP_glUniform1iv 2162 #define OP_glUniform2f 2163 #define OP_glUniform2fv 2164 #define OP_glUniform2i 2165 #define OP_glUniform2iv 2166 #define OP_glUniform3f 2167 #define OP_glUniform3fv 2168 #define OP_glUniform3i 2169 #define OP_glUniform3iv 2170 #define OP_glUniform4f 2171 #define OP_glUniform4fv 2172 #define OP_glUniform4i 2173 #define OP_glUniform4iv 2174 #define OP_glUniformMatrix2fv 2175 #define OP_glUniformMatrix3fv 2176 #define OP_glUniformMatrix4fv 2177 #define OP_glUseProgram 2178 #define OP_glValidateProgram 2179 #define OP_glVertexAttrib1f 2180 #define OP_glVertexAttrib1fv 2181 #define OP_glVertexAttrib2f 2182 #define OP_glVertexAttrib2fv 2183 #define OP_glVertexAttrib3f 2184 #define OP_glVertexAttrib3fv 2185 #define OP_glVertexAttrib4f 2186 #define OP_glVertexAttrib4fv 2187 #define OP_glVertexAttribPointer 2188 #define OP_glViewport 2189 #define OP_glEGLImageTargetTexture2DOES 2190 #define OP_glEGLImageTargetRenderbufferStorageOES 2191 #define OP_glGetProgramBinaryOES 2192 #define OP_glProgramBinaryOES 2193 #define OP_glMapBufferOES 2194 #define OP_glUnmapBufferOES 2195 #define OP_glTexImage3DOES 2196 #define OP_glTexSubImage3DOES 2197 #define OP_glCopyTexSubImage3DOES 2198 #define OP_glCompressedTexImage3DOES 2199 #define OP_glCompressedTexSubImage3DOES 2200 #define OP_glFramebufferTexture3DOES 2201 #define OP_glBindVertexArrayOES 2202 #define OP_glDeleteVertexArraysOES 2203 #define OP_glGenVertexArraysOES 2204 #define OP_glIsVertexArrayOES 2205 #define OP_glDiscardFramebufferEXT 2206 #define OP_glMultiDrawArraysEXT 2207 #define OP_glMultiDrawElementsEXT 2208 #define OP_glGetPerfMonitorGroupsAMD 2209 #define OP_glGetPerfMonitorCountersAMD 2210 #define OP_glGetPerfMonitorGroupStringAMD 2211 #define OP_glGetPerfMonitorCounterStringAMD 2212 #define OP_glGetPerfMonitorCounterInfoAMD 2213 #define OP_glGenPerfMonitorsAMD 2214 #define OP_glDeletePerfMonitorsAMD 2215 #define OP_glSelectPerfMonitorCountersAMD 2216 #define OP_glBeginPerfMonitorAMD 2217 #define OP_glEndPerfMonitorAMD 2218 #define OP_glGetPerfMonitorCounterDataAMD 2219 #define OP_glRenderbufferStorageMultisampleIMG 2220 #define OP_glFramebufferTexture2DMultisampleIMG 2221 #define OP_glDeleteFencesNV 2222 #define OP_glGenFencesNV 2223 #define OP_glIsFenceNV 2224 #define OP_glTestFenceNV 2225 #define OP_glGetFenceivNV 2226 #define OP_glFinishFenceNV 2227 #define OP_glSetFenceNV 2228 #define OP_glCoverageMaskNV 2229 #define OP_glCoverageOperationNV 2230 #define OP_glGetDriverControlsQCOM 2231 #define OP_glGetDriverControlStringQCOM 2232 #define OP_glEnableDriverControlQCOM 2233 #define OP_glDisableDriverControlQCOM 2234 #define OP_glExtGetTexturesQCOM 2235 #define OP_glExtGetBuffersQCOM 2236 #define OP_glExtGetRenderbuffersQCOM 2237 #define OP_glExtGetFramebuffersQCOM 2238 #define OP_glExtGetTexLevelParameterivQCOM 2239 #define OP_glExtTexObjectStateOverrideiQCOM 2240 #define OP_glExtGetTexSubImageQCOM 2241 #define OP_glExtGetBufferPointervQCOM 2242 #define OP_glExtGetShadersQCOM 2243 #define OP_glExtGetProgramsQCOM 2244 #define OP_glExtIsProgramBinaryQCOM 2245 #define OP_glExtGetProgramBinarySourceQCOM 2246 #define OP_glStartTilingQCOM 2247 #define OP_glEndTilingQCOM 2248 #define OP_glVertexAttribPointerData 2249 #define OP_glVertexAttribPointerOffset 2250 #define OP_glDrawElementsOffset 2251 #define OP_glDrawElementsData 2252 #define OP_glGetCompressedTextureFormats 2253 #define OP_glShaderString 2254 #define OP_glFinishRoundTrip 2255 #define OP_last 2256 #endif
8,384
C++
.h
214
38.163551
59
0.765275
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,747
gl2_ftable.h
anbox_anbox/android/opengl/system/GLESv2_enc/gl2_ftable.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __gl2_client_ftable_t_h #define __gl2_client_ftable_t_h static const struct _gl2_funcs_by_name { const char *name; void *proc; } gl2_funcs_by_name[] = { {"glActiveTexture", (void*)glActiveTexture}, {"glAttachShader", (void*)glAttachShader}, {"glBindAttribLocation", (void*)glBindAttribLocation}, {"glBindBuffer", (void*)glBindBuffer}, {"glBindFramebuffer", (void*)glBindFramebuffer}, {"glBindRenderbuffer", (void*)glBindRenderbuffer}, {"glBindTexture", (void*)glBindTexture}, {"glBlendColor", (void*)glBlendColor}, {"glBlendEquation", (void*)glBlendEquation}, {"glBlendEquationSeparate", (void*)glBlendEquationSeparate}, {"glBlendFunc", (void*)glBlendFunc}, {"glBlendFuncSeparate", (void*)glBlendFuncSeparate}, {"glBufferData", (void*)glBufferData}, {"glBufferSubData", (void*)glBufferSubData}, {"glCheckFramebufferStatus", (void*)glCheckFramebufferStatus}, {"glClear", (void*)glClear}, {"glClearColor", (void*)glClearColor}, {"glClearDepthf", (void*)glClearDepthf}, {"glClearStencil", (void*)glClearStencil}, {"glColorMask", (void*)glColorMask}, {"glCompileShader", (void*)glCompileShader}, {"glCompressedTexImage2D", (void*)glCompressedTexImage2D}, {"glCompressedTexSubImage2D", (void*)glCompressedTexSubImage2D}, {"glCopyTexImage2D", (void*)glCopyTexImage2D}, {"glCopyTexSubImage2D", (void*)glCopyTexSubImage2D}, {"glCreateProgram", (void*)glCreateProgram}, {"glCreateShader", (void*)glCreateShader}, {"glCullFace", (void*)glCullFace}, {"glDeleteBuffers", (void*)glDeleteBuffers}, {"glDeleteFramebuffers", (void*)glDeleteFramebuffers}, {"glDeleteProgram", (void*)glDeleteProgram}, {"glDeleteRenderbuffers", (void*)glDeleteRenderbuffers}, {"glDeleteShader", (void*)glDeleteShader}, {"glDeleteTextures", (void*)glDeleteTextures}, {"glDepthFunc", (void*)glDepthFunc}, {"glDepthMask", (void*)glDepthMask}, {"glDepthRangef", (void*)glDepthRangef}, {"glDetachShader", (void*)glDetachShader}, {"glDisable", (void*)glDisable}, {"glDisableVertexAttribArray", (void*)glDisableVertexAttribArray}, {"glDrawArrays", (void*)glDrawArrays}, {"glDrawElements", (void*)glDrawElements}, {"glEnable", (void*)glEnable}, {"glEnableVertexAttribArray", (void*)glEnableVertexAttribArray}, {"glFinish", (void*)glFinish}, {"glFlush", (void*)glFlush}, {"glFramebufferRenderbuffer", (void*)glFramebufferRenderbuffer}, {"glFramebufferTexture2D", (void*)glFramebufferTexture2D}, {"glFrontFace", (void*)glFrontFace}, {"glGenBuffers", (void*)glGenBuffers}, {"glGenerateMipmap", (void*)glGenerateMipmap}, {"glGenFramebuffers", (void*)glGenFramebuffers}, {"glGenRenderbuffers", (void*)glGenRenderbuffers}, {"glGenTextures", (void*)glGenTextures}, {"glGetActiveAttrib", (void*)glGetActiveAttrib}, {"glGetActiveUniform", (void*)glGetActiveUniform}, {"glGetAttachedShaders", (void*)glGetAttachedShaders}, {"glGetAttribLocation", (void*)glGetAttribLocation}, {"glGetBooleanv", (void*)glGetBooleanv}, {"glGetBufferParameteriv", (void*)glGetBufferParameteriv}, {"glGetError", (void*)glGetError}, {"glGetFloatv", (void*)glGetFloatv}, {"glGetFramebufferAttachmentParameteriv", (void*)glGetFramebufferAttachmentParameteriv}, {"glGetIntegerv", (void*)glGetIntegerv}, {"glGetProgramiv", (void*)glGetProgramiv}, {"glGetProgramInfoLog", (void*)glGetProgramInfoLog}, {"glGetRenderbufferParameteriv", (void*)glGetRenderbufferParameteriv}, {"glGetShaderiv", (void*)glGetShaderiv}, {"glGetShaderInfoLog", (void*)glGetShaderInfoLog}, {"glGetShaderPrecisionFormat", (void*)glGetShaderPrecisionFormat}, {"glGetShaderSource", (void*)glGetShaderSource}, {"glGetString", (void*)glGetString}, {"glGetTexParameterfv", (void*)glGetTexParameterfv}, {"glGetTexParameteriv", (void*)glGetTexParameteriv}, {"glGetUniformfv", (void*)glGetUniformfv}, {"glGetUniformiv", (void*)glGetUniformiv}, {"glGetUniformLocation", (void*)glGetUniformLocation}, {"glGetVertexAttribfv", (void*)glGetVertexAttribfv}, {"glGetVertexAttribiv", (void*)glGetVertexAttribiv}, {"glGetVertexAttribPointerv", (void*)glGetVertexAttribPointerv}, {"glHint", (void*)glHint}, {"glIsBuffer", (void*)glIsBuffer}, {"glIsEnabled", (void*)glIsEnabled}, {"glIsFramebuffer", (void*)glIsFramebuffer}, {"glIsProgram", (void*)glIsProgram}, {"glIsRenderbuffer", (void*)glIsRenderbuffer}, {"glIsShader", (void*)glIsShader}, {"glIsTexture", (void*)glIsTexture}, {"glLineWidth", (void*)glLineWidth}, {"glLinkProgram", (void*)glLinkProgram}, {"glPixelStorei", (void*)glPixelStorei}, {"glPolygonOffset", (void*)glPolygonOffset}, {"glReadPixels", (void*)glReadPixels}, {"glReleaseShaderCompiler", (void*)glReleaseShaderCompiler}, {"glRenderbufferStorage", (void*)glRenderbufferStorage}, {"glSampleCoverage", (void*)glSampleCoverage}, {"glScissor", (void*)glScissor}, {"glShaderBinary", (void*)glShaderBinary}, {"glShaderSource", (void*)glShaderSource}, {"glStencilFunc", (void*)glStencilFunc}, {"glStencilFuncSeparate", (void*)glStencilFuncSeparate}, {"glStencilMask", (void*)glStencilMask}, {"glStencilMaskSeparate", (void*)glStencilMaskSeparate}, {"glStencilOp", (void*)glStencilOp}, {"glStencilOpSeparate", (void*)glStencilOpSeparate}, {"glTexImage2D", (void*)glTexImage2D}, {"glTexParameterf", (void*)glTexParameterf}, {"glTexParameterfv", (void*)glTexParameterfv}, {"glTexParameteri", (void*)glTexParameteri}, {"glTexParameteriv", (void*)glTexParameteriv}, {"glTexSubImage2D", (void*)glTexSubImage2D}, {"glUniform1f", (void*)glUniform1f}, {"glUniform1fv", (void*)glUniform1fv}, {"glUniform1i", (void*)glUniform1i}, {"glUniform1iv", (void*)glUniform1iv}, {"glUniform2f", (void*)glUniform2f}, {"glUniform2fv", (void*)glUniform2fv}, {"glUniform2i", (void*)glUniform2i}, {"glUniform2iv", (void*)glUniform2iv}, {"glUniform3f", (void*)glUniform3f}, {"glUniform3fv", (void*)glUniform3fv}, {"glUniform3i", (void*)glUniform3i}, {"glUniform3iv", (void*)glUniform3iv}, {"glUniform4f", (void*)glUniform4f}, {"glUniform4fv", (void*)glUniform4fv}, {"glUniform4i", (void*)glUniform4i}, {"glUniform4iv", (void*)glUniform4iv}, {"glUniformMatrix2fv", (void*)glUniformMatrix2fv}, {"glUniformMatrix3fv", (void*)glUniformMatrix3fv}, {"glUniformMatrix4fv", (void*)glUniformMatrix4fv}, {"glUseProgram", (void*)glUseProgram}, {"glValidateProgram", (void*)glValidateProgram}, {"glVertexAttrib1f", (void*)glVertexAttrib1f}, {"glVertexAttrib1fv", (void*)glVertexAttrib1fv}, {"glVertexAttrib2f", (void*)glVertexAttrib2f}, {"glVertexAttrib2fv", (void*)glVertexAttrib2fv}, {"glVertexAttrib3f", (void*)glVertexAttrib3f}, {"glVertexAttrib3fv", (void*)glVertexAttrib3fv}, {"glVertexAttrib4f", (void*)glVertexAttrib4f}, {"glVertexAttrib4fv", (void*)glVertexAttrib4fv}, {"glVertexAttribPointer", (void*)glVertexAttribPointer}, {"glViewport", (void*)glViewport}, {"glEGLImageTargetTexture2DOES", (void*)glEGLImageTargetTexture2DOES}, {"glEGLImageTargetRenderbufferStorageOES", (void*)glEGLImageTargetRenderbufferStorageOES}, {"glGetProgramBinaryOES", (void*)glGetProgramBinaryOES}, {"glProgramBinaryOES", (void*)glProgramBinaryOES}, {"glMapBufferOES", (void*)glMapBufferOES}, {"glUnmapBufferOES", (void*)glUnmapBufferOES}, {"glTexImage3DOES", (void*)glTexImage3DOES}, {"glTexSubImage3DOES", (void*)glTexSubImage3DOES}, {"glCopyTexSubImage3DOES", (void*)glCopyTexSubImage3DOES}, {"glCompressedTexImage3DOES", (void*)glCompressedTexImage3DOES}, {"glCompressedTexSubImage3DOES", (void*)glCompressedTexSubImage3DOES}, {"glFramebufferTexture3DOES", (void*)glFramebufferTexture3DOES}, {"glBindVertexArrayOES", (void*)glBindVertexArrayOES}, {"glDeleteVertexArraysOES", (void*)glDeleteVertexArraysOES}, {"glGenVertexArraysOES", (void*)glGenVertexArraysOES}, {"glIsVertexArrayOES", (void*)glIsVertexArrayOES}, {"glDiscardFramebufferEXT", (void*)glDiscardFramebufferEXT}, {"glMultiDrawArraysEXT", (void*)glMultiDrawArraysEXT}, {"glMultiDrawElementsEXT", (void*)glMultiDrawElementsEXT}, {"glGetPerfMonitorGroupsAMD", (void*)glGetPerfMonitorGroupsAMD}, {"glGetPerfMonitorCountersAMD", (void*)glGetPerfMonitorCountersAMD}, {"glGetPerfMonitorGroupStringAMD", (void*)glGetPerfMonitorGroupStringAMD}, {"glGetPerfMonitorCounterStringAMD", (void*)glGetPerfMonitorCounterStringAMD}, {"glGetPerfMonitorCounterInfoAMD", (void*)glGetPerfMonitorCounterInfoAMD}, {"glGenPerfMonitorsAMD", (void*)glGenPerfMonitorsAMD}, {"glDeletePerfMonitorsAMD", (void*)glDeletePerfMonitorsAMD}, {"glSelectPerfMonitorCountersAMD", (void*)glSelectPerfMonitorCountersAMD}, {"glBeginPerfMonitorAMD", (void*)glBeginPerfMonitorAMD}, {"glEndPerfMonitorAMD", (void*)glEndPerfMonitorAMD}, {"glGetPerfMonitorCounterDataAMD", (void*)glGetPerfMonitorCounterDataAMD}, {"glRenderbufferStorageMultisampleIMG", (void*)glRenderbufferStorageMultisampleIMG}, {"glFramebufferTexture2DMultisampleIMG", (void*)glFramebufferTexture2DMultisampleIMG}, {"glDeleteFencesNV", (void*)glDeleteFencesNV}, {"glGenFencesNV", (void*)glGenFencesNV}, {"glIsFenceNV", (void*)glIsFenceNV}, {"glTestFenceNV", (void*)glTestFenceNV}, {"glGetFenceivNV", (void*)glGetFenceivNV}, {"glFinishFenceNV", (void*)glFinishFenceNV}, {"glSetFenceNV", (void*)glSetFenceNV}, {"glCoverageMaskNV", (void*)glCoverageMaskNV}, {"glCoverageOperationNV", (void*)glCoverageOperationNV}, {"glGetDriverControlsQCOM", (void*)glGetDriverControlsQCOM}, {"glGetDriverControlStringQCOM", (void*)glGetDriverControlStringQCOM}, {"glEnableDriverControlQCOM", (void*)glEnableDriverControlQCOM}, {"glDisableDriverControlQCOM", (void*)glDisableDriverControlQCOM}, {"glExtGetTexturesQCOM", (void*)glExtGetTexturesQCOM}, {"glExtGetBuffersQCOM", (void*)glExtGetBuffersQCOM}, {"glExtGetRenderbuffersQCOM", (void*)glExtGetRenderbuffersQCOM}, {"glExtGetFramebuffersQCOM", (void*)glExtGetFramebuffersQCOM}, {"glExtGetTexLevelParameterivQCOM", (void*)glExtGetTexLevelParameterivQCOM}, {"glExtTexObjectStateOverrideiQCOM", (void*)glExtTexObjectStateOverrideiQCOM}, {"glExtGetTexSubImageQCOM", (void*)glExtGetTexSubImageQCOM}, {"glExtGetBufferPointervQCOM", (void*)glExtGetBufferPointervQCOM}, {"glExtGetShadersQCOM", (void*)glExtGetShadersQCOM}, {"glExtGetProgramsQCOM", (void*)glExtGetProgramsQCOM}, {"glExtIsProgramBinaryQCOM", (void*)glExtIsProgramBinaryQCOM}, {"glExtGetProgramBinarySourceQCOM", (void*)glExtGetProgramBinarySourceQCOM}, {"glStartTilingQCOM", (void*)glStartTilingQCOM}, {"glEndTilingQCOM", (void*)glEndTilingQCOM}, }; static const int gl2_num_funcs = sizeof(gl2_funcs_by_name) / sizeof(struct _gl2_funcs_by_name); #endif
10,549
C++
.h
212
47.783019
95
0.777219
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,749
gl2_client_context.h
anbox_anbox/android/opengl/system/GLESv2_enc/gl2_client_context.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __gl2_client_context_t_h #define __gl2_client_context_t_h #include "gl2_client_proc.h" #include "gl2_types.h" struct gl2_client_context_t { glActiveTexture_client_proc_t glActiveTexture; glAttachShader_client_proc_t glAttachShader; glBindAttribLocation_client_proc_t glBindAttribLocation; glBindBuffer_client_proc_t glBindBuffer; glBindFramebuffer_client_proc_t glBindFramebuffer; glBindRenderbuffer_client_proc_t glBindRenderbuffer; glBindTexture_client_proc_t glBindTexture; glBlendColor_client_proc_t glBlendColor; glBlendEquation_client_proc_t glBlendEquation; glBlendEquationSeparate_client_proc_t glBlendEquationSeparate; glBlendFunc_client_proc_t glBlendFunc; glBlendFuncSeparate_client_proc_t glBlendFuncSeparate; glBufferData_client_proc_t glBufferData; glBufferSubData_client_proc_t glBufferSubData; glCheckFramebufferStatus_client_proc_t glCheckFramebufferStatus; glClear_client_proc_t glClear; glClearColor_client_proc_t glClearColor; glClearDepthf_client_proc_t glClearDepthf; glClearStencil_client_proc_t glClearStencil; glColorMask_client_proc_t glColorMask; glCompileShader_client_proc_t glCompileShader; glCompressedTexImage2D_client_proc_t glCompressedTexImage2D; glCompressedTexSubImage2D_client_proc_t glCompressedTexSubImage2D; glCopyTexImage2D_client_proc_t glCopyTexImage2D; glCopyTexSubImage2D_client_proc_t glCopyTexSubImage2D; glCreateProgram_client_proc_t glCreateProgram; glCreateShader_client_proc_t glCreateShader; glCullFace_client_proc_t glCullFace; glDeleteBuffers_client_proc_t glDeleteBuffers; glDeleteFramebuffers_client_proc_t glDeleteFramebuffers; glDeleteProgram_client_proc_t glDeleteProgram; glDeleteRenderbuffers_client_proc_t glDeleteRenderbuffers; glDeleteShader_client_proc_t glDeleteShader; glDeleteTextures_client_proc_t glDeleteTextures; glDepthFunc_client_proc_t glDepthFunc; glDepthMask_client_proc_t glDepthMask; glDepthRangef_client_proc_t glDepthRangef; glDetachShader_client_proc_t glDetachShader; glDisable_client_proc_t glDisable; glDisableVertexAttribArray_client_proc_t glDisableVertexAttribArray; glDrawArrays_client_proc_t glDrawArrays; glDrawElements_client_proc_t glDrawElements; glEnable_client_proc_t glEnable; glEnableVertexAttribArray_client_proc_t glEnableVertexAttribArray; glFinish_client_proc_t glFinish; glFlush_client_proc_t glFlush; glFramebufferRenderbuffer_client_proc_t glFramebufferRenderbuffer; glFramebufferTexture2D_client_proc_t glFramebufferTexture2D; glFrontFace_client_proc_t glFrontFace; glGenBuffers_client_proc_t glGenBuffers; glGenerateMipmap_client_proc_t glGenerateMipmap; glGenFramebuffers_client_proc_t glGenFramebuffers; glGenRenderbuffers_client_proc_t glGenRenderbuffers; glGenTextures_client_proc_t glGenTextures; glGetActiveAttrib_client_proc_t glGetActiveAttrib; glGetActiveUniform_client_proc_t glGetActiveUniform; glGetAttachedShaders_client_proc_t glGetAttachedShaders; glGetAttribLocation_client_proc_t glGetAttribLocation; glGetBooleanv_client_proc_t glGetBooleanv; glGetBufferParameteriv_client_proc_t glGetBufferParameteriv; glGetError_client_proc_t glGetError; glGetFloatv_client_proc_t glGetFloatv; glGetFramebufferAttachmentParameteriv_client_proc_t glGetFramebufferAttachmentParameteriv; glGetIntegerv_client_proc_t glGetIntegerv; glGetProgramiv_client_proc_t glGetProgramiv; glGetProgramInfoLog_client_proc_t glGetProgramInfoLog; glGetRenderbufferParameteriv_client_proc_t glGetRenderbufferParameteriv; glGetShaderiv_client_proc_t glGetShaderiv; glGetShaderInfoLog_client_proc_t glGetShaderInfoLog; glGetShaderPrecisionFormat_client_proc_t glGetShaderPrecisionFormat; glGetShaderSource_client_proc_t glGetShaderSource; glGetString_client_proc_t glGetString; glGetTexParameterfv_client_proc_t glGetTexParameterfv; glGetTexParameteriv_client_proc_t glGetTexParameteriv; glGetUniformfv_client_proc_t glGetUniformfv; glGetUniformiv_client_proc_t glGetUniformiv; glGetUniformLocation_client_proc_t glGetUniformLocation; glGetVertexAttribfv_client_proc_t glGetVertexAttribfv; glGetVertexAttribiv_client_proc_t glGetVertexAttribiv; glGetVertexAttribPointerv_client_proc_t glGetVertexAttribPointerv; glHint_client_proc_t glHint; glIsBuffer_client_proc_t glIsBuffer; glIsEnabled_client_proc_t glIsEnabled; glIsFramebuffer_client_proc_t glIsFramebuffer; glIsProgram_client_proc_t glIsProgram; glIsRenderbuffer_client_proc_t glIsRenderbuffer; glIsShader_client_proc_t glIsShader; glIsTexture_client_proc_t glIsTexture; glLineWidth_client_proc_t glLineWidth; glLinkProgram_client_proc_t glLinkProgram; glPixelStorei_client_proc_t glPixelStorei; glPolygonOffset_client_proc_t glPolygonOffset; glReadPixels_client_proc_t glReadPixels; glReleaseShaderCompiler_client_proc_t glReleaseShaderCompiler; glRenderbufferStorage_client_proc_t glRenderbufferStorage; glSampleCoverage_client_proc_t glSampleCoverage; glScissor_client_proc_t glScissor; glShaderBinary_client_proc_t glShaderBinary; glShaderSource_client_proc_t glShaderSource; glStencilFunc_client_proc_t glStencilFunc; glStencilFuncSeparate_client_proc_t glStencilFuncSeparate; glStencilMask_client_proc_t glStencilMask; glStencilMaskSeparate_client_proc_t glStencilMaskSeparate; glStencilOp_client_proc_t glStencilOp; glStencilOpSeparate_client_proc_t glStencilOpSeparate; glTexImage2D_client_proc_t glTexImage2D; glTexParameterf_client_proc_t glTexParameterf; glTexParameterfv_client_proc_t glTexParameterfv; glTexParameteri_client_proc_t glTexParameteri; glTexParameteriv_client_proc_t glTexParameteriv; glTexSubImage2D_client_proc_t glTexSubImage2D; glUniform1f_client_proc_t glUniform1f; glUniform1fv_client_proc_t glUniform1fv; glUniform1i_client_proc_t glUniform1i; glUniform1iv_client_proc_t glUniform1iv; glUniform2f_client_proc_t glUniform2f; glUniform2fv_client_proc_t glUniform2fv; glUniform2i_client_proc_t glUniform2i; glUniform2iv_client_proc_t glUniform2iv; glUniform3f_client_proc_t glUniform3f; glUniform3fv_client_proc_t glUniform3fv; glUniform3i_client_proc_t glUniform3i; glUniform3iv_client_proc_t glUniform3iv; glUniform4f_client_proc_t glUniform4f; glUniform4fv_client_proc_t glUniform4fv; glUniform4i_client_proc_t glUniform4i; glUniform4iv_client_proc_t glUniform4iv; glUniformMatrix2fv_client_proc_t glUniformMatrix2fv; glUniformMatrix3fv_client_proc_t glUniformMatrix3fv; glUniformMatrix4fv_client_proc_t glUniformMatrix4fv; glUseProgram_client_proc_t glUseProgram; glValidateProgram_client_proc_t glValidateProgram; glVertexAttrib1f_client_proc_t glVertexAttrib1f; glVertexAttrib1fv_client_proc_t glVertexAttrib1fv; glVertexAttrib2f_client_proc_t glVertexAttrib2f; glVertexAttrib2fv_client_proc_t glVertexAttrib2fv; glVertexAttrib3f_client_proc_t glVertexAttrib3f; glVertexAttrib3fv_client_proc_t glVertexAttrib3fv; glVertexAttrib4f_client_proc_t glVertexAttrib4f; glVertexAttrib4fv_client_proc_t glVertexAttrib4fv; glVertexAttribPointer_client_proc_t glVertexAttribPointer; glViewport_client_proc_t glViewport; glEGLImageTargetTexture2DOES_client_proc_t glEGLImageTargetTexture2DOES; glEGLImageTargetRenderbufferStorageOES_client_proc_t glEGLImageTargetRenderbufferStorageOES; glGetProgramBinaryOES_client_proc_t glGetProgramBinaryOES; glProgramBinaryOES_client_proc_t glProgramBinaryOES; glMapBufferOES_client_proc_t glMapBufferOES; glUnmapBufferOES_client_proc_t glUnmapBufferOES; glTexImage3DOES_client_proc_t glTexImage3DOES; glTexSubImage3DOES_client_proc_t glTexSubImage3DOES; glCopyTexSubImage3DOES_client_proc_t glCopyTexSubImage3DOES; glCompressedTexImage3DOES_client_proc_t glCompressedTexImage3DOES; glCompressedTexSubImage3DOES_client_proc_t glCompressedTexSubImage3DOES; glFramebufferTexture3DOES_client_proc_t glFramebufferTexture3DOES; glBindVertexArrayOES_client_proc_t glBindVertexArrayOES; glDeleteVertexArraysOES_client_proc_t glDeleteVertexArraysOES; glGenVertexArraysOES_client_proc_t glGenVertexArraysOES; glIsVertexArrayOES_client_proc_t glIsVertexArrayOES; glDiscardFramebufferEXT_client_proc_t glDiscardFramebufferEXT; glMultiDrawArraysEXT_client_proc_t glMultiDrawArraysEXT; glMultiDrawElementsEXT_client_proc_t glMultiDrawElementsEXT; glGetPerfMonitorGroupsAMD_client_proc_t glGetPerfMonitorGroupsAMD; glGetPerfMonitorCountersAMD_client_proc_t glGetPerfMonitorCountersAMD; glGetPerfMonitorGroupStringAMD_client_proc_t glGetPerfMonitorGroupStringAMD; glGetPerfMonitorCounterStringAMD_client_proc_t glGetPerfMonitorCounterStringAMD; glGetPerfMonitorCounterInfoAMD_client_proc_t glGetPerfMonitorCounterInfoAMD; glGenPerfMonitorsAMD_client_proc_t glGenPerfMonitorsAMD; glDeletePerfMonitorsAMD_client_proc_t glDeletePerfMonitorsAMD; glSelectPerfMonitorCountersAMD_client_proc_t glSelectPerfMonitorCountersAMD; glBeginPerfMonitorAMD_client_proc_t glBeginPerfMonitorAMD; glEndPerfMonitorAMD_client_proc_t glEndPerfMonitorAMD; glGetPerfMonitorCounterDataAMD_client_proc_t glGetPerfMonitorCounterDataAMD; glRenderbufferStorageMultisampleIMG_client_proc_t glRenderbufferStorageMultisampleIMG; glFramebufferTexture2DMultisampleIMG_client_proc_t glFramebufferTexture2DMultisampleIMG; glDeleteFencesNV_client_proc_t glDeleteFencesNV; glGenFencesNV_client_proc_t glGenFencesNV; glIsFenceNV_client_proc_t glIsFenceNV; glTestFenceNV_client_proc_t glTestFenceNV; glGetFenceivNV_client_proc_t glGetFenceivNV; glFinishFenceNV_client_proc_t glFinishFenceNV; glSetFenceNV_client_proc_t glSetFenceNV; glCoverageMaskNV_client_proc_t glCoverageMaskNV; glCoverageOperationNV_client_proc_t glCoverageOperationNV; glGetDriverControlsQCOM_client_proc_t glGetDriverControlsQCOM; glGetDriverControlStringQCOM_client_proc_t glGetDriverControlStringQCOM; glEnableDriverControlQCOM_client_proc_t glEnableDriverControlQCOM; glDisableDriverControlQCOM_client_proc_t glDisableDriverControlQCOM; glExtGetTexturesQCOM_client_proc_t glExtGetTexturesQCOM; glExtGetBuffersQCOM_client_proc_t glExtGetBuffersQCOM; glExtGetRenderbuffersQCOM_client_proc_t glExtGetRenderbuffersQCOM; glExtGetFramebuffersQCOM_client_proc_t glExtGetFramebuffersQCOM; glExtGetTexLevelParameterivQCOM_client_proc_t glExtGetTexLevelParameterivQCOM; glExtTexObjectStateOverrideiQCOM_client_proc_t glExtTexObjectStateOverrideiQCOM; glExtGetTexSubImageQCOM_client_proc_t glExtGetTexSubImageQCOM; glExtGetBufferPointervQCOM_client_proc_t glExtGetBufferPointervQCOM; glExtGetShadersQCOM_client_proc_t glExtGetShadersQCOM; glExtGetProgramsQCOM_client_proc_t glExtGetProgramsQCOM; glExtIsProgramBinaryQCOM_client_proc_t glExtIsProgramBinaryQCOM; glExtGetProgramBinarySourceQCOM_client_proc_t glExtGetProgramBinarySourceQCOM; glStartTilingQCOM_client_proc_t glStartTilingQCOM; glEndTilingQCOM_client_proc_t glEndTilingQCOM; glVertexAttribPointerData_client_proc_t glVertexAttribPointerData; glVertexAttribPointerOffset_client_proc_t glVertexAttribPointerOffset; glDrawElementsOffset_client_proc_t glDrawElementsOffset; glDrawElementsData_client_proc_t glDrawElementsData; glGetCompressedTextureFormats_client_proc_t glGetCompressedTextureFormats; glShaderString_client_proc_t glShaderString; glFinishRoundTrip_client_proc_t glFinishRoundTrip; virtual ~gl2_client_context_t() {} typedef gl2_client_context_t *CONTEXT_ACCESSOR_TYPE(void); static void setContextAccessor(CONTEXT_ACCESSOR_TYPE *f); int initDispatchByName( void *(*getProc)(const char *name, void *userData), void *userData); virtual void setError(unsigned int error){ (void)error; }; virtual unsigned int getError(){ return 0; }; }; #endif
11,627
C++
.h
223
50.143498
93
0.877863
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,751
gl2_enc.h
anbox_anbox/android/opengl/system/GLESv2_enc/gl2_enc.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef GUARD_gl2_encoder_context_t #define GUARD_gl2_encoder_context_t #include "IOStream.h" #include "ChecksumCalculator.h" #include "gl2_client_context.h" #include <string.h> #include "glUtils.h" #include "GL2EncoderUtils.h" struct gl2_encoder_context_t : public gl2_client_context_t { IOStream *m_stream; ChecksumCalculator *m_checksumCalculator; gl2_encoder_context_t(IOStream *stream, ChecksumCalculator *checksumCalculator); }; #endif // GUARD_gl2_encoder_context_t
544
C++
.h
16
32.375
81
0.786948
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,752
gl_opcodes.h
anbox_anbox/android/opengl/system/GLESv1_enc/gl_opcodes.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __GUARD_gl_opcodes_h_ #define __GUARD_gl_opcodes_h_ #define OP_glAlphaFunc 1024 #define OP_glClearColor 1025 #define OP_glClearDepthf 1026 #define OP_glClipPlanef 1027 #define OP_glColor4f 1028 #define OP_glDepthRangef 1029 #define OP_glFogf 1030 #define OP_glFogfv 1031 #define OP_glFrustumf 1032 #define OP_glGetClipPlanef 1033 #define OP_glGetFloatv 1034 #define OP_glGetLightfv 1035 #define OP_glGetMaterialfv 1036 #define OP_glGetTexEnvfv 1037 #define OP_glGetTexParameterfv 1038 #define OP_glLightModelf 1039 #define OP_glLightModelfv 1040 #define OP_glLightf 1041 #define OP_glLightfv 1042 #define OP_glLineWidth 1043 #define OP_glLoadMatrixf 1044 #define OP_glMaterialf 1045 #define OP_glMaterialfv 1046 #define OP_glMultMatrixf 1047 #define OP_glMultiTexCoord4f 1048 #define OP_glNormal3f 1049 #define OP_glOrthof 1050 #define OP_glPointParameterf 1051 #define OP_glPointParameterfv 1052 #define OP_glPointSize 1053 #define OP_glPolygonOffset 1054 #define OP_glRotatef 1055 #define OP_glScalef 1056 #define OP_glTexEnvf 1057 #define OP_glTexEnvfv 1058 #define OP_glTexParameterf 1059 #define OP_glTexParameterfv 1060 #define OP_glTranslatef 1061 #define OP_glActiveTexture 1062 #define OP_glAlphaFuncx 1063 #define OP_glBindBuffer 1064 #define OP_glBindTexture 1065 #define OP_glBlendFunc 1066 #define OP_glBufferData 1067 #define OP_glBufferSubData 1068 #define OP_glClear 1069 #define OP_glClearColorx 1070 #define OP_glClearDepthx 1071 #define OP_glClearStencil 1072 #define OP_glClientActiveTexture 1073 #define OP_glColor4ub 1074 #define OP_glColor4x 1075 #define OP_glColorMask 1076 #define OP_glColorPointer 1077 #define OP_glCompressedTexImage2D 1078 #define OP_glCompressedTexSubImage2D 1079 #define OP_glCopyTexImage2D 1080 #define OP_glCopyTexSubImage2D 1081 #define OP_glCullFace 1082 #define OP_glDeleteBuffers 1083 #define OP_glDeleteTextures 1084 #define OP_glDepthFunc 1085 #define OP_glDepthMask 1086 #define OP_glDepthRangex 1087 #define OP_glDisable 1088 #define OP_glDisableClientState 1089 #define OP_glDrawArrays 1090 #define OP_glDrawElements 1091 #define OP_glEnable 1092 #define OP_glEnableClientState 1093 #define OP_glFinish 1094 #define OP_glFlush 1095 #define OP_glFogx 1096 #define OP_glFogxv 1097 #define OP_glFrontFace 1098 #define OP_glFrustumx 1099 #define OP_glGetBooleanv 1100 #define OP_glGetBufferParameteriv 1101 #define OP_glClipPlanex 1102 #define OP_glGenBuffers 1103 #define OP_glGenTextures 1104 #define OP_glGetError 1105 #define OP_glGetFixedv 1106 #define OP_glGetIntegerv 1107 #define OP_glGetLightxv 1108 #define OP_glGetMaterialxv 1109 #define OP_glGetPointerv 1110 #define OP_glGetString 1111 #define OP_glGetTexEnviv 1112 #define OP_glGetTexEnvxv 1113 #define OP_glGetTexParameteriv 1114 #define OP_glGetTexParameterxv 1115 #define OP_glHint 1116 #define OP_glIsBuffer 1117 #define OP_glIsEnabled 1118 #define OP_glIsTexture 1119 #define OP_glLightModelx 1120 #define OP_glLightModelxv 1121 #define OP_glLightx 1122 #define OP_glLightxv 1123 #define OP_glLineWidthx 1124 #define OP_glLoadIdentity 1125 #define OP_glLoadMatrixx 1126 #define OP_glLogicOp 1127 #define OP_glMaterialx 1128 #define OP_glMaterialxv 1129 #define OP_glMatrixMode 1130 #define OP_glMultMatrixx 1131 #define OP_glMultiTexCoord4x 1132 #define OP_glNormal3x 1133 #define OP_glNormalPointer 1134 #define OP_glOrthox 1135 #define OP_glPixelStorei 1136 #define OP_glPointParameterx 1137 #define OP_glPointParameterxv 1138 #define OP_glPointSizex 1139 #define OP_glPolygonOffsetx 1140 #define OP_glPopMatrix 1141 #define OP_glPushMatrix 1142 #define OP_glReadPixels 1143 #define OP_glRotatex 1144 #define OP_glSampleCoverage 1145 #define OP_glSampleCoveragex 1146 #define OP_glScalex 1147 #define OP_glScissor 1148 #define OP_glShadeModel 1149 #define OP_glStencilFunc 1150 #define OP_glStencilMask 1151 #define OP_glStencilOp 1152 #define OP_glTexCoordPointer 1153 #define OP_glTexEnvi 1154 #define OP_glTexEnvx 1155 #define OP_glTexEnviv 1156 #define OP_glTexEnvxv 1157 #define OP_glTexImage2D 1158 #define OP_glTexParameteri 1159 #define OP_glTexParameterx 1160 #define OP_glTexParameteriv 1161 #define OP_glTexParameterxv 1162 #define OP_glTexSubImage2D 1163 #define OP_glTranslatex 1164 #define OP_glVertexPointer 1165 #define OP_glViewport 1166 #define OP_glPointSizePointerOES 1167 #define OP_glVertexPointerOffset 1168 #define OP_glColorPointerOffset 1169 #define OP_glNormalPointerOffset 1170 #define OP_glPointSizePointerOffset 1171 #define OP_glTexCoordPointerOffset 1172 #define OP_glWeightPointerOffset 1173 #define OP_glMatrixIndexPointerOffset 1174 #define OP_glVertexPointerData 1175 #define OP_glColorPointerData 1176 #define OP_glNormalPointerData 1177 #define OP_glTexCoordPointerData 1178 #define OP_glPointSizePointerData 1179 #define OP_glWeightPointerData 1180 #define OP_glMatrixIndexPointerData 1181 #define OP_glDrawElementsOffset 1182 #define OP_glDrawElementsData 1183 #define OP_glGetCompressedTextureFormats 1184 #define OP_glFinishRoundTrip 1185 #define OP_glBlendEquationSeparateOES 1186 #define OP_glBlendFuncSeparateOES 1187 #define OP_glBlendEquationOES 1188 #define OP_glDrawTexsOES 1189 #define OP_glDrawTexiOES 1190 #define OP_glDrawTexxOES 1191 #define OP_glDrawTexsvOES 1192 #define OP_glDrawTexivOES 1193 #define OP_glDrawTexxvOES 1194 #define OP_glDrawTexfOES 1195 #define OP_glDrawTexfvOES 1196 #define OP_glEGLImageTargetTexture2DOES 1197 #define OP_glEGLImageTargetRenderbufferStorageOES 1198 #define OP_glAlphaFuncxOES 1199 #define OP_glClearColorxOES 1200 #define OP_glClearDepthxOES 1201 #define OP_glClipPlanexOES 1202 #define OP_glClipPlanexIMG 1203 #define OP_glColor4xOES 1204 #define OP_glDepthRangexOES 1205 #define OP_glFogxOES 1206 #define OP_glFogxvOES 1207 #define OP_glFrustumxOES 1208 #define OP_glGetClipPlanexOES 1209 #define OP_glGetClipPlanex 1210 #define OP_glGetFixedvOES 1211 #define OP_glGetLightxvOES 1212 #define OP_glGetMaterialxvOES 1213 #define OP_glGetTexEnvxvOES 1214 #define OP_glGetTexParameterxvOES 1215 #define OP_glLightModelxOES 1216 #define OP_glLightModelxvOES 1217 #define OP_glLightxOES 1218 #define OP_glLightxvOES 1219 #define OP_glLineWidthxOES 1220 #define OP_glLoadMatrixxOES 1221 #define OP_glMaterialxOES 1222 #define OP_glMaterialxvOES 1223 #define OP_glMultMatrixxOES 1224 #define OP_glMultiTexCoord4xOES 1225 #define OP_glNormal3xOES 1226 #define OP_glOrthoxOES 1227 #define OP_glPointParameterxOES 1228 #define OP_glPointParameterxvOES 1229 #define OP_glPointSizexOES 1230 #define OP_glPolygonOffsetxOES 1231 #define OP_glRotatexOES 1232 #define OP_glSampleCoveragexOES 1233 #define OP_glScalexOES 1234 #define OP_glTexEnvxOES 1235 #define OP_glTexEnvxvOES 1236 #define OP_glTexParameterxOES 1237 #define OP_glTexParameterxvOES 1238 #define OP_glTranslatexOES 1239 #define OP_glIsRenderbufferOES 1240 #define OP_glBindRenderbufferOES 1241 #define OP_glDeleteRenderbuffersOES 1242 #define OP_glGenRenderbuffersOES 1243 #define OP_glRenderbufferStorageOES 1244 #define OP_glGetRenderbufferParameterivOES 1245 #define OP_glIsFramebufferOES 1246 #define OP_glBindFramebufferOES 1247 #define OP_glDeleteFramebuffersOES 1248 #define OP_glGenFramebuffersOES 1249 #define OP_glCheckFramebufferStatusOES 1250 #define OP_glFramebufferRenderbufferOES 1251 #define OP_glFramebufferTexture2DOES 1252 #define OP_glGetFramebufferAttachmentParameterivOES 1253 #define OP_glGenerateMipmapOES 1254 #define OP_glMapBufferOES 1255 #define OP_glUnmapBufferOES 1256 #define OP_glGetBufferPointervOES 1257 #define OP_glCurrentPaletteMatrixOES 1258 #define OP_glLoadPaletteFromModelViewMatrixOES 1259 #define OP_glMatrixIndexPointerOES 1260 #define OP_glWeightPointerOES 1261 #define OP_glQueryMatrixxOES 1262 #define OP_glDepthRangefOES 1263 #define OP_glFrustumfOES 1264 #define OP_glOrthofOES 1265 #define OP_glClipPlanefOES 1266 #define OP_glClipPlanefIMG 1267 #define OP_glGetClipPlanefOES 1268 #define OP_glClearDepthfOES 1269 #define OP_glTexGenfOES 1270 #define OP_glTexGenfvOES 1271 #define OP_glTexGeniOES 1272 #define OP_glTexGenivOES 1273 #define OP_glTexGenxOES 1274 #define OP_glTexGenxvOES 1275 #define OP_glGetTexGenfvOES 1276 #define OP_glGetTexGenivOES 1277 #define OP_glGetTexGenxvOES 1278 #define OP_glBindVertexArrayOES 1279 #define OP_glDeleteVertexArraysOES 1280 #define OP_glGenVertexArraysOES 1281 #define OP_glIsVertexArrayOES 1282 #define OP_glDiscardFramebufferEXT 1283 #define OP_glMultiDrawArraysEXT 1284 #define OP_glMultiDrawElementsEXT 1285 #define OP_glMultiDrawArraysSUN 1286 #define OP_glMultiDrawElementsSUN 1287 #define OP_glRenderbufferStorageMultisampleIMG 1288 #define OP_glFramebufferTexture2DMultisampleIMG 1289 #define OP_glDeleteFencesNV 1290 #define OP_glGenFencesNV 1291 #define OP_glIsFenceNV 1292 #define OP_glTestFenceNV 1293 #define OP_glGetFenceivNV 1294 #define OP_glFinishFenceNV 1295 #define OP_glSetFenceNV 1296 #define OP_glGetDriverControlsQCOM 1297 #define OP_glGetDriverControlStringQCOM 1298 #define OP_glEnableDriverControlQCOM 1299 #define OP_glDisableDriverControlQCOM 1300 #define OP_glExtGetTexturesQCOM 1301 #define OP_glExtGetBuffersQCOM 1302 #define OP_glExtGetRenderbuffersQCOM 1303 #define OP_glExtGetFramebuffersQCOM 1304 #define OP_glExtGetTexLevelParameterivQCOM 1305 #define OP_glExtTexObjectStateOverrideiQCOM 1306 #define OP_glExtGetTexSubImageQCOM 1307 #define OP_glExtGetBufferPointervQCOM 1308 #define OP_glExtGetShadersQCOM 1309 #define OP_glExtGetProgramsQCOM 1310 #define OP_glExtIsProgramBinaryQCOM 1311 #define OP_glExtGetProgramBinarySourceQCOM 1312 #define OP_glStartTilingQCOM 1313 #define OP_glEndTilingQCOM 1314 #define OP_last 1315 #endif
11,162
C++
.h
297
36.572391
61
0.754741
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,755
gl_types.h
anbox_anbox/android/opengl/system/GLESv1_enc/gl_types.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __GL_TYPES__H #define __GL_TYPES__H #include "gl_base_types.h" #endif
680
C++
.h
19
34.736842
74
0.771212
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,756
gl_client_proc.h
anbox_anbox/android/opengl/system/GLESv1_enc/gl_client_proc.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __gl_client_proc_t_h #define __gl_client_proc_t_h #include "gl_types.h" #ifndef gl_APIENTRY #define gl_APIENTRY #endif typedef void (gl_APIENTRY *glAlphaFunc_client_proc_t) (void * ctx, GLenum, GLclampf); typedef void (gl_APIENTRY *glClearColor_client_proc_t) (void * ctx, GLclampf, GLclampf, GLclampf, GLclampf); typedef void (gl_APIENTRY *glClearDepthf_client_proc_t) (void * ctx, GLclampf); typedef void (gl_APIENTRY *glClipPlanef_client_proc_t) (void * ctx, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glColor4f_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glDepthRangef_client_proc_t) (void * ctx, GLclampf, GLclampf); typedef void (gl_APIENTRY *glFogf_client_proc_t) (void * ctx, GLenum, GLfloat); typedef void (gl_APIENTRY *glFogfv_client_proc_t) (void * ctx, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glFrustumf_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glGetClipPlanef_client_proc_t) (void * ctx, GLenum, GLfloat*); typedef void (gl_APIENTRY *glGetFloatv_client_proc_t) (void * ctx, GLenum, GLfloat*); typedef void (gl_APIENTRY *glGetLightfv_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat*); typedef void (gl_APIENTRY *glGetMaterialfv_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat*); typedef void (gl_APIENTRY *glGetTexEnvfv_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat*); typedef void (gl_APIENTRY *glGetTexParameterfv_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat*); typedef void (gl_APIENTRY *glLightModelf_client_proc_t) (void * ctx, GLenum, GLfloat); typedef void (gl_APIENTRY *glLightModelfv_client_proc_t) (void * ctx, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glLightf_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat); typedef void (gl_APIENTRY *glLightfv_client_proc_t) (void * ctx, GLenum, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glLineWidth_client_proc_t) (void * ctx, GLfloat); typedef void (gl_APIENTRY *glLoadMatrixf_client_proc_t) (void * ctx, const GLfloat*); typedef void (gl_APIENTRY *glMaterialf_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat); typedef void (gl_APIENTRY *glMaterialfv_client_proc_t) (void * ctx, GLenum, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glMultMatrixf_client_proc_t) (void * ctx, const GLfloat*); typedef void (gl_APIENTRY *glMultiTexCoord4f_client_proc_t) (void * ctx, GLenum, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glNormal3f_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glOrthof_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glPointParameterf_client_proc_t) (void * ctx, GLenum, GLfloat); typedef void (gl_APIENTRY *glPointParameterfv_client_proc_t) (void * ctx, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glPointSize_client_proc_t) (void * ctx, GLfloat); typedef void (gl_APIENTRY *glPolygonOffset_client_proc_t) (void * ctx, GLfloat, GLfloat); typedef void (gl_APIENTRY *glRotatef_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glScalef_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glTexEnvf_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat); typedef void (gl_APIENTRY *glTexEnvfv_client_proc_t) (void * ctx, GLenum, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glTexParameterf_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat); typedef void (gl_APIENTRY *glTexParameterfv_client_proc_t) (void * ctx, GLenum, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glTranslatef_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glActiveTexture_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glAlphaFuncx_client_proc_t) (void * ctx, GLenum, GLclampx); typedef void (gl_APIENTRY *glBindBuffer_client_proc_t) (void * ctx, GLenum, GLuint); typedef void (gl_APIENTRY *glBindTexture_client_proc_t) (void * ctx, GLenum, GLuint); typedef void (gl_APIENTRY *glBlendFunc_client_proc_t) (void * ctx, GLenum, GLenum); typedef void (gl_APIENTRY *glBufferData_client_proc_t) (void * ctx, GLenum, GLsizeiptr, const GLvoid*, GLenum); typedef void (gl_APIENTRY *glBufferSubData_client_proc_t) (void * ctx, GLenum, GLintptr, GLsizeiptr, const GLvoid*); typedef void (gl_APIENTRY *glClear_client_proc_t) (void * ctx, GLbitfield); typedef void (gl_APIENTRY *glClearColorx_client_proc_t) (void * ctx, GLclampx, GLclampx, GLclampx, GLclampx); typedef void (gl_APIENTRY *glClearDepthx_client_proc_t) (void * ctx, GLclampx); typedef void (gl_APIENTRY *glClearStencil_client_proc_t) (void * ctx, GLint); typedef void (gl_APIENTRY *glClientActiveTexture_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glColor4ub_client_proc_t) (void * ctx, GLubyte, GLubyte, GLubyte, GLubyte); typedef void (gl_APIENTRY *glColor4x_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glColorMask_client_proc_t) (void * ctx, GLboolean, GLboolean, GLboolean, GLboolean); typedef void (gl_APIENTRY *glColorPointer_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, const GLvoid*); typedef void (gl_APIENTRY *glCompressedTexImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*); typedef void (gl_APIENTRY *glCompressedTexSubImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*); typedef void (gl_APIENTRY *glCopyTexImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); typedef void (gl_APIENTRY *glCopyTexSubImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); typedef void (gl_APIENTRY *glCullFace_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glDeleteBuffers_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl_APIENTRY *glDeleteTextures_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl_APIENTRY *glDepthFunc_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glDepthMask_client_proc_t) (void * ctx, GLboolean); typedef void (gl_APIENTRY *glDepthRangex_client_proc_t) (void * ctx, GLclampx, GLclampx); typedef void (gl_APIENTRY *glDisable_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glDisableClientState_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glDrawArrays_client_proc_t) (void * ctx, GLenum, GLint, GLsizei); typedef void (gl_APIENTRY *glDrawElements_client_proc_t) (void * ctx, GLenum, GLsizei, GLenum, const GLvoid*); typedef void (gl_APIENTRY *glEnable_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glEnableClientState_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glFinish_client_proc_t) (void * ctx); typedef void (gl_APIENTRY *glFlush_client_proc_t) (void * ctx); typedef void (gl_APIENTRY *glFogx_client_proc_t) (void * ctx, GLenum, GLfixed); typedef void (gl_APIENTRY *glFogxv_client_proc_t) (void * ctx, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glFrontFace_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glFrustumx_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glGetBooleanv_client_proc_t) (void * ctx, GLenum, GLboolean*); typedef void (gl_APIENTRY *glGetBufferParameteriv_client_proc_t) (void * ctx, GLenum, GLenum, GLint*); typedef void (gl_APIENTRY *glClipPlanex_client_proc_t) (void * ctx, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glGenBuffers_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef void (gl_APIENTRY *glGenTextures_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef GLenum (gl_APIENTRY *glGetError_client_proc_t) (void * ctx); typedef void (gl_APIENTRY *glGetFixedv_client_proc_t) (void * ctx, GLenum, GLfixed*); typedef void (gl_APIENTRY *glGetIntegerv_client_proc_t) (void * ctx, GLenum, GLint*); typedef void (gl_APIENTRY *glGetLightxv_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed*); typedef void (gl_APIENTRY *glGetMaterialxv_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed*); typedef void (gl_APIENTRY *glGetPointerv_client_proc_t) (void * ctx, GLenum, GLvoid**); typedef const GLubyte* (gl_APIENTRY *glGetString_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glGetTexEnviv_client_proc_t) (void * ctx, GLenum, GLenum, GLint*); typedef void (gl_APIENTRY *glGetTexEnvxv_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed*); typedef void (gl_APIENTRY *glGetTexParameteriv_client_proc_t) (void * ctx, GLenum, GLenum, GLint*); typedef void (gl_APIENTRY *glGetTexParameterxv_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed*); typedef void (gl_APIENTRY *glHint_client_proc_t) (void * ctx, GLenum, GLenum); typedef GLboolean (gl_APIENTRY *glIsBuffer_client_proc_t) (void * ctx, GLuint); typedef GLboolean (gl_APIENTRY *glIsEnabled_client_proc_t) (void * ctx, GLenum); typedef GLboolean (gl_APIENTRY *glIsTexture_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glLightModelx_client_proc_t) (void * ctx, GLenum, GLfixed); typedef void (gl_APIENTRY *glLightModelxv_client_proc_t) (void * ctx, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glLightx_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed); typedef void (gl_APIENTRY *glLightxv_client_proc_t) (void * ctx, GLenum, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glLineWidthx_client_proc_t) (void * ctx, GLfixed); typedef void (gl_APIENTRY *glLoadIdentity_client_proc_t) (void * ctx); typedef void (gl_APIENTRY *glLoadMatrixx_client_proc_t) (void * ctx, const GLfixed*); typedef void (gl_APIENTRY *glLogicOp_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glMaterialx_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed); typedef void (gl_APIENTRY *glMaterialxv_client_proc_t) (void * ctx, GLenum, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glMatrixMode_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glMultMatrixx_client_proc_t) (void * ctx, const GLfixed*); typedef void (gl_APIENTRY *glMultiTexCoord4x_client_proc_t) (void * ctx, GLenum, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glNormal3x_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glNormalPointer_client_proc_t) (void * ctx, GLenum, GLsizei, const GLvoid*); typedef void (gl_APIENTRY *glOrthox_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glPixelStorei_client_proc_t) (void * ctx, GLenum, GLint); typedef void (gl_APIENTRY *glPointParameterx_client_proc_t) (void * ctx, GLenum, GLfixed); typedef void (gl_APIENTRY *glPointParameterxv_client_proc_t) (void * ctx, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glPointSizex_client_proc_t) (void * ctx, GLfixed); typedef void (gl_APIENTRY *glPolygonOffsetx_client_proc_t) (void * ctx, GLfixed, GLfixed); typedef void (gl_APIENTRY *glPopMatrix_client_proc_t) (void * ctx); typedef void (gl_APIENTRY *glPushMatrix_client_proc_t) (void * ctx); typedef void (gl_APIENTRY *glReadPixels_client_proc_t) (void * ctx, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*); typedef void (gl_APIENTRY *glRotatex_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glSampleCoverage_client_proc_t) (void * ctx, GLclampf, GLboolean); typedef void (gl_APIENTRY *glSampleCoveragex_client_proc_t) (void * ctx, GLclampx, GLboolean); typedef void (gl_APIENTRY *glScalex_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glScissor_client_proc_t) (void * ctx, GLint, GLint, GLsizei, GLsizei); typedef void (gl_APIENTRY *glShadeModel_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glStencilFunc_client_proc_t) (void * ctx, GLenum, GLint, GLuint); typedef void (gl_APIENTRY *glStencilMask_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glStencilOp_client_proc_t) (void * ctx, GLenum, GLenum, GLenum); typedef void (gl_APIENTRY *glTexCoordPointer_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, const GLvoid*); typedef void (gl_APIENTRY *glTexEnvi_client_proc_t) (void * ctx, GLenum, GLenum, GLint); typedef void (gl_APIENTRY *glTexEnvx_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed); typedef void (gl_APIENTRY *glTexEnviv_client_proc_t) (void * ctx, GLenum, GLenum, const GLint*); typedef void (gl_APIENTRY *glTexEnvxv_client_proc_t) (void * ctx, GLenum, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glTexImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*); typedef void (gl_APIENTRY *glTexParameteri_client_proc_t) (void * ctx, GLenum, GLenum, GLint); typedef void (gl_APIENTRY *glTexParameterx_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed); typedef void (gl_APIENTRY *glTexParameteriv_client_proc_t) (void * ctx, GLenum, GLenum, const GLint*); typedef void (gl_APIENTRY *glTexParameterxv_client_proc_t) (void * ctx, GLenum, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glTexSubImage2D_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid*); typedef void (gl_APIENTRY *glTranslatex_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glVertexPointer_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, const GLvoid*); typedef void (gl_APIENTRY *glViewport_client_proc_t) (void * ctx, GLint, GLint, GLsizei, GLsizei); typedef void (gl_APIENTRY *glPointSizePointerOES_client_proc_t) (void * ctx, GLenum, GLsizei, const GLvoid*); typedef void (gl_APIENTRY *glVertexPointerOffset_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, GLuint); typedef void (gl_APIENTRY *glColorPointerOffset_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, GLuint); typedef void (gl_APIENTRY *glNormalPointerOffset_client_proc_t) (void * ctx, GLenum, GLsizei, GLuint); typedef void (gl_APIENTRY *glPointSizePointerOffset_client_proc_t) (void * ctx, GLenum, GLsizei, GLuint); typedef void (gl_APIENTRY *glTexCoordPointerOffset_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, GLuint); typedef void (gl_APIENTRY *glWeightPointerOffset_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, GLuint); typedef void (gl_APIENTRY *glMatrixIndexPointerOffset_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, GLuint); typedef void (gl_APIENTRY *glVertexPointerData_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, void*, GLuint); typedef void (gl_APIENTRY *glColorPointerData_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, void*, GLuint); typedef void (gl_APIENTRY *glNormalPointerData_client_proc_t) (void * ctx, GLenum, GLsizei, void*, GLuint); typedef void (gl_APIENTRY *glTexCoordPointerData_client_proc_t) (void * ctx, GLint, GLint, GLenum, GLsizei, void*, GLuint); typedef void (gl_APIENTRY *glPointSizePointerData_client_proc_t) (void * ctx, GLenum, GLsizei, void*, GLuint); typedef void (gl_APIENTRY *glWeightPointerData_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, void*, GLuint); typedef void (gl_APIENTRY *glMatrixIndexPointerData_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, void*, GLuint); typedef void (gl_APIENTRY *glDrawElementsOffset_client_proc_t) (void * ctx, GLenum, GLsizei, GLenum, GLuint); typedef void (gl_APIENTRY *glDrawElementsData_client_proc_t) (void * ctx, GLenum, GLsizei, GLenum, void*, GLuint); typedef void (gl_APIENTRY *glGetCompressedTextureFormats_client_proc_t) (void * ctx, int, GLint*); typedef int (gl_APIENTRY *glFinishRoundTrip_client_proc_t) (void * ctx); typedef void (gl_APIENTRY *glBlendEquationSeparateOES_client_proc_t) (void * ctx, GLenum, GLenum); typedef void (gl_APIENTRY *glBlendFuncSeparateOES_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLenum); typedef void (gl_APIENTRY *glBlendEquationOES_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glDrawTexsOES_client_proc_t) (void * ctx, GLshort, GLshort, GLshort, GLshort, GLshort); typedef void (gl_APIENTRY *glDrawTexiOES_client_proc_t) (void * ctx, GLint, GLint, GLint, GLint, GLint); typedef void (gl_APIENTRY *glDrawTexxOES_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glDrawTexsvOES_client_proc_t) (void * ctx, const GLshort*); typedef void (gl_APIENTRY *glDrawTexivOES_client_proc_t) (void * ctx, const GLint*); typedef void (gl_APIENTRY *glDrawTexxvOES_client_proc_t) (void * ctx, const GLfixed*); typedef void (gl_APIENTRY *glDrawTexfOES_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glDrawTexfvOES_client_proc_t) (void * ctx, const GLfloat*); typedef void (gl_APIENTRY *glEGLImageTargetTexture2DOES_client_proc_t) (void * ctx, GLenum, GLeglImageOES); typedef void (gl_APIENTRY *glEGLImageTargetRenderbufferStorageOES_client_proc_t) (void * ctx, GLenum, GLeglImageOES); typedef void (gl_APIENTRY *glAlphaFuncxOES_client_proc_t) (void * ctx, GLenum, GLclampx); typedef void (gl_APIENTRY *glClearColorxOES_client_proc_t) (void * ctx, GLclampx, GLclampx, GLclampx, GLclampx); typedef void (gl_APIENTRY *glClearDepthxOES_client_proc_t) (void * ctx, GLclampx); typedef void (gl_APIENTRY *glClipPlanexOES_client_proc_t) (void * ctx, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glClipPlanexIMG_client_proc_t) (void * ctx, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glColor4xOES_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glDepthRangexOES_client_proc_t) (void * ctx, GLclampx, GLclampx); typedef void (gl_APIENTRY *glFogxOES_client_proc_t) (void * ctx, GLenum, GLfixed); typedef void (gl_APIENTRY *glFogxvOES_client_proc_t) (void * ctx, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glFrustumxOES_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glGetClipPlanexOES_client_proc_t) (void * ctx, GLenum, GLfixed*); typedef void (gl_APIENTRY *glGetClipPlanex_client_proc_t) (void * ctx, GLenum, GLfixed*); typedef void (gl_APIENTRY *glGetFixedvOES_client_proc_t) (void * ctx, GLenum, GLfixed*); typedef void (gl_APIENTRY *glGetLightxvOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed*); typedef void (gl_APIENTRY *glGetMaterialxvOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed*); typedef void (gl_APIENTRY *glGetTexEnvxvOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed*); typedef void (gl_APIENTRY *glGetTexParameterxvOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed*); typedef void (gl_APIENTRY *glLightModelxOES_client_proc_t) (void * ctx, GLenum, GLfixed); typedef void (gl_APIENTRY *glLightModelxvOES_client_proc_t) (void * ctx, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glLightxOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed); typedef void (gl_APIENTRY *glLightxvOES_client_proc_t) (void * ctx, GLenum, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glLineWidthxOES_client_proc_t) (void * ctx, GLfixed); typedef void (gl_APIENTRY *glLoadMatrixxOES_client_proc_t) (void * ctx, const GLfixed*); typedef void (gl_APIENTRY *glMaterialxOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed); typedef void (gl_APIENTRY *glMaterialxvOES_client_proc_t) (void * ctx, GLenum, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glMultMatrixxOES_client_proc_t) (void * ctx, const GLfixed*); typedef void (gl_APIENTRY *glMultiTexCoord4xOES_client_proc_t) (void * ctx, GLenum, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glNormal3xOES_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glOrthoxOES_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glPointParameterxOES_client_proc_t) (void * ctx, GLenum, GLfixed); typedef void (gl_APIENTRY *glPointParameterxvOES_client_proc_t) (void * ctx, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glPointSizexOES_client_proc_t) (void * ctx, GLfixed); typedef void (gl_APIENTRY *glPolygonOffsetxOES_client_proc_t) (void * ctx, GLfixed, GLfixed); typedef void (gl_APIENTRY *glRotatexOES_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glSampleCoveragexOES_client_proc_t) (void * ctx, GLclampx, GLboolean); typedef void (gl_APIENTRY *glScalexOES_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed); typedef void (gl_APIENTRY *glTexEnvxOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed); typedef void (gl_APIENTRY *glTexEnvxvOES_client_proc_t) (void * ctx, GLenum, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glTexParameterxOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed); typedef void (gl_APIENTRY *glTexParameterxvOES_client_proc_t) (void * ctx, GLenum, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glTranslatexOES_client_proc_t) (void * ctx, GLfixed, GLfixed, GLfixed); typedef GLboolean (gl_APIENTRY *glIsRenderbufferOES_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glBindRenderbufferOES_client_proc_t) (void * ctx, GLenum, GLuint); typedef void (gl_APIENTRY *glDeleteRenderbuffersOES_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl_APIENTRY *glGenRenderbuffersOES_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef void (gl_APIENTRY *glRenderbufferStorageOES_client_proc_t) (void * ctx, GLenum, GLenum, GLsizei, GLsizei); typedef void (gl_APIENTRY *glGetRenderbufferParameterivOES_client_proc_t) (void * ctx, GLenum, GLenum, GLint*); typedef GLboolean (gl_APIENTRY *glIsFramebufferOES_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glBindFramebufferOES_client_proc_t) (void * ctx, GLenum, GLuint); typedef void (gl_APIENTRY *glDeleteFramebuffersOES_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl_APIENTRY *glGenFramebuffersOES_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef GLenum (gl_APIENTRY *glCheckFramebufferStatusOES_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glFramebufferRenderbufferOES_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLuint); typedef void (gl_APIENTRY *glFramebufferTexture2DOES_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLuint, GLint); typedef void (gl_APIENTRY *glGetFramebufferAttachmentParameterivOES_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLint*); typedef void (gl_APIENTRY *glGenerateMipmapOES_client_proc_t) (void * ctx, GLenum); typedef void* (gl_APIENTRY *glMapBufferOES_client_proc_t) (void * ctx, GLenum, GLenum); typedef GLboolean (gl_APIENTRY *glUnmapBufferOES_client_proc_t) (void * ctx, GLenum); typedef void (gl_APIENTRY *glGetBufferPointervOES_client_proc_t) (void * ctx, GLenum, GLenum, GLvoid**); typedef void (gl_APIENTRY *glCurrentPaletteMatrixOES_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glLoadPaletteFromModelViewMatrixOES_client_proc_t) (void * ctx); typedef void (gl_APIENTRY *glMatrixIndexPointerOES_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, const GLvoid*); typedef void (gl_APIENTRY *glWeightPointerOES_client_proc_t) (void * ctx, GLint, GLenum, GLsizei, const GLvoid*); typedef GLbitfield (gl_APIENTRY *glQueryMatrixxOES_client_proc_t) (void * ctx, GLfixed*, GLint*); typedef void (gl_APIENTRY *glDepthRangefOES_client_proc_t) (void * ctx, GLclampf, GLclampf); typedef void (gl_APIENTRY *glFrustumfOES_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glOrthofOES_client_proc_t) (void * ctx, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (gl_APIENTRY *glClipPlanefOES_client_proc_t) (void * ctx, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glClipPlanefIMG_client_proc_t) (void * ctx, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glGetClipPlanefOES_client_proc_t) (void * ctx, GLenum, GLfloat*); typedef void (gl_APIENTRY *glClearDepthfOES_client_proc_t) (void * ctx, GLclampf); typedef void (gl_APIENTRY *glTexGenfOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat); typedef void (gl_APIENTRY *glTexGenfvOES_client_proc_t) (void * ctx, GLenum, GLenum, const GLfloat*); typedef void (gl_APIENTRY *glTexGeniOES_client_proc_t) (void * ctx, GLenum, GLenum, GLint); typedef void (gl_APIENTRY *glTexGenivOES_client_proc_t) (void * ctx, GLenum, GLenum, const GLint*); typedef void (gl_APIENTRY *glTexGenxOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed); typedef void (gl_APIENTRY *glTexGenxvOES_client_proc_t) (void * ctx, GLenum, GLenum, const GLfixed*); typedef void (gl_APIENTRY *glGetTexGenfvOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfloat*); typedef void (gl_APIENTRY *glGetTexGenivOES_client_proc_t) (void * ctx, GLenum, GLenum, GLint*); typedef void (gl_APIENTRY *glGetTexGenxvOES_client_proc_t) (void * ctx, GLenum, GLenum, GLfixed*); typedef void (gl_APIENTRY *glBindVertexArrayOES_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glDeleteVertexArraysOES_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl_APIENTRY *glGenVertexArraysOES_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef GLboolean (gl_APIENTRY *glIsVertexArrayOES_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glDiscardFramebufferEXT_client_proc_t) (void * ctx, GLenum, GLsizei, const GLenum*); typedef void (gl_APIENTRY *glMultiDrawArraysEXT_client_proc_t) (void * ctx, GLenum, const GLint*, const GLsizei*, GLsizei); typedef void (gl_APIENTRY *glMultiDrawElementsEXT_client_proc_t) (void * ctx, GLenum, const GLsizei*, GLenum, const GLvoid* const*, GLsizei); typedef void (gl_APIENTRY *glMultiDrawArraysSUN_client_proc_t) (void * ctx, GLenum, GLint*, GLsizei*, GLsizei); typedef void (gl_APIENTRY *glMultiDrawElementsSUN_client_proc_t) (void * ctx, GLenum, const GLsizei*, GLenum, const GLvoid**, GLsizei); typedef void (gl_APIENTRY *glRenderbufferStorageMultisampleIMG_client_proc_t) (void * ctx, GLenum, GLsizei, GLenum, GLsizei, GLsizei); typedef void (gl_APIENTRY *glFramebufferTexture2DMultisampleIMG_client_proc_t) (void * ctx, GLenum, GLenum, GLenum, GLuint, GLint, GLsizei); typedef void (gl_APIENTRY *glDeleteFencesNV_client_proc_t) (void * ctx, GLsizei, const GLuint*); typedef void (gl_APIENTRY *glGenFencesNV_client_proc_t) (void * ctx, GLsizei, GLuint*); typedef GLboolean (gl_APIENTRY *glIsFenceNV_client_proc_t) (void * ctx, GLuint); typedef GLboolean (gl_APIENTRY *glTestFenceNV_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glGetFenceivNV_client_proc_t) (void * ctx, GLuint, GLenum, GLint*); typedef void (gl_APIENTRY *glFinishFenceNV_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glSetFenceNV_client_proc_t) (void * ctx, GLuint, GLenum); typedef void (gl_APIENTRY *glGetDriverControlsQCOM_client_proc_t) (void * ctx, GLint*, GLsizei, GLuint*); typedef void (gl_APIENTRY *glGetDriverControlStringQCOM_client_proc_t) (void * ctx, GLuint, GLsizei, GLsizei*, GLchar*); typedef void (gl_APIENTRY *glEnableDriverControlQCOM_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glDisableDriverControlQCOM_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glExtGetTexturesQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef void (gl_APIENTRY *glExtGetBuffersQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef void (gl_APIENTRY *glExtGetRenderbuffersQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef void (gl_APIENTRY *glExtGetFramebuffersQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef void (gl_APIENTRY *glExtGetTexLevelParameterivQCOM_client_proc_t) (void * ctx, GLuint, GLenum, GLint, GLenum, GLint*); typedef void (gl_APIENTRY *glExtTexObjectStateOverrideiQCOM_client_proc_t) (void * ctx, GLenum, GLenum, GLint); typedef void (gl_APIENTRY *glExtGetTexSubImageQCOM_client_proc_t) (void * ctx, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, GLvoid*); typedef void (gl_APIENTRY *glExtGetBufferPointervQCOM_client_proc_t) (void * ctx, GLenum, GLvoid**); typedef void (gl_APIENTRY *glExtGetShadersQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef void (gl_APIENTRY *glExtGetProgramsQCOM_client_proc_t) (void * ctx, GLuint*, GLint, GLint*); typedef GLboolean (gl_APIENTRY *glExtIsProgramBinaryQCOM_client_proc_t) (void * ctx, GLuint); typedef void (gl_APIENTRY *glExtGetProgramBinarySourceQCOM_client_proc_t) (void * ctx, GLuint, GLenum, GLchar*, GLint*); typedef void (gl_APIENTRY *glStartTilingQCOM_client_proc_t) (void * ctx, GLuint, GLuint, GLuint, GLuint, GLbitfield); typedef void (gl_APIENTRY *glEndTilingQCOM_client_proc_t) (void * ctx, GLbitfield); #endif
28,830
C++
.h
300
95.08
167
0.760245
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
17,757
gl_client_context.h
anbox_anbox/android/opengl/system/GLESv1_enc/gl_client_context.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __gl_client_context_t_h #define __gl_client_context_t_h #include "gl_client_proc.h" #include "gl_types.h" struct gl_client_context_t { glAlphaFunc_client_proc_t glAlphaFunc; glClearColor_client_proc_t glClearColor; glClearDepthf_client_proc_t glClearDepthf; glClipPlanef_client_proc_t glClipPlanef; glColor4f_client_proc_t glColor4f; glDepthRangef_client_proc_t glDepthRangef; glFogf_client_proc_t glFogf; glFogfv_client_proc_t glFogfv; glFrustumf_client_proc_t glFrustumf; glGetClipPlanef_client_proc_t glGetClipPlanef; glGetFloatv_client_proc_t glGetFloatv; glGetLightfv_client_proc_t glGetLightfv; glGetMaterialfv_client_proc_t glGetMaterialfv; glGetTexEnvfv_client_proc_t glGetTexEnvfv; glGetTexParameterfv_client_proc_t glGetTexParameterfv; glLightModelf_client_proc_t glLightModelf; glLightModelfv_client_proc_t glLightModelfv; glLightf_client_proc_t glLightf; glLightfv_client_proc_t glLightfv; glLineWidth_client_proc_t glLineWidth; glLoadMatrixf_client_proc_t glLoadMatrixf; glMaterialf_client_proc_t glMaterialf; glMaterialfv_client_proc_t glMaterialfv; glMultMatrixf_client_proc_t glMultMatrixf; glMultiTexCoord4f_client_proc_t glMultiTexCoord4f; glNormal3f_client_proc_t glNormal3f; glOrthof_client_proc_t glOrthof; glPointParameterf_client_proc_t glPointParameterf; glPointParameterfv_client_proc_t glPointParameterfv; glPointSize_client_proc_t glPointSize; glPolygonOffset_client_proc_t glPolygonOffset; glRotatef_client_proc_t glRotatef; glScalef_client_proc_t glScalef; glTexEnvf_client_proc_t glTexEnvf; glTexEnvfv_client_proc_t glTexEnvfv; glTexParameterf_client_proc_t glTexParameterf; glTexParameterfv_client_proc_t glTexParameterfv; glTranslatef_client_proc_t glTranslatef; glActiveTexture_client_proc_t glActiveTexture; glAlphaFuncx_client_proc_t glAlphaFuncx; glBindBuffer_client_proc_t glBindBuffer; glBindTexture_client_proc_t glBindTexture; glBlendFunc_client_proc_t glBlendFunc; glBufferData_client_proc_t glBufferData; glBufferSubData_client_proc_t glBufferSubData; glClear_client_proc_t glClear; glClearColorx_client_proc_t glClearColorx; glClearDepthx_client_proc_t glClearDepthx; glClearStencil_client_proc_t glClearStencil; glClientActiveTexture_client_proc_t glClientActiveTexture; glColor4ub_client_proc_t glColor4ub; glColor4x_client_proc_t glColor4x; glColorMask_client_proc_t glColorMask; glColorPointer_client_proc_t glColorPointer; glCompressedTexImage2D_client_proc_t glCompressedTexImage2D; glCompressedTexSubImage2D_client_proc_t glCompressedTexSubImage2D; glCopyTexImage2D_client_proc_t glCopyTexImage2D; glCopyTexSubImage2D_client_proc_t glCopyTexSubImage2D; glCullFace_client_proc_t glCullFace; glDeleteBuffers_client_proc_t glDeleteBuffers; glDeleteTextures_client_proc_t glDeleteTextures; glDepthFunc_client_proc_t glDepthFunc; glDepthMask_client_proc_t glDepthMask; glDepthRangex_client_proc_t glDepthRangex; glDisable_client_proc_t glDisable; glDisableClientState_client_proc_t glDisableClientState; glDrawArrays_client_proc_t glDrawArrays; glDrawElements_client_proc_t glDrawElements; glEnable_client_proc_t glEnable; glEnableClientState_client_proc_t glEnableClientState; glFinish_client_proc_t glFinish; glFlush_client_proc_t glFlush; glFogx_client_proc_t glFogx; glFogxv_client_proc_t glFogxv; glFrontFace_client_proc_t glFrontFace; glFrustumx_client_proc_t glFrustumx; glGetBooleanv_client_proc_t glGetBooleanv; glGetBufferParameteriv_client_proc_t glGetBufferParameteriv; glClipPlanex_client_proc_t glClipPlanex; glGenBuffers_client_proc_t glGenBuffers; glGenTextures_client_proc_t glGenTextures; glGetError_client_proc_t glGetError; glGetFixedv_client_proc_t glGetFixedv; glGetIntegerv_client_proc_t glGetIntegerv; glGetLightxv_client_proc_t glGetLightxv; glGetMaterialxv_client_proc_t glGetMaterialxv; glGetPointerv_client_proc_t glGetPointerv; glGetString_client_proc_t glGetString; glGetTexEnviv_client_proc_t glGetTexEnviv; glGetTexEnvxv_client_proc_t glGetTexEnvxv; glGetTexParameteriv_client_proc_t glGetTexParameteriv; glGetTexParameterxv_client_proc_t glGetTexParameterxv; glHint_client_proc_t glHint; glIsBuffer_client_proc_t glIsBuffer; glIsEnabled_client_proc_t glIsEnabled; glIsTexture_client_proc_t glIsTexture; glLightModelx_client_proc_t glLightModelx; glLightModelxv_client_proc_t glLightModelxv; glLightx_client_proc_t glLightx; glLightxv_client_proc_t glLightxv; glLineWidthx_client_proc_t glLineWidthx; glLoadIdentity_client_proc_t glLoadIdentity; glLoadMatrixx_client_proc_t glLoadMatrixx; glLogicOp_client_proc_t glLogicOp; glMaterialx_client_proc_t glMaterialx; glMaterialxv_client_proc_t glMaterialxv; glMatrixMode_client_proc_t glMatrixMode; glMultMatrixx_client_proc_t glMultMatrixx; glMultiTexCoord4x_client_proc_t glMultiTexCoord4x; glNormal3x_client_proc_t glNormal3x; glNormalPointer_client_proc_t glNormalPointer; glOrthox_client_proc_t glOrthox; glPixelStorei_client_proc_t glPixelStorei; glPointParameterx_client_proc_t glPointParameterx; glPointParameterxv_client_proc_t glPointParameterxv; glPointSizex_client_proc_t glPointSizex; glPolygonOffsetx_client_proc_t glPolygonOffsetx; glPopMatrix_client_proc_t glPopMatrix; glPushMatrix_client_proc_t glPushMatrix; glReadPixels_client_proc_t glReadPixels; glRotatex_client_proc_t glRotatex; glSampleCoverage_client_proc_t glSampleCoverage; glSampleCoveragex_client_proc_t glSampleCoveragex; glScalex_client_proc_t glScalex; glScissor_client_proc_t glScissor; glShadeModel_client_proc_t glShadeModel; glStencilFunc_client_proc_t glStencilFunc; glStencilMask_client_proc_t glStencilMask; glStencilOp_client_proc_t glStencilOp; glTexCoordPointer_client_proc_t glTexCoordPointer; glTexEnvi_client_proc_t glTexEnvi; glTexEnvx_client_proc_t glTexEnvx; glTexEnviv_client_proc_t glTexEnviv; glTexEnvxv_client_proc_t glTexEnvxv; glTexImage2D_client_proc_t glTexImage2D; glTexParameteri_client_proc_t glTexParameteri; glTexParameterx_client_proc_t glTexParameterx; glTexParameteriv_client_proc_t glTexParameteriv; glTexParameterxv_client_proc_t glTexParameterxv; glTexSubImage2D_client_proc_t glTexSubImage2D; glTranslatex_client_proc_t glTranslatex; glVertexPointer_client_proc_t glVertexPointer; glViewport_client_proc_t glViewport; glPointSizePointerOES_client_proc_t glPointSizePointerOES; glVertexPointerOffset_client_proc_t glVertexPointerOffset; glColorPointerOffset_client_proc_t glColorPointerOffset; glNormalPointerOffset_client_proc_t glNormalPointerOffset; glPointSizePointerOffset_client_proc_t glPointSizePointerOffset; glTexCoordPointerOffset_client_proc_t glTexCoordPointerOffset; glWeightPointerOffset_client_proc_t glWeightPointerOffset; glMatrixIndexPointerOffset_client_proc_t glMatrixIndexPointerOffset; glVertexPointerData_client_proc_t glVertexPointerData; glColorPointerData_client_proc_t glColorPointerData; glNormalPointerData_client_proc_t glNormalPointerData; glTexCoordPointerData_client_proc_t glTexCoordPointerData; glPointSizePointerData_client_proc_t glPointSizePointerData; glWeightPointerData_client_proc_t glWeightPointerData; glMatrixIndexPointerData_client_proc_t glMatrixIndexPointerData; glDrawElementsOffset_client_proc_t glDrawElementsOffset; glDrawElementsData_client_proc_t glDrawElementsData; glGetCompressedTextureFormats_client_proc_t glGetCompressedTextureFormats; glFinishRoundTrip_client_proc_t glFinishRoundTrip; glBlendEquationSeparateOES_client_proc_t glBlendEquationSeparateOES; glBlendFuncSeparateOES_client_proc_t glBlendFuncSeparateOES; glBlendEquationOES_client_proc_t glBlendEquationOES; glDrawTexsOES_client_proc_t glDrawTexsOES; glDrawTexiOES_client_proc_t glDrawTexiOES; glDrawTexxOES_client_proc_t glDrawTexxOES; glDrawTexsvOES_client_proc_t glDrawTexsvOES; glDrawTexivOES_client_proc_t glDrawTexivOES; glDrawTexxvOES_client_proc_t glDrawTexxvOES; glDrawTexfOES_client_proc_t glDrawTexfOES; glDrawTexfvOES_client_proc_t glDrawTexfvOES; glEGLImageTargetTexture2DOES_client_proc_t glEGLImageTargetTexture2DOES; glEGLImageTargetRenderbufferStorageOES_client_proc_t glEGLImageTargetRenderbufferStorageOES; glAlphaFuncxOES_client_proc_t glAlphaFuncxOES; glClearColorxOES_client_proc_t glClearColorxOES; glClearDepthxOES_client_proc_t glClearDepthxOES; glClipPlanexOES_client_proc_t glClipPlanexOES; glClipPlanexIMG_client_proc_t glClipPlanexIMG; glColor4xOES_client_proc_t glColor4xOES; glDepthRangexOES_client_proc_t glDepthRangexOES; glFogxOES_client_proc_t glFogxOES; glFogxvOES_client_proc_t glFogxvOES; glFrustumxOES_client_proc_t glFrustumxOES; glGetClipPlanexOES_client_proc_t glGetClipPlanexOES; glGetClipPlanex_client_proc_t glGetClipPlanex; glGetFixedvOES_client_proc_t glGetFixedvOES; glGetLightxvOES_client_proc_t glGetLightxvOES; glGetMaterialxvOES_client_proc_t glGetMaterialxvOES; glGetTexEnvxvOES_client_proc_t glGetTexEnvxvOES; glGetTexParameterxvOES_client_proc_t glGetTexParameterxvOES; glLightModelxOES_client_proc_t glLightModelxOES; glLightModelxvOES_client_proc_t glLightModelxvOES; glLightxOES_client_proc_t glLightxOES; glLightxvOES_client_proc_t glLightxvOES; glLineWidthxOES_client_proc_t glLineWidthxOES; glLoadMatrixxOES_client_proc_t glLoadMatrixxOES; glMaterialxOES_client_proc_t glMaterialxOES; glMaterialxvOES_client_proc_t glMaterialxvOES; glMultMatrixxOES_client_proc_t glMultMatrixxOES; glMultiTexCoord4xOES_client_proc_t glMultiTexCoord4xOES; glNormal3xOES_client_proc_t glNormal3xOES; glOrthoxOES_client_proc_t glOrthoxOES; glPointParameterxOES_client_proc_t glPointParameterxOES; glPointParameterxvOES_client_proc_t glPointParameterxvOES; glPointSizexOES_client_proc_t glPointSizexOES; glPolygonOffsetxOES_client_proc_t glPolygonOffsetxOES; glRotatexOES_client_proc_t glRotatexOES; glSampleCoveragexOES_client_proc_t glSampleCoveragexOES; glScalexOES_client_proc_t glScalexOES; glTexEnvxOES_client_proc_t glTexEnvxOES; glTexEnvxvOES_client_proc_t glTexEnvxvOES; glTexParameterxOES_client_proc_t glTexParameterxOES; glTexParameterxvOES_client_proc_t glTexParameterxvOES; glTranslatexOES_client_proc_t glTranslatexOES; glIsRenderbufferOES_client_proc_t glIsRenderbufferOES; glBindRenderbufferOES_client_proc_t glBindRenderbufferOES; glDeleteRenderbuffersOES_client_proc_t glDeleteRenderbuffersOES; glGenRenderbuffersOES_client_proc_t glGenRenderbuffersOES; glRenderbufferStorageOES_client_proc_t glRenderbufferStorageOES; glGetRenderbufferParameterivOES_client_proc_t glGetRenderbufferParameterivOES; glIsFramebufferOES_client_proc_t glIsFramebufferOES; glBindFramebufferOES_client_proc_t glBindFramebufferOES; glDeleteFramebuffersOES_client_proc_t glDeleteFramebuffersOES; glGenFramebuffersOES_client_proc_t glGenFramebuffersOES; glCheckFramebufferStatusOES_client_proc_t glCheckFramebufferStatusOES; glFramebufferRenderbufferOES_client_proc_t glFramebufferRenderbufferOES; glFramebufferTexture2DOES_client_proc_t glFramebufferTexture2DOES; glGetFramebufferAttachmentParameterivOES_client_proc_t glGetFramebufferAttachmentParameterivOES; glGenerateMipmapOES_client_proc_t glGenerateMipmapOES; glMapBufferOES_client_proc_t glMapBufferOES; glUnmapBufferOES_client_proc_t glUnmapBufferOES; glGetBufferPointervOES_client_proc_t glGetBufferPointervOES; glCurrentPaletteMatrixOES_client_proc_t glCurrentPaletteMatrixOES; glLoadPaletteFromModelViewMatrixOES_client_proc_t glLoadPaletteFromModelViewMatrixOES; glMatrixIndexPointerOES_client_proc_t glMatrixIndexPointerOES; glWeightPointerOES_client_proc_t glWeightPointerOES; glQueryMatrixxOES_client_proc_t glQueryMatrixxOES; glDepthRangefOES_client_proc_t glDepthRangefOES; glFrustumfOES_client_proc_t glFrustumfOES; glOrthofOES_client_proc_t glOrthofOES; glClipPlanefOES_client_proc_t glClipPlanefOES; glClipPlanefIMG_client_proc_t glClipPlanefIMG; glGetClipPlanefOES_client_proc_t glGetClipPlanefOES; glClearDepthfOES_client_proc_t glClearDepthfOES; glTexGenfOES_client_proc_t glTexGenfOES; glTexGenfvOES_client_proc_t glTexGenfvOES; glTexGeniOES_client_proc_t glTexGeniOES; glTexGenivOES_client_proc_t glTexGenivOES; glTexGenxOES_client_proc_t glTexGenxOES; glTexGenxvOES_client_proc_t glTexGenxvOES; glGetTexGenfvOES_client_proc_t glGetTexGenfvOES; glGetTexGenivOES_client_proc_t glGetTexGenivOES; glGetTexGenxvOES_client_proc_t glGetTexGenxvOES; glBindVertexArrayOES_client_proc_t glBindVertexArrayOES; glDeleteVertexArraysOES_client_proc_t glDeleteVertexArraysOES; glGenVertexArraysOES_client_proc_t glGenVertexArraysOES; glIsVertexArrayOES_client_proc_t glIsVertexArrayOES; glDiscardFramebufferEXT_client_proc_t glDiscardFramebufferEXT; glMultiDrawArraysEXT_client_proc_t glMultiDrawArraysEXT; glMultiDrawElementsEXT_client_proc_t glMultiDrawElementsEXT; glMultiDrawArraysSUN_client_proc_t glMultiDrawArraysSUN; glMultiDrawElementsSUN_client_proc_t glMultiDrawElementsSUN; glRenderbufferStorageMultisampleIMG_client_proc_t glRenderbufferStorageMultisampleIMG; glFramebufferTexture2DMultisampleIMG_client_proc_t glFramebufferTexture2DMultisampleIMG; glDeleteFencesNV_client_proc_t glDeleteFencesNV; glGenFencesNV_client_proc_t glGenFencesNV; glIsFenceNV_client_proc_t glIsFenceNV; glTestFenceNV_client_proc_t glTestFenceNV; glGetFenceivNV_client_proc_t glGetFenceivNV; glFinishFenceNV_client_proc_t glFinishFenceNV; glSetFenceNV_client_proc_t glSetFenceNV; glGetDriverControlsQCOM_client_proc_t glGetDriverControlsQCOM; glGetDriverControlStringQCOM_client_proc_t glGetDriverControlStringQCOM; glEnableDriverControlQCOM_client_proc_t glEnableDriverControlQCOM; glDisableDriverControlQCOM_client_proc_t glDisableDriverControlQCOM; glExtGetTexturesQCOM_client_proc_t glExtGetTexturesQCOM; glExtGetBuffersQCOM_client_proc_t glExtGetBuffersQCOM; glExtGetRenderbuffersQCOM_client_proc_t glExtGetRenderbuffersQCOM; glExtGetFramebuffersQCOM_client_proc_t glExtGetFramebuffersQCOM; glExtGetTexLevelParameterivQCOM_client_proc_t glExtGetTexLevelParameterivQCOM; glExtTexObjectStateOverrideiQCOM_client_proc_t glExtTexObjectStateOverrideiQCOM; glExtGetTexSubImageQCOM_client_proc_t glExtGetTexSubImageQCOM; glExtGetBufferPointervQCOM_client_proc_t glExtGetBufferPointervQCOM; glExtGetShadersQCOM_client_proc_t glExtGetShadersQCOM; glExtGetProgramsQCOM_client_proc_t glExtGetProgramsQCOM; glExtIsProgramBinaryQCOM_client_proc_t glExtIsProgramBinaryQCOM; glExtGetProgramBinarySourceQCOM_client_proc_t glExtGetProgramBinarySourceQCOM; glStartTilingQCOM_client_proc_t glStartTilingQCOM; glEndTilingQCOM_client_proc_t glEndTilingQCOM; virtual ~gl_client_context_t() {} typedef gl_client_context_t *CONTEXT_ACCESSOR_TYPE(void); static void setContextAccessor(CONTEXT_ACCESSOR_TYPE *f); int initDispatchByName( void *(*getProc)(const char *name, void *userData), void *userData); virtual void setError(unsigned int error){ (void)error; }; virtual unsigned int getError(){ return 0; }; }; #endif
15,022
C++
.h
306
47.094771
97
0.871507
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,758
gl_ftable.h
anbox_anbox/android/opengl/system/GLESv1_enc/gl_ftable.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __gl_client_ftable_t_h #define __gl_client_ftable_t_h static const struct _gl_funcs_by_name { const char *name; void *proc; } gl_funcs_by_name[] = { {"glAlphaFunc", (void*)glAlphaFunc}, {"glClearColor", (void*)glClearColor}, {"glClearDepthf", (void*)glClearDepthf}, {"glClipPlanef", (void*)glClipPlanef}, {"glColor4f", (void*)glColor4f}, {"glDepthRangef", (void*)glDepthRangef}, {"glFogf", (void*)glFogf}, {"glFogfv", (void*)glFogfv}, {"glFrustumf", (void*)glFrustumf}, {"glGetClipPlanef", (void*)glGetClipPlanef}, {"glGetFloatv", (void*)glGetFloatv}, {"glGetLightfv", (void*)glGetLightfv}, {"glGetMaterialfv", (void*)glGetMaterialfv}, {"glGetTexEnvfv", (void*)glGetTexEnvfv}, {"glGetTexParameterfv", (void*)glGetTexParameterfv}, {"glLightModelf", (void*)glLightModelf}, {"glLightModelfv", (void*)glLightModelfv}, {"glLightf", (void*)glLightf}, {"glLightfv", (void*)glLightfv}, {"glLineWidth", (void*)glLineWidth}, {"glLoadMatrixf", (void*)glLoadMatrixf}, {"glMaterialf", (void*)glMaterialf}, {"glMaterialfv", (void*)glMaterialfv}, {"glMultMatrixf", (void*)glMultMatrixf}, {"glMultiTexCoord4f", (void*)glMultiTexCoord4f}, {"glNormal3f", (void*)glNormal3f}, {"glOrthof", (void*)glOrthof}, {"glPointParameterf", (void*)glPointParameterf}, {"glPointParameterfv", (void*)glPointParameterfv}, {"glPointSize", (void*)glPointSize}, {"glPolygonOffset", (void*)glPolygonOffset}, {"glRotatef", (void*)glRotatef}, {"glScalef", (void*)glScalef}, {"glTexEnvf", (void*)glTexEnvf}, {"glTexEnvfv", (void*)glTexEnvfv}, {"glTexParameterf", (void*)glTexParameterf}, {"glTexParameterfv", (void*)glTexParameterfv}, {"glTranslatef", (void*)glTranslatef}, {"glActiveTexture", (void*)glActiveTexture}, {"glAlphaFuncx", (void*)glAlphaFuncx}, {"glBindBuffer", (void*)glBindBuffer}, {"glBindTexture", (void*)glBindTexture}, {"glBlendFunc", (void*)glBlendFunc}, {"glBufferData", (void*)glBufferData}, {"glBufferSubData", (void*)glBufferSubData}, {"glClear", (void*)glClear}, {"glClearColorx", (void*)glClearColorx}, {"glClearDepthx", (void*)glClearDepthx}, {"glClearStencil", (void*)glClearStencil}, {"glClientActiveTexture", (void*)glClientActiveTexture}, {"glColor4ub", (void*)glColor4ub}, {"glColor4x", (void*)glColor4x}, {"glColorMask", (void*)glColorMask}, {"glColorPointer", (void*)glColorPointer}, {"glCompressedTexImage2D", (void*)glCompressedTexImage2D}, {"glCompressedTexSubImage2D", (void*)glCompressedTexSubImage2D}, {"glCopyTexImage2D", (void*)glCopyTexImage2D}, {"glCopyTexSubImage2D", (void*)glCopyTexSubImage2D}, {"glCullFace", (void*)glCullFace}, {"glDeleteBuffers", (void*)glDeleteBuffers}, {"glDeleteTextures", (void*)glDeleteTextures}, {"glDepthFunc", (void*)glDepthFunc}, {"glDepthMask", (void*)glDepthMask}, {"glDepthRangex", (void*)glDepthRangex}, {"glDisable", (void*)glDisable}, {"glDisableClientState", (void*)glDisableClientState}, {"glDrawArrays", (void*)glDrawArrays}, {"glDrawElements", (void*)glDrawElements}, {"glEnable", (void*)glEnable}, {"glEnableClientState", (void*)glEnableClientState}, {"glFinish", (void*)glFinish}, {"glFlush", (void*)glFlush}, {"glFogx", (void*)glFogx}, {"glFogxv", (void*)glFogxv}, {"glFrontFace", (void*)glFrontFace}, {"glFrustumx", (void*)glFrustumx}, {"glGetBooleanv", (void*)glGetBooleanv}, {"glGetBufferParameteriv", (void*)glGetBufferParameteriv}, {"glClipPlanex", (void*)glClipPlanex}, {"glGenBuffers", (void*)glGenBuffers}, {"glGenTextures", (void*)glGenTextures}, {"glGetError", (void*)glGetError}, {"glGetFixedv", (void*)glGetFixedv}, {"glGetIntegerv", (void*)glGetIntegerv}, {"glGetLightxv", (void*)glGetLightxv}, {"glGetMaterialxv", (void*)glGetMaterialxv}, {"glGetPointerv", (void*)glGetPointerv}, {"glGetString", (void*)glGetString}, {"glGetTexEnviv", (void*)glGetTexEnviv}, {"glGetTexEnvxv", (void*)glGetTexEnvxv}, {"glGetTexParameteriv", (void*)glGetTexParameteriv}, {"glGetTexParameterxv", (void*)glGetTexParameterxv}, {"glHint", (void*)glHint}, {"glIsBuffer", (void*)glIsBuffer}, {"glIsEnabled", (void*)glIsEnabled}, {"glIsTexture", (void*)glIsTexture}, {"glLightModelx", (void*)glLightModelx}, {"glLightModelxv", (void*)glLightModelxv}, {"glLightx", (void*)glLightx}, {"glLightxv", (void*)glLightxv}, {"glLineWidthx", (void*)glLineWidthx}, {"glLoadIdentity", (void*)glLoadIdentity}, {"glLoadMatrixx", (void*)glLoadMatrixx}, {"glLogicOp", (void*)glLogicOp}, {"glMaterialx", (void*)glMaterialx}, {"glMaterialxv", (void*)glMaterialxv}, {"glMatrixMode", (void*)glMatrixMode}, {"glMultMatrixx", (void*)glMultMatrixx}, {"glMultiTexCoord4x", (void*)glMultiTexCoord4x}, {"glNormal3x", (void*)glNormal3x}, {"glNormalPointer", (void*)glNormalPointer}, {"glOrthox", (void*)glOrthox}, {"glPixelStorei", (void*)glPixelStorei}, {"glPointParameterx", (void*)glPointParameterx}, {"glPointParameterxv", (void*)glPointParameterxv}, {"glPointSizex", (void*)glPointSizex}, {"glPolygonOffsetx", (void*)glPolygonOffsetx}, {"glPopMatrix", (void*)glPopMatrix}, {"glPushMatrix", (void*)glPushMatrix}, {"glReadPixels", (void*)glReadPixels}, {"glRotatex", (void*)glRotatex}, {"glSampleCoverage", (void*)glSampleCoverage}, {"glSampleCoveragex", (void*)glSampleCoveragex}, {"glScalex", (void*)glScalex}, {"glScissor", (void*)glScissor}, {"glShadeModel", (void*)glShadeModel}, {"glStencilFunc", (void*)glStencilFunc}, {"glStencilMask", (void*)glStencilMask}, {"glStencilOp", (void*)glStencilOp}, {"glTexCoordPointer", (void*)glTexCoordPointer}, {"glTexEnvi", (void*)glTexEnvi}, {"glTexEnvx", (void*)glTexEnvx}, {"glTexEnviv", (void*)glTexEnviv}, {"glTexEnvxv", (void*)glTexEnvxv}, {"glTexImage2D", (void*)glTexImage2D}, {"glTexParameteri", (void*)glTexParameteri}, {"glTexParameterx", (void*)glTexParameterx}, {"glTexParameteriv", (void*)glTexParameteriv}, {"glTexParameterxv", (void*)glTexParameterxv}, {"glTexSubImage2D", (void*)glTexSubImage2D}, {"glTranslatex", (void*)glTranslatex}, {"glVertexPointer", (void*)glVertexPointer}, {"glViewport", (void*)glViewport}, {"glPointSizePointerOES", (void*)glPointSizePointerOES}, {"glBlendEquationSeparateOES", (void*)glBlendEquationSeparateOES}, {"glBlendFuncSeparateOES", (void*)glBlendFuncSeparateOES}, {"glBlendEquationOES", (void*)glBlendEquationOES}, {"glDrawTexsOES", (void*)glDrawTexsOES}, {"glDrawTexiOES", (void*)glDrawTexiOES}, {"glDrawTexxOES", (void*)glDrawTexxOES}, {"glDrawTexsvOES", (void*)glDrawTexsvOES}, {"glDrawTexivOES", (void*)glDrawTexivOES}, {"glDrawTexxvOES", (void*)glDrawTexxvOES}, {"glDrawTexfOES", (void*)glDrawTexfOES}, {"glDrawTexfvOES", (void*)glDrawTexfvOES}, {"glEGLImageTargetTexture2DOES", (void*)glEGLImageTargetTexture2DOES}, {"glEGLImageTargetRenderbufferStorageOES", (void*)glEGLImageTargetRenderbufferStorageOES}, {"glAlphaFuncxOES", (void*)glAlphaFuncxOES}, {"glClearColorxOES", (void*)glClearColorxOES}, {"glClearDepthxOES", (void*)glClearDepthxOES}, {"glClipPlanexOES", (void*)glClipPlanexOES}, {"glClipPlanexIMG", (void*)glClipPlanexIMG}, {"glColor4xOES", (void*)glColor4xOES}, {"glDepthRangexOES", (void*)glDepthRangexOES}, {"glFogxOES", (void*)glFogxOES}, {"glFogxvOES", (void*)glFogxvOES}, {"glFrustumxOES", (void*)glFrustumxOES}, {"glGetClipPlanexOES", (void*)glGetClipPlanexOES}, {"glGetClipPlanex", (void*)glGetClipPlanex}, {"glGetFixedvOES", (void*)glGetFixedvOES}, {"glGetLightxvOES", (void*)glGetLightxvOES}, {"glGetMaterialxvOES", (void*)glGetMaterialxvOES}, {"glGetTexEnvxvOES", (void*)glGetTexEnvxvOES}, {"glGetTexParameterxvOES", (void*)glGetTexParameterxvOES}, {"glLightModelxOES", (void*)glLightModelxOES}, {"glLightModelxvOES", (void*)glLightModelxvOES}, {"glLightxOES", (void*)glLightxOES}, {"glLightxvOES", (void*)glLightxvOES}, {"glLineWidthxOES", (void*)glLineWidthxOES}, {"glLoadMatrixxOES", (void*)glLoadMatrixxOES}, {"glMaterialxOES", (void*)glMaterialxOES}, {"glMaterialxvOES", (void*)glMaterialxvOES}, {"glMultMatrixxOES", (void*)glMultMatrixxOES}, {"glMultiTexCoord4xOES", (void*)glMultiTexCoord4xOES}, {"glNormal3xOES", (void*)glNormal3xOES}, {"glOrthoxOES", (void*)glOrthoxOES}, {"glPointParameterxOES", (void*)glPointParameterxOES}, {"glPointParameterxvOES", (void*)glPointParameterxvOES}, {"glPointSizexOES", (void*)glPointSizexOES}, {"glPolygonOffsetxOES", (void*)glPolygonOffsetxOES}, {"glRotatexOES", (void*)glRotatexOES}, {"glSampleCoveragexOES", (void*)glSampleCoveragexOES}, {"glScalexOES", (void*)glScalexOES}, {"glTexEnvxOES", (void*)glTexEnvxOES}, {"glTexEnvxvOES", (void*)glTexEnvxvOES}, {"glTexParameterxOES", (void*)glTexParameterxOES}, {"glTexParameterxvOES", (void*)glTexParameterxvOES}, {"glTranslatexOES", (void*)glTranslatexOES}, {"glIsRenderbufferOES", (void*)glIsRenderbufferOES}, {"glBindRenderbufferOES", (void*)glBindRenderbufferOES}, {"glDeleteRenderbuffersOES", (void*)glDeleteRenderbuffersOES}, {"glGenRenderbuffersOES", (void*)glGenRenderbuffersOES}, {"glRenderbufferStorageOES", (void*)glRenderbufferStorageOES}, {"glGetRenderbufferParameterivOES", (void*)glGetRenderbufferParameterivOES}, {"glIsFramebufferOES", (void*)glIsFramebufferOES}, {"glBindFramebufferOES", (void*)glBindFramebufferOES}, {"glDeleteFramebuffersOES", (void*)glDeleteFramebuffersOES}, {"glGenFramebuffersOES", (void*)glGenFramebuffersOES}, {"glCheckFramebufferStatusOES", (void*)glCheckFramebufferStatusOES}, {"glFramebufferRenderbufferOES", (void*)glFramebufferRenderbufferOES}, {"glFramebufferTexture2DOES", (void*)glFramebufferTexture2DOES}, {"glGetFramebufferAttachmentParameterivOES", (void*)glGetFramebufferAttachmentParameterivOES}, {"glGenerateMipmapOES", (void*)glGenerateMipmapOES}, {"glMapBufferOES", (void*)glMapBufferOES}, {"glUnmapBufferOES", (void*)glUnmapBufferOES}, {"glGetBufferPointervOES", (void*)glGetBufferPointervOES}, {"glCurrentPaletteMatrixOES", (void*)glCurrentPaletteMatrixOES}, {"glLoadPaletteFromModelViewMatrixOES", (void*)glLoadPaletteFromModelViewMatrixOES}, {"glMatrixIndexPointerOES", (void*)glMatrixIndexPointerOES}, {"glWeightPointerOES", (void*)glWeightPointerOES}, {"glQueryMatrixxOES", (void*)glQueryMatrixxOES}, {"glDepthRangefOES", (void*)glDepthRangefOES}, {"glFrustumfOES", (void*)glFrustumfOES}, {"glOrthofOES", (void*)glOrthofOES}, {"glClipPlanefOES", (void*)glClipPlanefOES}, {"glClipPlanefIMG", (void*)glClipPlanefIMG}, {"glGetClipPlanefOES", (void*)glGetClipPlanefOES}, {"glClearDepthfOES", (void*)glClearDepthfOES}, {"glTexGenfOES", (void*)glTexGenfOES}, {"glTexGenfvOES", (void*)glTexGenfvOES}, {"glTexGeniOES", (void*)glTexGeniOES}, {"glTexGenivOES", (void*)glTexGenivOES}, {"glTexGenxOES", (void*)glTexGenxOES}, {"glTexGenxvOES", (void*)glTexGenxvOES}, {"glGetTexGenfvOES", (void*)glGetTexGenfvOES}, {"glGetTexGenivOES", (void*)glGetTexGenivOES}, {"glGetTexGenxvOES", (void*)glGetTexGenxvOES}, {"glBindVertexArrayOES", (void*)glBindVertexArrayOES}, {"glDeleteVertexArraysOES", (void*)glDeleteVertexArraysOES}, {"glGenVertexArraysOES", (void*)glGenVertexArraysOES}, {"glIsVertexArrayOES", (void*)glIsVertexArrayOES}, {"glDiscardFramebufferEXT", (void*)glDiscardFramebufferEXT}, {"glMultiDrawArraysEXT", (void*)glMultiDrawArraysEXT}, {"glMultiDrawElementsEXT", (void*)glMultiDrawElementsEXT}, {"glMultiDrawArraysSUN", (void*)glMultiDrawArraysSUN}, {"glMultiDrawElementsSUN", (void*)glMultiDrawElementsSUN}, {"glRenderbufferStorageMultisampleIMG", (void*)glRenderbufferStorageMultisampleIMG}, {"glFramebufferTexture2DMultisampleIMG", (void*)glFramebufferTexture2DMultisampleIMG}, {"glDeleteFencesNV", (void*)glDeleteFencesNV}, {"glGenFencesNV", (void*)glGenFencesNV}, {"glIsFenceNV", (void*)glIsFenceNV}, {"glTestFenceNV", (void*)glTestFenceNV}, {"glGetFenceivNV", (void*)glGetFenceivNV}, {"glFinishFenceNV", (void*)glFinishFenceNV}, {"glSetFenceNV", (void*)glSetFenceNV}, {"glGetDriverControlsQCOM", (void*)glGetDriverControlsQCOM}, {"glGetDriverControlStringQCOM", (void*)glGetDriverControlStringQCOM}, {"glEnableDriverControlQCOM", (void*)glEnableDriverControlQCOM}, {"glDisableDriverControlQCOM", (void*)glDisableDriverControlQCOM}, {"glExtGetTexturesQCOM", (void*)glExtGetTexturesQCOM}, {"glExtGetBuffersQCOM", (void*)glExtGetBuffersQCOM}, {"glExtGetRenderbuffersQCOM", (void*)glExtGetRenderbuffersQCOM}, {"glExtGetFramebuffersQCOM", (void*)glExtGetFramebuffersQCOM}, {"glExtGetTexLevelParameterivQCOM", (void*)glExtGetTexLevelParameterivQCOM}, {"glExtTexObjectStateOverrideiQCOM", (void*)glExtTexObjectStateOverrideiQCOM}, {"glExtGetTexSubImageQCOM", (void*)glExtGetTexSubImageQCOM}, {"glExtGetBufferPointervQCOM", (void*)glExtGetBufferPointervQCOM}, {"glExtGetShadersQCOM", (void*)glExtGetShadersQCOM}, {"glExtGetProgramsQCOM", (void*)glExtGetProgramsQCOM}, {"glExtIsProgramBinaryQCOM", (void*)glExtIsProgramBinaryQCOM}, {"glExtGetProgramBinarySourceQCOM", (void*)glExtGetProgramBinarySourceQCOM}, {"glStartTilingQCOM", (void*)glStartTilingQCOM}, {"glEndTilingQCOM", (void*)glEndTilingQCOM}, }; static const int gl_num_funcs = sizeof(gl_funcs_by_name) / sizeof(struct _gl_funcs_by_name); #endif
13,138
C++
.h
284
44.278169
95
0.759222
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
17,759
gl_enc.h
anbox_anbox/android/opengl/system/GLESv1_enc/gl_enc.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef GUARD_gl_encoder_context_t #define GUARD_gl_encoder_context_t #include "IOStream.h" #include "ChecksumCalculator.h" #include "gl_client_context.h" #include "glUtils.h" #include "GLEncoderUtils.h" struct gl_encoder_context_t : public gl_client_context_t { IOStream *m_stream; ChecksumCalculator *m_checksumCalculator; gl_encoder_context_t(IOStream *stream, ChecksumCalculator *checksumCalculator); }; #endif // GUARD_gl_encoder_context_t
516
C++
.h
15
32.733333
80
0.785425
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,762
gles_proc.h
anbox_anbox/android/opengl/tests/gles_android_wrapper/gles_proc.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _GLES_PROC_H #define _GLES_PROC_H #include <GLES/gl.h> #define GL_GLEXT_PROTOTYPES #include <GLES/glext.h> typedef void (* glAlphaFunc_t) (GLenum, GLclampf); typedef void (* glClearColor_t) (GLclampf, GLclampf, GLclampf, GLclampf); typedef void (* glClearDepthf_t) (GLclampf); typedef void (* glClipPlanef_t) (GLenum, const GLfloat*); typedef void (* glColor4f_t) (GLfloat, GLfloat, GLfloat, GLfloat); typedef void (* glDepthRangef_t) (GLclampf, GLclampf); typedef void (* glFogf_t) (GLenum, GLfloat); typedef void (* glFogfv_t) (GLenum, const GLfloat*); typedef void (* glFrustumf_t) (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (* glGetClipPlanef_t) (GLenum, GLfloat*); typedef void (* glGetFloatv_t) (GLenum, GLfloat*); typedef void (* glGetLightfv_t) (GLenum, GLenum, GLfloat*); typedef void (* glGetMaterialfv_t) (GLenum, GLenum, GLfloat*); typedef void (* glGetTexEnvfv_t) (GLenum, GLenum, GLfloat*); typedef void (* glGetTexParameterfv_t) (GLenum, GLenum, GLfloat*); typedef void (* glLightModelf_t) (GLenum, GLfloat); typedef void (* glLightModelfv_t) (GLenum, const GLfloat*); typedef void (* glLightf_t) (GLenum, GLenum, GLfloat); typedef void (* glLightfv_t) (GLenum, GLenum, const GLfloat*); typedef void (* glLineWidth_t) (GLfloat); typedef void (* glLoadMatrixf_t) (const GLfloat*); typedef void (* glMaterialf_t) (GLenum, GLenum, GLfloat); typedef void (* glMaterialfv_t) (GLenum, GLenum, const GLfloat*); typedef void (* glMultMatrixf_t) (const GLfloat*); typedef void (* glMultiTexCoord4f_t) (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (* glNormal3f_t) (GLfloat, GLfloat, GLfloat); typedef void (* glOrthof_t) (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (* glPointParameterf_t) (GLenum, GLfloat); typedef void (* glPointParameterfv_t) (GLenum, const GLfloat*); typedef void (* glPointSize_t) (GLfloat); typedef void (* glPolygonOffset_t) (GLfloat, GLfloat); typedef void (* glRotatef_t) (GLfloat, GLfloat, GLfloat, GLfloat); typedef void (* glScalef_t) (GLfloat, GLfloat, GLfloat); typedef void (* glTexEnvf_t) (GLenum, GLenum, GLfloat); typedef void (* glTexEnvfv_t) (GLenum, GLenum, const GLfloat*); typedef void (* glTexParameterf_t) (GLenum, GLenum, GLfloat); typedef void (* glTexParameterfv_t) (GLenum, GLenum, const GLfloat*); typedef void (* glTranslatef_t) (GLfloat, GLfloat, GLfloat); typedef void (* glActiveTexture_t) (GLenum); typedef void (* glAlphaFuncx_t) (GLenum, GLclampx); typedef void (* glBindBuffer_t) (GLenum, GLuint); typedef void (* glBindTexture_t) (GLenum, GLuint); typedef void (* glBlendFunc_t) (GLenum, GLenum); typedef void (* glBufferData_t) (GLenum, GLsizeiptr, const GLvoid*, GLenum); typedef void (* glBufferSubData_t) (GLenum, GLintptr, GLsizeiptr, const GLvoid*); typedef void (* glClear_t) (GLbitfield); typedef void (* glClearColorx_t) (GLclampx, GLclampx, GLclampx, GLclampx); typedef void (* glClearDepthx_t) (GLclampx); typedef void (* glClearStencil_t) (GLint); typedef void (* glClientActiveTexture_t) (GLenum); typedef void (* glClipPlanex_t) (GLenum, const GLfixed*); typedef void (* glColor4ub_t) (GLubyte, GLubyte, GLubyte, GLubyte); typedef void (* glColor4x_t) (GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glColorMask_t) (GLboolean, GLboolean, GLboolean, GLboolean); typedef void (* glColorPointer_t) (GLint, GLenum, GLsizei, const GLvoid*); typedef void (* glCompressedTexImage2D_t) (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*); typedef void (* glCompressedTexSubImage2D_t) (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*); typedef void (* glCopyTexImage2D_t) (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); typedef void (* glCopyTexSubImage2D_t) (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); typedef void (* glCullFace_t) (GLenum); typedef void (* glDeleteBuffers_t) (GLsizei, const GLuint*); typedef void (* glDeleteTextures_t) (GLsizei, const GLuint*); typedef void (* glDepthFunc_t) (GLenum); typedef void (* glDepthMask_t) (GLboolean); typedef void (* glDepthRangex_t) (GLclampx, GLclampx); typedef void (* glDisable_t) (GLenum); typedef void (* glDisableClientState_t) (GLenum); typedef void (* glDrawArrays_t) (GLenum, GLint, GLsizei); typedef void (* glDrawElements_t) (GLenum, GLsizei, GLenum, const GLvoid*); typedef void (* glEnable_t) (GLenum); typedef void (* glEnableClientState_t) (GLenum); typedef void (* glFinish_t) (); typedef void (* glFlush_t) (); typedef void (* glFogx_t) (GLenum, GLfixed); typedef void (* glFogxv_t) (GLenum, const GLfixed*); typedef void (* glFrontFace_t) (GLenum); typedef void (* glFrustumx_t) (GLfixed, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glGetBooleanv_t) (GLenum, GLboolean*); typedef void (* glGetBufferParameteriv_t) (GLenum, GLenum, GLint*); typedef void (* glGetClipPlanex_t) (GLenum, GLfixed*); typedef void (* glGenBuffers_t) (GLsizei, GLuint*); typedef void (* glGenTextures_t) (GLsizei, GLuint*); typedef GLenum (* glGetError_t) (); typedef void (* glGetFixedv_t) (GLenum, GLfixed*); typedef void (* glGetIntegerv_t) (GLenum, GLint*); typedef void (* glGetLightxv_t) (GLenum, GLenum, GLfixed*); typedef void (* glGetMaterialxv_t) (GLenum, GLenum, GLfixed*); typedef void (* glGetPointerv_t) (GLenum, GLvoid**); typedef const GLubyte* (* glGetString_t) (GLenum); typedef void (* glGetTexEnviv_t) (GLenum, GLenum, GLint*); typedef void (* glGetTexEnvxv_t) (GLenum, GLenum, GLfixed*); typedef void (* glGetTexParameteriv_t) (GLenum, GLenum, GLint*); typedef void (* glGetTexParameterxv_t) (GLenum, GLenum, GLfixed*); typedef void (* glHint_t) (GLenum, GLenum); typedef GLboolean (* glIsBuffer_t) (GLuint); typedef GLboolean (* glIsEnabled_t) (GLenum); typedef GLboolean (* glIsTexture_t) (GLuint); typedef void (* glLightModelx_t) (GLenum, GLfixed); typedef void (* glLightModelxv_t) (GLenum, const GLfixed*); typedef void (* glLightx_t) (GLenum, GLenum, GLfixed); typedef void (* glLightxv_t) (GLenum, GLenum, const GLfixed*); typedef void (* glLineWidthx_t) (GLfixed); typedef void (* glLoadIdentity_t) (); typedef void (* glLoadMatrixx_t) (const GLfixed*); typedef void (* glLogicOp_t) (GLenum); typedef void (* glMaterialx_t) (GLenum, GLenum, GLfixed); typedef void (* glMaterialxv_t) (GLenum, GLenum, const GLfixed*); typedef void (* glMatrixMode_t) (GLenum); typedef void (* glMultMatrixx_t) (const GLfixed*); typedef void (* glMultiTexCoord4x_t) (GLenum, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glNormal3x_t) (GLfixed, GLfixed, GLfixed); typedef void (* glNormalPointer_t) (GLenum, GLsizei, const GLvoid*); typedef void (* glOrthox_t) (GLfixed, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glPixelStorei_t) (GLenum, GLint); typedef void (* glPointParameterx_t) (GLenum, GLfixed); typedef void (* glPointParameterxv_t) (GLenum, const GLfixed*); typedef void (* glPointSizex_t) (GLfixed); typedef void (* glPolygonOffsetx_t) (GLfixed, GLfixed); typedef void (* glPopMatrix_t) (); typedef void (* glPushMatrix_t) (); typedef void (* glReadPixels_t) (GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*); typedef void (* glRotatex_t) (GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glSampleCoverage_t) (GLclampf, GLboolean); typedef void (* glSampleCoveragex_t) (GLclampx, GLboolean); typedef void (* glScalex_t) (GLfixed, GLfixed, GLfixed); typedef void (* glScissor_t) (GLint, GLint, GLsizei, GLsizei); typedef void (* glShadeModel_t) (GLenum); typedef void (* glStencilFunc_t) (GLenum, GLint, GLuint); typedef void (* glStencilMask_t) (GLuint); typedef void (* glStencilOp_t) (GLenum, GLenum, GLenum); typedef void (* glTexCoordPointer_t) (GLint, GLenum, GLsizei, const GLvoid*); typedef void (* glTexEnvi_t) (GLenum, GLenum, GLint); typedef void (* glTexEnvx_t) (GLenum, GLenum, GLfixed); typedef void (* glTexEnviv_t) (GLenum, GLenum, const GLint*); typedef void (* glTexEnvxv_t) (GLenum, GLenum, const GLfixed*); typedef void (* glTexImage2D_t) (GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*); typedef void (* glTexParameteri_t) (GLenum, GLenum, GLint); typedef void (* glTexParameterx_t) (GLenum, GLenum, GLfixed); typedef void (* glTexParameteriv_t) (GLenum, GLenum, const GLint*); typedef void (* glTexParameterxv_t) (GLenum, GLenum, const GLfixed*); typedef void (* glTexSubImage2D_t) (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid*); typedef void (* glTranslatex_t) (GLfixed, GLfixed, GLfixed); typedef void (* glVertexPointer_t) (GLint, GLenum, GLsizei, const GLvoid*); typedef void (* glViewport_t) (GLint, GLint, GLsizei, GLsizei); typedef void (* glPointSizePointerOES_t) (GLenum, GLsizei, const GLvoid*); typedef void (* glBlendEquationSeparateOES_t) (GLenum, GLenum); typedef void (* glBlendFuncSeparateOES_t) (GLenum, GLenum, GLenum, GLenum); typedef void (* glBlendEquationOES_t) (GLenum); typedef void (* glDrawTexsOES_t) (GLshort, GLshort, GLshort, GLshort, GLshort); typedef void (* glDrawTexiOES_t) (GLint, GLint, GLint, GLint, GLint); typedef void (* glDrawTexxOES_t) (GLfixed, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glDrawTexsvOES_t) (const GLshort*); typedef void (* glDrawTexivOES_t) (const GLint*); typedef void (* glDrawTexxvOES_t) (const GLfixed*); typedef void (* glDrawTexfOES_t) (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (* glDrawTexfvOES_t) (const GLfloat*); typedef void (* glEGLImageTargetTexture2DOES_t) (GLenum, GLeglImageOES); typedef void (* glEGLImageTargetRenderbufferStorageOES_t) (GLenum, GLeglImageOES); typedef void (* glAlphaFuncxOES_t) (GLenum, GLclampx); typedef void (* glClearColorxOES_t) (GLclampx, GLclampx, GLclampx, GLclampx); typedef void (* glClearDepthxOES_t) (GLclampx); typedef void (* glClipPlanexOES_t) (GLenum, const GLfixed*); typedef void (* glColor4xOES_t) (GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glDepthRangexOES_t) (GLclampx, GLclampx); typedef void (* glFogxOES_t) (GLenum, GLfixed); typedef void (* glFogxvOES_t) (GLenum, const GLfixed*); typedef void (* glFrustumxOES_t) (GLfixed, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glGetClipPlanexOES_t) (GLenum, GLfixed*); typedef void (* glGetFixedvOES_t) (GLenum, GLfixed*); typedef void (* glGetLightxvOES_t) (GLenum, GLenum, GLfixed*); typedef void (* glGetMaterialxvOES_t) (GLenum, GLenum, GLfixed*); typedef void (* glGetTexEnvxvOES_t) (GLenum, GLenum, GLfixed*); typedef void (* glGetTexParameterxvOES_t) (GLenum, GLenum, GLfixed*); typedef void (* glLightModelxOES_t) (GLenum, GLfixed); typedef void (* glLightModelxvOES_t) (GLenum, const GLfixed*); typedef void (* glLightxOES_t) (GLenum, GLenum, GLfixed); typedef void (* glLightxvOES_t) (GLenum, GLenum, const GLfixed*); typedef void (* glLineWidthxOES_t) (GLfixed); typedef void (* glLoadMatrixxOES_t) (const GLfixed*); typedef void (* glMaterialxOES_t) (GLenum, GLenum, GLfixed); typedef void (* glMaterialxvOES_t) (GLenum, GLenum, const GLfixed*); typedef void (* glMultMatrixxOES_t) (const GLfixed*); typedef void (* glMultiTexCoord4xOES_t) (GLenum, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glNormal3xOES_t) (GLfixed, GLfixed, GLfixed); typedef void (* glOrthoxOES_t) (GLfixed, GLfixed, GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glPointParameterxOES_t) (GLenum, GLfixed); typedef void (* glPointParameterxvOES_t) (GLenum, const GLfixed*); typedef void (* glPointSizexOES_t) (GLfixed); typedef void (* glPolygonOffsetxOES_t) (GLfixed, GLfixed); typedef void (* glRotatexOES_t) (GLfixed, GLfixed, GLfixed, GLfixed); typedef void (* glSampleCoveragexOES_t) (GLclampx, GLboolean); typedef void (* glScalexOES_t) (GLfixed, GLfixed, GLfixed); typedef void (* glTexEnvxOES_t) (GLenum, GLenum, GLfixed); typedef void (* glTexEnvxvOES_t) (GLenum, GLenum, const GLfixed*); typedef void (* glTexParameterxOES_t) (GLenum, GLenum, GLfixed); typedef void (* glTexParameterxvOES_t) (GLenum, GLenum, const GLfixed*); typedef void (* glTranslatexOES_t) (GLfixed, GLfixed, GLfixed); typedef GLboolean (* glIsRenderbufferOES_t) (GLuint); typedef void (* glBindRenderbufferOES_t) (GLenum, GLuint); typedef void (* glDeleteRenderbuffersOES_t) (GLsizei, const GLuint*); typedef void (* glGenRenderbuffersOES_t) (GLsizei, GLuint*); typedef void (* glRenderbufferStorageOES_t) (GLenum, GLenum, GLsizei, GLsizei); typedef void (* glGetRenderbufferParameterivOES_t) (GLenum, GLenum, GLint*); typedef GLboolean (* glIsFramebufferOES_t) (GLuint); typedef void (* glBindFramebufferOES_t) (GLenum, GLuint); typedef void (* glDeleteFramebuffersOES_t) (GLsizei, const GLuint*); typedef void (* glGenFramebuffersOES_t) (GLsizei, GLuint*); typedef GLenum (* glCheckFramebufferStatusOES_t) (GLenum); typedef void (* glFramebufferRenderbufferOES_t) (GLenum, GLenum, GLenum, GLuint); typedef void (* glFramebufferTexture2DOES_t) (GLenum, GLenum, GLenum, GLuint, GLint); typedef void (* glGetFramebufferAttachmentParameterivOES_t) (GLenum, GLenum, GLenum, GLint*); typedef void (* glGenerateMipmapOES_t) (GLenum); typedef void* (* glMapBufferOES_t) (GLenum, GLenum); typedef GLboolean (* glUnmapBufferOES_t) (GLenum); typedef void (* glGetBufferPointervOES_t) (GLenum, GLenum, GLvoid*); typedef void (* glCurrentPaletteMatrixOES_t) (GLuint); typedef void (* glLoadPaletteFromModelViewMatrixOES_t) (); typedef void (* glMatrixIndexPointerOES_t) (GLint, GLenum, GLsizei, const GLvoid*); typedef void (* glWeightPointerOES_t) (GLint, GLenum, GLsizei, const GLvoid*); typedef GLbitfield (* glQueryMatrixxOES_t) (GLfixed*, GLint*); typedef void (* glDepthRangefOES_t) (GLclampf, GLclampf); typedef void (* glFrustumfOES_t) (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (* glOrthofOES_t) (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); typedef void (* glClipPlanefOES_t) (GLenum, const GLfloat*); typedef void (* glGetClipPlanefOES_t) (GLenum, GLfloat*); typedef void (* glClearDepthfOES_t) (GLclampf); typedef void (* glTexGenfOES_t) (GLenum, GLenum, GLfloat); typedef void (* glTexGenfvOES_t) (GLenum, GLenum, const GLfloat*); typedef void (* glTexGeniOES_t) (GLenum, GLenum, GLint); typedef void (* glTexGenivOES_t) (GLenum, GLenum, const GLint*); typedef void (* glTexGenxOES_t) (GLenum, GLenum, GLfixed); typedef void (* glTexGenxvOES_t) (GLenum, GLenum, const GLfixed*); typedef void (* glGetTexGenfvOES_t) (GLenum, GLenum, GLfloat*); typedef void (* glGetTexGenivOES_t) (GLenum, GLenum, GLint*); typedef void (* glGetTexGenxvOES_t) (GLenum, GLenum, GLfixed*); typedef void (* glBindVertexArrayOES_t) (GLuint); typedef void (* glDeleteVertexArraysOES_t) (GLsizei, const GLuint*); typedef void (* glGenVertexArraysOES_t) (GLsizei, GLuint*); typedef GLboolean (* glIsVertexArrayOES_t) (GLuint); typedef void (* glDiscardFramebufferEXT_t) (GLenum, GLsizei, const GLenum*); typedef void (* glMultiDrawArraysEXT_t) (GLenum, GLint*, GLsizei*, GLsizei); typedef void (* glMultiDrawElementsEXT_t) (GLenum, const GLsizei*, GLenum, const GLvoid**, GLsizei); typedef void (* glClipPlanefIMG_t) (GLenum, const GLfloat*); typedef void (* glClipPlanexIMG_t) (GLenum, const GLfixed*); typedef void (* glRenderbufferStorageMultisampleIMG_t) (GLenum, GLsizei, GLenum, GLsizei, GLsizei); typedef void (* glFramebufferTexture2DMultisampleIMG_t) (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei); typedef void (* glDeleteFencesNV_t) (GLsizei, const GLuint*); typedef void (* glGenFencesNV_t) (GLsizei, GLuint*); typedef GLboolean (* glIsFenceNV_t) (GLuint); typedef GLboolean (* glTestFenceNV_t) (GLuint); typedef void (* glGetFenceivNV_t) (GLuint, GLenum, GLint*); typedef void (* glFinishFenceNV_t) (GLuint); typedef void (* glSetFenceNV_t) (GLuint, GLenum); typedef void (* glGetDriverControlsQCOM_t) (GLint*, GLsizei, GLuint*); typedef void (* glGetDriverControlStringQCOM_t) (GLuint, GLsizei, GLsizei*, GLchar*); typedef void (* glEnableDriverControlQCOM_t) (GLuint); typedef void (* glDisableDriverControlQCOM_t) (GLuint); typedef void (* glExtGetTexturesQCOM_t) (GLuint*, GLint, GLint*); typedef void (* glExtGetBuffersQCOM_t) (GLuint*, GLint, GLint*); typedef void (* glExtGetRenderbuffersQCOM_t) (GLuint*, GLint, GLint*); typedef void (* glExtGetFramebuffersQCOM_t) (GLuint*, GLint, GLint*); typedef void (* glExtGetTexLevelParameterivQCOM_t) (GLuint, GLenum, GLint, GLenum, GLint*); typedef void (* glExtTexObjectStateOverrideiQCOM_t) (GLenum, GLenum, GLint); typedef void (* glExtGetTexSubImageQCOM_t) (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, GLvoid*); typedef void (* glExtGetBufferPointervQCOM_t) (GLenum, GLvoid**); typedef void (* glExtGetShadersQCOM_t) (GLuint*, GLint, GLint*); typedef void (* glExtGetProgramsQCOM_t) (GLuint*, GLint, GLint*); typedef GLboolean (* glExtIsProgramBinaryQCOM_t) (GLuint); typedef void (* glExtGetProgramBinarySourceQCOM_t) (GLuint, GLenum, GLchar*, GLint*); typedef void (* glStartTilingQCOM_t) (GLuint, GLuint, GLuint, GLuint, GLbitfield); typedef void (* glEndTilingQCOM_t) (GLbitfield); #endif
17,650
C++
.h
292
59.431507
132
0.75389
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
true
true
false
false
false
false
false
false
17,763
egl_proc.h
anbox_anbox/android/opengl/tests/gles_android_wrapper/egl_proc.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _EGL_PROC_H #define _EGL_PROC_H #include <EGL/egl.h> #define EGL_EGLEXT_PROTOTYPES #include <EGL/eglext.h> typedef EGLint (* eglGetError_t) (); typedef EGLDisplay (* eglGetDisplay_t) (EGLNativeDisplayType); typedef EGLBoolean (* eglInitialize_t) (EGLDisplay, EGLint*, EGLint*); typedef EGLBoolean (* eglTerminate_t) (EGLDisplay); typedef char* (* eglQueryString_t) (EGLDisplay, EGLint); typedef EGLBoolean (* eglGetConfigs_t) (EGLDisplay, EGLConfig*, EGLint, EGLint*); typedef EGLBoolean (* eglChooseConfig_t) (EGLDisplay, const EGLint*, EGLConfig*, EGLint, EGLint*); typedef EGLBoolean (* eglGetConfigAttrib_t) (EGLDisplay, EGLConfig, EGLint, EGLint*); typedef EGLSurface (* eglCreateWindowSurface_t) (EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*); typedef EGLSurface (* eglCreatePbufferSurface_t) (EGLDisplay, EGLConfig, const EGLint*); typedef EGLSurface (* eglCreatePixmapSurface_t) (EGLDisplay, EGLConfig, EGLNativePixmapType, const EGLint*); typedef EGLBoolean (* eglDestroySurface_t) (EGLDisplay, EGLSurface); typedef EGLBoolean (* eglQuerySurface_t) (EGLDisplay, EGLSurface, EGLint, EGLint*); typedef EGLBoolean (* eglBindAPI_t) (EGLenum); typedef EGLenum (* eglQueryAPI_t) (); typedef EGLBoolean (* eglWaitClient_t) (); typedef EGLBoolean (* eglReleaseThread_t) (); typedef EGLSurface (* eglCreatePbufferFromClientBuffer_t) (EGLDisplay, EGLenum, EGLClientBuffer, EGLConfig, const EGLint*); typedef EGLBoolean (* eglSurfaceAttrib_t) (EGLDisplay, EGLSurface, EGLint, EGLint); typedef EGLBoolean (* eglBindTexImage_t) (EGLDisplay, EGLSurface, EGLint); typedef EGLBoolean (* eglReleaseTexImage_t) (EGLDisplay, EGLSurface, EGLint); typedef EGLBoolean (* eglSwapInterval_t) (EGLDisplay, EGLint); typedef EGLContext (* eglCreateContext_t) (EGLDisplay, EGLConfig, EGLContext, const EGLint*); typedef EGLBoolean (* eglDestroyContext_t) (EGLDisplay, EGLContext); typedef EGLBoolean (* eglMakeCurrent_t) (EGLDisplay, EGLSurface, EGLSurface, EGLContext); typedef EGLContext (* eglGetCurrentContext_t) (); typedef EGLSurface (* eglGetCurrentSurface_t) (EGLint); typedef EGLDisplay (* eglGetCurrentDisplay_t) (); typedef EGLBoolean (* eglQueryContext_t) (EGLDisplay, EGLContext, EGLint, EGLint*); typedef EGLBoolean (* eglWaitGL_t) (); typedef EGLBoolean (* eglWaitNative_t) (EGLint); typedef EGLBoolean (* eglSwapBuffers_t) (EGLDisplay, EGLSurface); typedef EGLBoolean (* eglCopyBuffers_t) (EGLDisplay, EGLSurface, EGLNativePixmapType); typedef __eglMustCastToProperFunctionPointerType (* eglGetProcAddress_t) (const char*); typedef EGLBoolean (* eglLockSurfaceKHR_t) (EGLDisplay, EGLSurface, const EGLint*); typedef EGLBoolean (* eglUnlockSurfaceKHR_t) (EGLDisplay, EGLSurface); typedef EGLImageKHR (* eglCreateImageKHR_t) (EGLDisplay, EGLContext, EGLenum, EGLClientBuffer, const EGLint*); typedef EGLBoolean (* eglDestroyImageKHR_t) (EGLDisplay, EGLImageKHR image); typedef EGLSyncKHR (* eglCreateSyncKHR_t) (EGLDisplay, EGLenum, const EGLint*); typedef EGLBoolean (* eglDestroySyncKHR_t) (EGLDisplay, EGLSyncKHR sync); typedef EGLint (* eglClientWaitSyncKHR_t) (EGLDisplay, EGLSyncKHR, EGLint, EGLTimeKHR timeout); typedef EGLBoolean (* eglSignalSyncKHR_t) (EGLDisplay, EGLSyncKHR, EGLenum); typedef EGLBoolean (* eglGetSyncAttribKHR_t) (EGLDisplay, EGLSyncKHR, EGLint, EGLint*); typedef EGLBoolean (* eglSetSwapRectangleANDROID_t) (EGLDisplay, EGLSurface, EGLint, EGLint, EGLint, EGLint); #endif // of _EGL_PROC_H
4,040
C++
.h
65
61.107692
123
0.790282
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
true
true
false
false
false
false
false
false
17,764
gles_dispatch.h
anbox_anbox/android/opengl/tests/gles_android_wrapper/gles_dispatch.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _GLES_DISPATCH_H #define _GLES_DISPATCH_H #include "gles_proc.h" struct gles_dispatch { glAlphaFunc_t glAlphaFunc; glClearColor_t glClearColor; glClearDepthf_t glClearDepthf; glClipPlanef_t glClipPlanef; glColor4f_t glColor4f; glDepthRangef_t glDepthRangef; glFogf_t glFogf; glFogfv_t glFogfv; glFrustumf_t glFrustumf; glGetClipPlanef_t glGetClipPlanef; glGetFloatv_t glGetFloatv; glGetLightfv_t glGetLightfv; glGetMaterialfv_t glGetMaterialfv; glGetTexEnvfv_t glGetTexEnvfv; glGetTexParameterfv_t glGetTexParameterfv; glLightModelf_t glLightModelf; glLightModelfv_t glLightModelfv; glLightf_t glLightf; glLightfv_t glLightfv; glLineWidth_t glLineWidth; glLoadMatrixf_t glLoadMatrixf; glMaterialf_t glMaterialf; glMaterialfv_t glMaterialfv; glMultMatrixf_t glMultMatrixf; glMultiTexCoord4f_t glMultiTexCoord4f; glNormal3f_t glNormal3f; glOrthof_t glOrthof; glPointParameterf_t glPointParameterf; glPointParameterfv_t glPointParameterfv; glPointSize_t glPointSize; glPolygonOffset_t glPolygonOffset; glRotatef_t glRotatef; glScalef_t glScalef; glTexEnvf_t glTexEnvf; glTexEnvfv_t glTexEnvfv; glTexParameterf_t glTexParameterf; glTexParameterfv_t glTexParameterfv; glTranslatef_t glTranslatef; glActiveTexture_t glActiveTexture; glAlphaFuncx_t glAlphaFuncx; glBindBuffer_t glBindBuffer; glBindTexture_t glBindTexture; glBlendFunc_t glBlendFunc; glBufferData_t glBufferData; glBufferSubData_t glBufferSubData; glClear_t glClear; glClearColorx_t glClearColorx; glClearDepthx_t glClearDepthx; glClearStencil_t glClearStencil; glClientActiveTexture_t glClientActiveTexture; glClipPlanex_t glClipPlanex; glColor4ub_t glColor4ub; glColor4x_t glColor4x; glColorMask_t glColorMask; glColorPointer_t glColorPointer; glCompressedTexImage2D_t glCompressedTexImage2D; glCompressedTexSubImage2D_t glCompressedTexSubImage2D; glCopyTexImage2D_t glCopyTexImage2D; glCopyTexSubImage2D_t glCopyTexSubImage2D; glCullFace_t glCullFace; glDeleteBuffers_t glDeleteBuffers; glDeleteTextures_t glDeleteTextures; glDepthFunc_t glDepthFunc; glDepthMask_t glDepthMask; glDepthRangex_t glDepthRangex; glDisable_t glDisable; glDisableClientState_t glDisableClientState; glDrawArrays_t glDrawArrays; glDrawElements_t glDrawElements; glEnable_t glEnable; glEnableClientState_t glEnableClientState; glFinish_t glFinish; glFlush_t glFlush; glFogx_t glFogx; glFogxv_t glFogxv; glFrontFace_t glFrontFace; glFrustumx_t glFrustumx; glGetBooleanv_t glGetBooleanv; glGetBufferParameteriv_t glGetBufferParameteriv; glGetClipPlanex_t glGetClipPlanex; glGenBuffers_t glGenBuffers; glGenTextures_t glGenTextures; glGetError_t glGetError; glGetFixedv_t glGetFixedv; glGetIntegerv_t glGetIntegerv; glGetLightxv_t glGetLightxv; glGetMaterialxv_t glGetMaterialxv; glGetPointerv_t glGetPointerv; glGetString_t glGetString; glGetTexEnviv_t glGetTexEnviv; glGetTexEnvxv_t glGetTexEnvxv; glGetTexParameteriv_t glGetTexParameteriv; glGetTexParameterxv_t glGetTexParameterxv; glHint_t glHint; glIsBuffer_t glIsBuffer; glIsEnabled_t glIsEnabled; glIsTexture_t glIsTexture; glLightModelx_t glLightModelx; glLightModelxv_t glLightModelxv; glLightx_t glLightx; glLightxv_t glLightxv; glLineWidthx_t glLineWidthx; glLoadIdentity_t glLoadIdentity; glLoadMatrixx_t glLoadMatrixx; glLogicOp_t glLogicOp; glMaterialx_t glMaterialx; glMaterialxv_t glMaterialxv; glMatrixMode_t glMatrixMode; glMultMatrixx_t glMultMatrixx; glMultiTexCoord4x_t glMultiTexCoord4x; glNormal3x_t glNormal3x; glNormalPointer_t glNormalPointer; glOrthox_t glOrthox; glPixelStorei_t glPixelStorei; glPointParameterx_t glPointParameterx; glPointParameterxv_t glPointParameterxv; glPointSizex_t glPointSizex; glPolygonOffsetx_t glPolygonOffsetx; glPopMatrix_t glPopMatrix; glPushMatrix_t glPushMatrix; glReadPixels_t glReadPixels; glRotatex_t glRotatex; glSampleCoverage_t glSampleCoverage; glSampleCoveragex_t glSampleCoveragex; glScalex_t glScalex; glScissor_t glScissor; glShadeModel_t glShadeModel; glStencilFunc_t glStencilFunc; glStencilMask_t glStencilMask; glStencilOp_t glStencilOp; glTexCoordPointer_t glTexCoordPointer; glTexEnvi_t glTexEnvi; glTexEnvx_t glTexEnvx; glTexEnviv_t glTexEnviv; glTexEnvxv_t glTexEnvxv; glTexImage2D_t glTexImage2D; glTexParameteri_t glTexParameteri; glTexParameterx_t glTexParameterx; glTexParameteriv_t glTexParameteriv; glTexParameterxv_t glTexParameterxv; glTexSubImage2D_t glTexSubImage2D; glTranslatex_t glTranslatex; glVertexPointer_t glVertexPointer; glViewport_t glViewport; glPointSizePointerOES_t glPointSizePointerOES; glBlendEquationSeparateOES_t glBlendEquationSeparateOES; glBlendFuncSeparateOES_t glBlendFuncSeparateOES; glBlendEquationOES_t glBlendEquationOES; glDrawTexsOES_t glDrawTexsOES; glDrawTexiOES_t glDrawTexiOES; glDrawTexxOES_t glDrawTexxOES; glDrawTexsvOES_t glDrawTexsvOES; glDrawTexivOES_t glDrawTexivOES; glDrawTexxvOES_t glDrawTexxvOES; glDrawTexfOES_t glDrawTexfOES; glDrawTexfvOES_t glDrawTexfvOES; glEGLImageTargetTexture2DOES_t glEGLImageTargetTexture2DOES; glEGLImageTargetRenderbufferStorageOES_t glEGLImageTargetRenderbufferStorageOES; glAlphaFuncxOES_t glAlphaFuncxOES; glClearColorxOES_t glClearColorxOES; glClearDepthxOES_t glClearDepthxOES; glClipPlanexOES_t glClipPlanexOES; glColor4xOES_t glColor4xOES; glDepthRangexOES_t glDepthRangexOES; glFogxOES_t glFogxOES; glFogxvOES_t glFogxvOES; glFrustumxOES_t glFrustumxOES; glGetClipPlanexOES_t glGetClipPlanexOES; glGetFixedvOES_t glGetFixedvOES; glGetLightxvOES_t glGetLightxvOES; glGetMaterialxvOES_t glGetMaterialxvOES; glGetTexEnvxvOES_t glGetTexEnvxvOES; glGetTexParameterxvOES_t glGetTexParameterxvOES; glLightModelxOES_t glLightModelxOES; glLightModelxvOES_t glLightModelxvOES; glLightxOES_t glLightxOES; glLightxvOES_t glLightxvOES; glLineWidthxOES_t glLineWidthxOES; glLoadMatrixxOES_t glLoadMatrixxOES; glMaterialxOES_t glMaterialxOES; glMaterialxvOES_t glMaterialxvOES; glMultMatrixxOES_t glMultMatrixxOES; glMultiTexCoord4xOES_t glMultiTexCoord4xOES; glNormal3xOES_t glNormal3xOES; glOrthoxOES_t glOrthoxOES; glPointParameterxOES_t glPointParameterxOES; glPointParameterxvOES_t glPointParameterxvOES; glPointSizexOES_t glPointSizexOES; glPolygonOffsetxOES_t glPolygonOffsetxOES; glRotatexOES_t glRotatexOES; glSampleCoveragexOES_t glSampleCoveragexOES; glScalexOES_t glScalexOES; glTexEnvxOES_t glTexEnvxOES; glTexEnvxvOES_t glTexEnvxvOES; glTexParameterxOES_t glTexParameterxOES; glTexParameterxvOES_t glTexParameterxvOES; glTranslatexOES_t glTranslatexOES; glIsRenderbufferOES_t glIsRenderbufferOES; glBindRenderbufferOES_t glBindRenderbufferOES; glDeleteRenderbuffersOES_t glDeleteRenderbuffersOES; glGenRenderbuffersOES_t glGenRenderbuffersOES; glRenderbufferStorageOES_t glRenderbufferStorageOES; glGetRenderbufferParameterivOES_t glGetRenderbufferParameterivOES; glIsFramebufferOES_t glIsFramebufferOES; glBindFramebufferOES_t glBindFramebufferOES; glDeleteFramebuffersOES_t glDeleteFramebuffersOES; glGenFramebuffersOES_t glGenFramebuffersOES; glCheckFramebufferStatusOES_t glCheckFramebufferStatusOES; glFramebufferRenderbufferOES_t glFramebufferRenderbufferOES; glFramebufferTexture2DOES_t glFramebufferTexture2DOES; glGetFramebufferAttachmentParameterivOES_t glGetFramebufferAttachmentParameterivOES; glGenerateMipmapOES_t glGenerateMipmapOES; glMapBufferOES_t glMapBufferOES; glUnmapBufferOES_t glUnmapBufferOES; glGetBufferPointervOES_t glGetBufferPointervOES; glCurrentPaletteMatrixOES_t glCurrentPaletteMatrixOES; glLoadPaletteFromModelViewMatrixOES_t glLoadPaletteFromModelViewMatrixOES; glMatrixIndexPointerOES_t glMatrixIndexPointerOES; glWeightPointerOES_t glWeightPointerOES; glQueryMatrixxOES_t glQueryMatrixxOES; glDepthRangefOES_t glDepthRangefOES; glFrustumfOES_t glFrustumfOES; glOrthofOES_t glOrthofOES; glClipPlanefOES_t glClipPlanefOES; glGetClipPlanefOES_t glGetClipPlanefOES; glClearDepthfOES_t glClearDepthfOES; glTexGenfOES_t glTexGenfOES; glTexGenfvOES_t glTexGenfvOES; glTexGeniOES_t glTexGeniOES; glTexGenivOES_t glTexGenivOES; glTexGenxOES_t glTexGenxOES; glTexGenxvOES_t glTexGenxvOES; glGetTexGenfvOES_t glGetTexGenfvOES; glGetTexGenivOES_t glGetTexGenivOES; glGetTexGenxvOES_t glGetTexGenxvOES; glBindVertexArrayOES_t glBindVertexArrayOES; glDeleteVertexArraysOES_t glDeleteVertexArraysOES; glGenVertexArraysOES_t glGenVertexArraysOES; glIsVertexArrayOES_t glIsVertexArrayOES; glDiscardFramebufferEXT_t glDiscardFramebufferEXT; glMultiDrawArraysEXT_t glMultiDrawArraysEXT; glMultiDrawElementsEXT_t glMultiDrawElementsEXT; glClipPlanefIMG_t glClipPlanefIMG; glClipPlanexIMG_t glClipPlanexIMG; glRenderbufferStorageMultisampleIMG_t glRenderbufferStorageMultisampleIMG; glFramebufferTexture2DMultisampleIMG_t glFramebufferTexture2DMultisampleIMG; glDeleteFencesNV_t glDeleteFencesNV; glGenFencesNV_t glGenFencesNV; glIsFenceNV_t glIsFenceNV; glTestFenceNV_t glTestFenceNV; glGetFenceivNV_t glGetFenceivNV; glFinishFenceNV_t glFinishFenceNV; glSetFenceNV_t glSetFenceNV; glGetDriverControlsQCOM_t glGetDriverControlsQCOM; glGetDriverControlStringQCOM_t glGetDriverControlStringQCOM; glEnableDriverControlQCOM_t glEnableDriverControlQCOM; glDisableDriverControlQCOM_t glDisableDriverControlQCOM; glExtGetTexturesQCOM_t glExtGetTexturesQCOM; glExtGetBuffersQCOM_t glExtGetBuffersQCOM; glExtGetRenderbuffersQCOM_t glExtGetRenderbuffersQCOM; glExtGetFramebuffersQCOM_t glExtGetFramebuffersQCOM; glExtGetTexLevelParameterivQCOM_t glExtGetTexLevelParameterivQCOM; glExtTexObjectStateOverrideiQCOM_t glExtTexObjectStateOverrideiQCOM; glExtGetTexSubImageQCOM_t glExtGetTexSubImageQCOM; glExtGetBufferPointervQCOM_t glExtGetBufferPointervQCOM; glExtGetShadersQCOM_t glExtGetShadersQCOM; glExtGetProgramsQCOM_t glExtGetProgramsQCOM; glExtIsProgramBinaryQCOM_t glExtIsProgramBinaryQCOM; glExtGetProgramBinarySourceQCOM_t glExtGetProgramBinarySourceQCOM; glStartTilingQCOM_t glStartTilingQCOM; glEndTilingQCOM_t glEndTilingQCOM; //Accessors glAlphaFunc_t set_glAlphaFunc(glAlphaFunc_t f) { glAlphaFunc_t retval = glAlphaFunc; glAlphaFunc = f; return retval;} glClearColor_t set_glClearColor(glClearColor_t f) { glClearColor_t retval = glClearColor; glClearColor = f; return retval;} glClearDepthf_t set_glClearDepthf(glClearDepthf_t f) { glClearDepthf_t retval = glClearDepthf; glClearDepthf = f; return retval;} glClipPlanef_t set_glClipPlanef(glClipPlanef_t f) { glClipPlanef_t retval = glClipPlanef; glClipPlanef = f; return retval;} glColor4f_t set_glColor4f(glColor4f_t f) { glColor4f_t retval = glColor4f; glColor4f = f; return retval;} glDepthRangef_t set_glDepthRangef(glDepthRangef_t f) { glDepthRangef_t retval = glDepthRangef; glDepthRangef = f; return retval;} glFogf_t set_glFogf(glFogf_t f) { glFogf_t retval = glFogf; glFogf = f; return retval;} glFogfv_t set_glFogfv(glFogfv_t f) { glFogfv_t retval = glFogfv; glFogfv = f; return retval;} glFrustumf_t set_glFrustumf(glFrustumf_t f) { glFrustumf_t retval = glFrustumf; glFrustumf = f; return retval;} glGetClipPlanef_t set_glGetClipPlanef(glGetClipPlanef_t f) { glGetClipPlanef_t retval = glGetClipPlanef; glGetClipPlanef = f; return retval;} glGetFloatv_t set_glGetFloatv(glGetFloatv_t f) { glGetFloatv_t retval = glGetFloatv; glGetFloatv = f; return retval;} glGetLightfv_t set_glGetLightfv(glGetLightfv_t f) { glGetLightfv_t retval = glGetLightfv; glGetLightfv = f; return retval;} glGetMaterialfv_t set_glGetMaterialfv(glGetMaterialfv_t f) { glGetMaterialfv_t retval = glGetMaterialfv; glGetMaterialfv = f; return retval;} glGetTexEnvfv_t set_glGetTexEnvfv(glGetTexEnvfv_t f) { glGetTexEnvfv_t retval = glGetTexEnvfv; glGetTexEnvfv = f; return retval;} glGetTexParameterfv_t set_glGetTexParameterfv(glGetTexParameterfv_t f) { glGetTexParameterfv_t retval = glGetTexParameterfv; glGetTexParameterfv = f; return retval;} glLightModelf_t set_glLightModelf(glLightModelf_t f) { glLightModelf_t retval = glLightModelf; glLightModelf = f; return retval;} glLightModelfv_t set_glLightModelfv(glLightModelfv_t f) { glLightModelfv_t retval = glLightModelfv; glLightModelfv = f; return retval;} glLightf_t set_glLightf(glLightf_t f) { glLightf_t retval = glLightf; glLightf = f; return retval;} glLightfv_t set_glLightfv(glLightfv_t f) { glLightfv_t retval = glLightfv; glLightfv = f; return retval;} glLineWidth_t set_glLineWidth(glLineWidth_t f) { glLineWidth_t retval = glLineWidth; glLineWidth = f; return retval;} glLoadMatrixf_t set_glLoadMatrixf(glLoadMatrixf_t f) { glLoadMatrixf_t retval = glLoadMatrixf; glLoadMatrixf = f; return retval;} glMaterialf_t set_glMaterialf(glMaterialf_t f) { glMaterialf_t retval = glMaterialf; glMaterialf = f; return retval;} glMaterialfv_t set_glMaterialfv(glMaterialfv_t f) { glMaterialfv_t retval = glMaterialfv; glMaterialfv = f; return retval;} glMultMatrixf_t set_glMultMatrixf(glMultMatrixf_t f) { glMultMatrixf_t retval = glMultMatrixf; glMultMatrixf = f; return retval;} glMultiTexCoord4f_t set_glMultiTexCoord4f(glMultiTexCoord4f_t f) { glMultiTexCoord4f_t retval = glMultiTexCoord4f; glMultiTexCoord4f = f; return retval;} glNormal3f_t set_glNormal3f(glNormal3f_t f) { glNormal3f_t retval = glNormal3f; glNormal3f = f; return retval;} glOrthof_t set_glOrthof(glOrthof_t f) { glOrthof_t retval = glOrthof; glOrthof = f; return retval;} glPointParameterf_t set_glPointParameterf(glPointParameterf_t f) { glPointParameterf_t retval = glPointParameterf; glPointParameterf = f; return retval;} glPointParameterfv_t set_glPointParameterfv(glPointParameterfv_t f) { glPointParameterfv_t retval = glPointParameterfv; glPointParameterfv = f; return retval;} glPointSize_t set_glPointSize(glPointSize_t f) { glPointSize_t retval = glPointSize; glPointSize = f; return retval;} glPolygonOffset_t set_glPolygonOffset(glPolygonOffset_t f) { glPolygonOffset_t retval = glPolygonOffset; glPolygonOffset = f; return retval;} glRotatef_t set_glRotatef(glRotatef_t f) { glRotatef_t retval = glRotatef; glRotatef = f; return retval;} glScalef_t set_glScalef(glScalef_t f) { glScalef_t retval = glScalef; glScalef = f; return retval;} glTexEnvf_t set_glTexEnvf(glTexEnvf_t f) { glTexEnvf_t retval = glTexEnvf; glTexEnvf = f; return retval;} glTexEnvfv_t set_glTexEnvfv(glTexEnvfv_t f) { glTexEnvfv_t retval = glTexEnvfv; glTexEnvfv = f; return retval;} glTexParameterf_t set_glTexParameterf(glTexParameterf_t f) { glTexParameterf_t retval = glTexParameterf; glTexParameterf = f; return retval;} glTexParameterfv_t set_glTexParameterfv(glTexParameterfv_t f) { glTexParameterfv_t retval = glTexParameterfv; glTexParameterfv = f; return retval;} glTranslatef_t set_glTranslatef(glTranslatef_t f) { glTranslatef_t retval = glTranslatef; glTranslatef = f; return retval;} glActiveTexture_t set_glActiveTexture(glActiveTexture_t f) { glActiveTexture_t retval = glActiveTexture; glActiveTexture = f; return retval;} glAlphaFuncx_t set_glAlphaFuncx(glAlphaFuncx_t f) { glAlphaFuncx_t retval = glAlphaFuncx; glAlphaFuncx = f; return retval;} glBindBuffer_t set_glBindBuffer(glBindBuffer_t f) { glBindBuffer_t retval = glBindBuffer; glBindBuffer = f; return retval;} glBindTexture_t set_glBindTexture(glBindTexture_t f) { glBindTexture_t retval = glBindTexture; glBindTexture = f; return retval;} glBlendFunc_t set_glBlendFunc(glBlendFunc_t f) { glBlendFunc_t retval = glBlendFunc; glBlendFunc = f; return retval;} glBufferData_t set_glBufferData(glBufferData_t f) { glBufferData_t retval = glBufferData; glBufferData = f; return retval;} glBufferSubData_t set_glBufferSubData(glBufferSubData_t f) { glBufferSubData_t retval = glBufferSubData; glBufferSubData = f; return retval;} glClear_t set_glClear(glClear_t f) { glClear_t retval = glClear; glClear = f; return retval;} glClearColorx_t set_glClearColorx(glClearColorx_t f) { glClearColorx_t retval = glClearColorx; glClearColorx = f; return retval;} glClearDepthx_t set_glClearDepthx(glClearDepthx_t f) { glClearDepthx_t retval = glClearDepthx; glClearDepthx = f; return retval;} glClearStencil_t set_glClearStencil(glClearStencil_t f) { glClearStencil_t retval = glClearStencil; glClearStencil = f; return retval;} glClientActiveTexture_t set_glClientActiveTexture(glClientActiveTexture_t f) { glClientActiveTexture_t retval = glClientActiveTexture; glClientActiveTexture = f; return retval;} glClipPlanex_t set_glClipPlanex(glClipPlanex_t f) { glClipPlanex_t retval = glClipPlanex; glClipPlanex = f; return retval;} glColor4ub_t set_glColor4ub(glColor4ub_t f) { glColor4ub_t retval = glColor4ub; glColor4ub = f; return retval;} glColor4x_t set_glColor4x(glColor4x_t f) { glColor4x_t retval = glColor4x; glColor4x = f; return retval;} glColorMask_t set_glColorMask(glColorMask_t f) { glColorMask_t retval = glColorMask; glColorMask = f; return retval;} glColorPointer_t set_glColorPointer(glColorPointer_t f) { glColorPointer_t retval = glColorPointer; glColorPointer = f; return retval;} glCompressedTexImage2D_t set_glCompressedTexImage2D(glCompressedTexImage2D_t f) { glCompressedTexImage2D_t retval = glCompressedTexImage2D; glCompressedTexImage2D = f; return retval;} glCompressedTexSubImage2D_t set_glCompressedTexSubImage2D(glCompressedTexSubImage2D_t f) { glCompressedTexSubImage2D_t retval = glCompressedTexSubImage2D; glCompressedTexSubImage2D = f; return retval;} glCopyTexImage2D_t set_glCopyTexImage2D(glCopyTexImage2D_t f) { glCopyTexImage2D_t retval = glCopyTexImage2D; glCopyTexImage2D = f; return retval;} glCopyTexSubImage2D_t set_glCopyTexSubImage2D(glCopyTexSubImage2D_t f) { glCopyTexSubImage2D_t retval = glCopyTexSubImage2D; glCopyTexSubImage2D = f; return retval;} glCullFace_t set_glCullFace(glCullFace_t f) { glCullFace_t retval = glCullFace; glCullFace = f; return retval;} glDeleteBuffers_t set_glDeleteBuffers(glDeleteBuffers_t f) { glDeleteBuffers_t retval = glDeleteBuffers; glDeleteBuffers = f; return retval;} glDeleteTextures_t set_glDeleteTextures(glDeleteTextures_t f) { glDeleteTextures_t retval = glDeleteTextures; glDeleteTextures = f; return retval;} glDepthFunc_t set_glDepthFunc(glDepthFunc_t f) { glDepthFunc_t retval = glDepthFunc; glDepthFunc = f; return retval;} glDepthMask_t set_glDepthMask(glDepthMask_t f) { glDepthMask_t retval = glDepthMask; glDepthMask = f; return retval;} glDepthRangex_t set_glDepthRangex(glDepthRangex_t f) { glDepthRangex_t retval = glDepthRangex; glDepthRangex = f; return retval;} glDisable_t set_glDisable(glDisable_t f) { glDisable_t retval = glDisable; glDisable = f; return retval;} glDisableClientState_t set_glDisableClientState(glDisableClientState_t f) { glDisableClientState_t retval = glDisableClientState; glDisableClientState = f; return retval;} glDrawArrays_t set_glDrawArrays(glDrawArrays_t f) { glDrawArrays_t retval = glDrawArrays; glDrawArrays = f; return retval;} glDrawElements_t set_glDrawElements(glDrawElements_t f) { glDrawElements_t retval = glDrawElements; glDrawElements = f; return retval;} glEnable_t set_glEnable(glEnable_t f) { glEnable_t retval = glEnable; glEnable = f; return retval;} glEnableClientState_t set_glEnableClientState(glEnableClientState_t f) { glEnableClientState_t retval = glEnableClientState; glEnableClientState = f; return retval;} glFinish_t set_glFinish(glFinish_t f) { glFinish_t retval = glFinish; glFinish = f; return retval;} glFlush_t set_glFlush(glFlush_t f) { glFlush_t retval = glFlush; glFlush = f; return retval;} glFogx_t set_glFogx(glFogx_t f) { glFogx_t retval = glFogx; glFogx = f; return retval;} glFogxv_t set_glFogxv(glFogxv_t f) { glFogxv_t retval = glFogxv; glFogxv = f; return retval;} glFrontFace_t set_glFrontFace(glFrontFace_t f) { glFrontFace_t retval = glFrontFace; glFrontFace = f; return retval;} glFrustumx_t set_glFrustumx(glFrustumx_t f) { glFrustumx_t retval = glFrustumx; glFrustumx = f; return retval;} glGetBooleanv_t set_glGetBooleanv(glGetBooleanv_t f) { glGetBooleanv_t retval = glGetBooleanv; glGetBooleanv = f; return retval;} glGetBufferParameteriv_t set_glGetBufferParameteriv(glGetBufferParameteriv_t f) { glGetBufferParameteriv_t retval = glGetBufferParameteriv; glGetBufferParameteriv = f; return retval;} glGetClipPlanex_t set_glGetClipPlanex(glGetClipPlanex_t f) { glGetClipPlanex_t retval = glGetClipPlanex; glGetClipPlanex = f; return retval;} glGenBuffers_t set_glGenBuffers(glGenBuffers_t f) { glGenBuffers_t retval = glGenBuffers; glGenBuffers = f; return retval;} glGenTextures_t set_glGenTextures(glGenTextures_t f) { glGenTextures_t retval = glGenTextures; glGenTextures = f; return retval;} glGetError_t set_glGetError(glGetError_t f) { glGetError_t retval = glGetError; glGetError = f; return retval;} glGetFixedv_t set_glGetFixedv(glGetFixedv_t f) { glGetFixedv_t retval = glGetFixedv; glGetFixedv = f; return retval;} glGetIntegerv_t set_glGetIntegerv(glGetIntegerv_t f) { glGetIntegerv_t retval = glGetIntegerv; glGetIntegerv = f; return retval;} glGetLightxv_t set_glGetLightxv(glGetLightxv_t f) { glGetLightxv_t retval = glGetLightxv; glGetLightxv = f; return retval;} glGetMaterialxv_t set_glGetMaterialxv(glGetMaterialxv_t f) { glGetMaterialxv_t retval = glGetMaterialxv; glGetMaterialxv = f; return retval;} glGetPointerv_t set_glGetPointerv(glGetPointerv_t f) { glGetPointerv_t retval = glGetPointerv; glGetPointerv = f; return retval;} glGetString_t set_glGetString(glGetString_t f) { glGetString_t retval = glGetString; glGetString = f; return retval;} glGetTexEnviv_t set_glGetTexEnviv(glGetTexEnviv_t f) { glGetTexEnviv_t retval = glGetTexEnviv; glGetTexEnviv = f; return retval;} glGetTexEnvxv_t set_glGetTexEnvxv(glGetTexEnvxv_t f) { glGetTexEnvxv_t retval = glGetTexEnvxv; glGetTexEnvxv = f; return retval;} glGetTexParameteriv_t set_glGetTexParameteriv(glGetTexParameteriv_t f) { glGetTexParameteriv_t retval = glGetTexParameteriv; glGetTexParameteriv = f; return retval;} glGetTexParameterxv_t set_glGetTexParameterxv(glGetTexParameterxv_t f) { glGetTexParameterxv_t retval = glGetTexParameterxv; glGetTexParameterxv = f; return retval;} glHint_t set_glHint(glHint_t f) { glHint_t retval = glHint; glHint = f; return retval;} glIsBuffer_t set_glIsBuffer(glIsBuffer_t f) { glIsBuffer_t retval = glIsBuffer; glIsBuffer = f; return retval;} glIsEnabled_t set_glIsEnabled(glIsEnabled_t f) { glIsEnabled_t retval = glIsEnabled; glIsEnabled = f; return retval;} glIsTexture_t set_glIsTexture(glIsTexture_t f) { glIsTexture_t retval = glIsTexture; glIsTexture = f; return retval;} glLightModelx_t set_glLightModelx(glLightModelx_t f) { glLightModelx_t retval = glLightModelx; glLightModelx = f; return retval;} glLightModelxv_t set_glLightModelxv(glLightModelxv_t f) { glLightModelxv_t retval = glLightModelxv; glLightModelxv = f; return retval;} glLightx_t set_glLightx(glLightx_t f) { glLightx_t retval = glLightx; glLightx = f; return retval;} glLightxv_t set_glLightxv(glLightxv_t f) { glLightxv_t retval = glLightxv; glLightxv = f; return retval;} glLineWidthx_t set_glLineWidthx(glLineWidthx_t f) { glLineWidthx_t retval = glLineWidthx; glLineWidthx = f; return retval;} glLoadIdentity_t set_glLoadIdentity(glLoadIdentity_t f) { glLoadIdentity_t retval = glLoadIdentity; glLoadIdentity = f; return retval;} glLoadMatrixx_t set_glLoadMatrixx(glLoadMatrixx_t f) { glLoadMatrixx_t retval = glLoadMatrixx; glLoadMatrixx = f; return retval;} glLogicOp_t set_glLogicOp(glLogicOp_t f) { glLogicOp_t retval = glLogicOp; glLogicOp = f; return retval;} glMaterialx_t set_glMaterialx(glMaterialx_t f) { glMaterialx_t retval = glMaterialx; glMaterialx = f; return retval;} glMaterialxv_t set_glMaterialxv(glMaterialxv_t f) { glMaterialxv_t retval = glMaterialxv; glMaterialxv = f; return retval;} glMatrixMode_t set_glMatrixMode(glMatrixMode_t f) { glMatrixMode_t retval = glMatrixMode; glMatrixMode = f; return retval;} glMultMatrixx_t set_glMultMatrixx(glMultMatrixx_t f) { glMultMatrixx_t retval = glMultMatrixx; glMultMatrixx = f; return retval;} glMultiTexCoord4x_t set_glMultiTexCoord4x(glMultiTexCoord4x_t f) { glMultiTexCoord4x_t retval = glMultiTexCoord4x; glMultiTexCoord4x = f; return retval;} glNormal3x_t set_glNormal3x(glNormal3x_t f) { glNormal3x_t retval = glNormal3x; glNormal3x = f; return retval;} glNormalPointer_t set_glNormalPointer(glNormalPointer_t f) { glNormalPointer_t retval = glNormalPointer; glNormalPointer = f; return retval;} glOrthox_t set_glOrthox(glOrthox_t f) { glOrthox_t retval = glOrthox; glOrthox = f; return retval;} glPixelStorei_t set_glPixelStorei(glPixelStorei_t f) { glPixelStorei_t retval = glPixelStorei; glPixelStorei = f; return retval;} glPointParameterx_t set_glPointParameterx(glPointParameterx_t f) { glPointParameterx_t retval = glPointParameterx; glPointParameterx = f; return retval;} glPointParameterxv_t set_glPointParameterxv(glPointParameterxv_t f) { glPointParameterxv_t retval = glPointParameterxv; glPointParameterxv = f; return retval;} glPointSizex_t set_glPointSizex(glPointSizex_t f) { glPointSizex_t retval = glPointSizex; glPointSizex = f; return retval;} glPolygonOffsetx_t set_glPolygonOffsetx(glPolygonOffsetx_t f) { glPolygonOffsetx_t retval = glPolygonOffsetx; glPolygonOffsetx = f; return retval;} glPopMatrix_t set_glPopMatrix(glPopMatrix_t f) { glPopMatrix_t retval = glPopMatrix; glPopMatrix = f; return retval;} glPushMatrix_t set_glPushMatrix(glPushMatrix_t f) { glPushMatrix_t retval = glPushMatrix; glPushMatrix = f; return retval;} glReadPixels_t set_glReadPixels(glReadPixels_t f) { glReadPixels_t retval = glReadPixels; glReadPixels = f; return retval;} glRotatex_t set_glRotatex(glRotatex_t f) { glRotatex_t retval = glRotatex; glRotatex = f; return retval;} glSampleCoverage_t set_glSampleCoverage(glSampleCoverage_t f) { glSampleCoverage_t retval = glSampleCoverage; glSampleCoverage = f; return retval;} glSampleCoveragex_t set_glSampleCoveragex(glSampleCoveragex_t f) { glSampleCoveragex_t retval = glSampleCoveragex; glSampleCoveragex = f; return retval;} glScalex_t set_glScalex(glScalex_t f) { glScalex_t retval = glScalex; glScalex = f; return retval;} glScissor_t set_glScissor(glScissor_t f) { glScissor_t retval = glScissor; glScissor = f; return retval;} glShadeModel_t set_glShadeModel(glShadeModel_t f) { glShadeModel_t retval = glShadeModel; glShadeModel = f; return retval;} glStencilFunc_t set_glStencilFunc(glStencilFunc_t f) { glStencilFunc_t retval = glStencilFunc; glStencilFunc = f; return retval;} glStencilMask_t set_glStencilMask(glStencilMask_t f) { glStencilMask_t retval = glStencilMask; glStencilMask = f; return retval;} glStencilOp_t set_glStencilOp(glStencilOp_t f) { glStencilOp_t retval = glStencilOp; glStencilOp = f; return retval;} glTexCoordPointer_t set_glTexCoordPointer(glTexCoordPointer_t f) { glTexCoordPointer_t retval = glTexCoordPointer; glTexCoordPointer = f; return retval;} glTexEnvi_t set_glTexEnvi(glTexEnvi_t f) { glTexEnvi_t retval = glTexEnvi; glTexEnvi = f; return retval;} glTexEnvx_t set_glTexEnvx(glTexEnvx_t f) { glTexEnvx_t retval = glTexEnvx; glTexEnvx = f; return retval;} glTexEnviv_t set_glTexEnviv(glTexEnviv_t f) { glTexEnviv_t retval = glTexEnviv; glTexEnviv = f; return retval;} glTexEnvxv_t set_glTexEnvxv(glTexEnvxv_t f) { glTexEnvxv_t retval = glTexEnvxv; glTexEnvxv = f; return retval;} glTexImage2D_t set_glTexImage2D(glTexImage2D_t f) { glTexImage2D_t retval = glTexImage2D; glTexImage2D = f; return retval;} glTexParameteri_t set_glTexParameteri(glTexParameteri_t f) { glTexParameteri_t retval = glTexParameteri; glTexParameteri = f; return retval;} glTexParameterx_t set_glTexParameterx(glTexParameterx_t f) { glTexParameterx_t retval = glTexParameterx; glTexParameterx = f; return retval;} glTexParameteriv_t set_glTexParameteriv(glTexParameteriv_t f) { glTexParameteriv_t retval = glTexParameteriv; glTexParameteriv = f; return retval;} glTexParameterxv_t set_glTexParameterxv(glTexParameterxv_t f) { glTexParameterxv_t retval = glTexParameterxv; glTexParameterxv = f; return retval;} glTexSubImage2D_t set_glTexSubImage2D(glTexSubImage2D_t f) { glTexSubImage2D_t retval = glTexSubImage2D; glTexSubImage2D = f; return retval;} glTranslatex_t set_glTranslatex(glTranslatex_t f) { glTranslatex_t retval = glTranslatex; glTranslatex = f; return retval;} glVertexPointer_t set_glVertexPointer(glVertexPointer_t f) { glVertexPointer_t retval = glVertexPointer; glVertexPointer = f; return retval;} glViewport_t set_glViewport(glViewport_t f) { glViewport_t retval = glViewport; glViewport = f; return retval;} glPointSizePointerOES_t set_glPointSizePointerOES(glPointSizePointerOES_t f) { glPointSizePointerOES_t retval = glPointSizePointerOES; glPointSizePointerOES = f; return retval;} glBlendEquationSeparateOES_t set_glBlendEquationSeparateOES(glBlendEquationSeparateOES_t f) { glBlendEquationSeparateOES_t retval = glBlendEquationSeparateOES; glBlendEquationSeparateOES = f; return retval;} glBlendFuncSeparateOES_t set_glBlendFuncSeparateOES(glBlendFuncSeparateOES_t f) { glBlendFuncSeparateOES_t retval = glBlendFuncSeparateOES; glBlendFuncSeparateOES = f; return retval;} glBlendEquationOES_t set_glBlendEquationOES(glBlendEquationOES_t f) { glBlendEquationOES_t retval = glBlendEquationOES; glBlendEquationOES = f; return retval;} glDrawTexsOES_t set_glDrawTexsOES(glDrawTexsOES_t f) { glDrawTexsOES_t retval = glDrawTexsOES; glDrawTexsOES = f; return retval;} glDrawTexiOES_t set_glDrawTexiOES(glDrawTexiOES_t f) { glDrawTexiOES_t retval = glDrawTexiOES; glDrawTexiOES = f; return retval;} glDrawTexxOES_t set_glDrawTexxOES(glDrawTexxOES_t f) { glDrawTexxOES_t retval = glDrawTexxOES; glDrawTexxOES = f; return retval;} glDrawTexsvOES_t set_glDrawTexsvOES(glDrawTexsvOES_t f) { glDrawTexsvOES_t retval = glDrawTexsvOES; glDrawTexsvOES = f; return retval;} glDrawTexivOES_t set_glDrawTexivOES(glDrawTexivOES_t f) { glDrawTexivOES_t retval = glDrawTexivOES; glDrawTexivOES = f; return retval;} glDrawTexxvOES_t set_glDrawTexxvOES(glDrawTexxvOES_t f) { glDrawTexxvOES_t retval = glDrawTexxvOES; glDrawTexxvOES = f; return retval;} glDrawTexfOES_t set_glDrawTexfOES(glDrawTexfOES_t f) { glDrawTexfOES_t retval = glDrawTexfOES; glDrawTexfOES = f; return retval;} glDrawTexfvOES_t set_glDrawTexfvOES(glDrawTexfvOES_t f) { glDrawTexfvOES_t retval = glDrawTexfvOES; glDrawTexfvOES = f; return retval;} glEGLImageTargetTexture2DOES_t set_glEGLImageTargetTexture2DOES(glEGLImageTargetTexture2DOES_t f) { glEGLImageTargetTexture2DOES_t retval = glEGLImageTargetTexture2DOES; glEGLImageTargetTexture2DOES = f; return retval;} glEGLImageTargetRenderbufferStorageOES_t set_glEGLImageTargetRenderbufferStorageOES(glEGLImageTargetRenderbufferStorageOES_t f) { glEGLImageTargetRenderbufferStorageOES_t retval = glEGLImageTargetRenderbufferStorageOES; glEGLImageTargetRenderbufferStorageOES = f; return retval;} glAlphaFuncxOES_t set_glAlphaFuncxOES(glAlphaFuncxOES_t f) { glAlphaFuncxOES_t retval = glAlphaFuncxOES; glAlphaFuncxOES = f; return retval;} glClearColorxOES_t set_glClearColorxOES(glClearColorxOES_t f) { glClearColorxOES_t retval = glClearColorxOES; glClearColorxOES = f; return retval;} glClearDepthxOES_t set_glClearDepthxOES(glClearDepthxOES_t f) { glClearDepthxOES_t retval = glClearDepthxOES; glClearDepthxOES = f; return retval;} glClipPlanexOES_t set_glClipPlanexOES(glClipPlanexOES_t f) { glClipPlanexOES_t retval = glClipPlanexOES; glClipPlanexOES = f; return retval;} glColor4xOES_t set_glColor4xOES(glColor4xOES_t f) { glColor4xOES_t retval = glColor4xOES; glColor4xOES = f; return retval;} glDepthRangexOES_t set_glDepthRangexOES(glDepthRangexOES_t f) { glDepthRangexOES_t retval = glDepthRangexOES; glDepthRangexOES = f; return retval;} glFogxOES_t set_glFogxOES(glFogxOES_t f) { glFogxOES_t retval = glFogxOES; glFogxOES = f; return retval;} glFogxvOES_t set_glFogxvOES(glFogxvOES_t f) { glFogxvOES_t retval = glFogxvOES; glFogxvOES = f; return retval;} glFrustumxOES_t set_glFrustumxOES(glFrustumxOES_t f) { glFrustumxOES_t retval = glFrustumxOES; glFrustumxOES = f; return retval;} glGetClipPlanexOES_t set_glGetClipPlanexOES(glGetClipPlanexOES_t f) { glGetClipPlanexOES_t retval = glGetClipPlanexOES; glGetClipPlanexOES = f; return retval;} glGetFixedvOES_t set_glGetFixedvOES(glGetFixedvOES_t f) { glGetFixedvOES_t retval = glGetFixedvOES; glGetFixedvOES = f; return retval;} glGetLightxvOES_t set_glGetLightxvOES(glGetLightxvOES_t f) { glGetLightxvOES_t retval = glGetLightxvOES; glGetLightxvOES = f; return retval;} glGetMaterialxvOES_t set_glGetMaterialxvOES(glGetMaterialxvOES_t f) { glGetMaterialxvOES_t retval = glGetMaterialxvOES; glGetMaterialxvOES = f; return retval;} glGetTexEnvxvOES_t set_glGetTexEnvxvOES(glGetTexEnvxvOES_t f) { glGetTexEnvxvOES_t retval = glGetTexEnvxvOES; glGetTexEnvxvOES = f; return retval;} glGetTexParameterxvOES_t set_glGetTexParameterxvOES(glGetTexParameterxvOES_t f) { glGetTexParameterxvOES_t retval = glGetTexParameterxvOES; glGetTexParameterxvOES = f; return retval;} glLightModelxOES_t set_glLightModelxOES(glLightModelxOES_t f) { glLightModelxOES_t retval = glLightModelxOES; glLightModelxOES = f; return retval;} glLightModelxvOES_t set_glLightModelxvOES(glLightModelxvOES_t f) { glLightModelxvOES_t retval = glLightModelxvOES; glLightModelxvOES = f; return retval;} glLightxOES_t set_glLightxOES(glLightxOES_t f) { glLightxOES_t retval = glLightxOES; glLightxOES = f; return retval;} glLightxvOES_t set_glLightxvOES(glLightxvOES_t f) { glLightxvOES_t retval = glLightxvOES; glLightxvOES = f; return retval;} glLineWidthxOES_t set_glLineWidthxOES(glLineWidthxOES_t f) { glLineWidthxOES_t retval = glLineWidthxOES; glLineWidthxOES = f; return retval;} glLoadMatrixxOES_t set_glLoadMatrixxOES(glLoadMatrixxOES_t f) { glLoadMatrixxOES_t retval = glLoadMatrixxOES; glLoadMatrixxOES = f; return retval;} glMaterialxOES_t set_glMaterialxOES(glMaterialxOES_t f) { glMaterialxOES_t retval = glMaterialxOES; glMaterialxOES = f; return retval;} glMaterialxvOES_t set_glMaterialxvOES(glMaterialxvOES_t f) { glMaterialxvOES_t retval = glMaterialxvOES; glMaterialxvOES = f; return retval;} glMultMatrixxOES_t set_glMultMatrixxOES(glMultMatrixxOES_t f) { glMultMatrixxOES_t retval = glMultMatrixxOES; glMultMatrixxOES = f; return retval;} glMultiTexCoord4xOES_t set_glMultiTexCoord4xOES(glMultiTexCoord4xOES_t f) { glMultiTexCoord4xOES_t retval = glMultiTexCoord4xOES; glMultiTexCoord4xOES = f; return retval;} glNormal3xOES_t set_glNormal3xOES(glNormal3xOES_t f) { glNormal3xOES_t retval = glNormal3xOES; glNormal3xOES = f; return retval;} glOrthoxOES_t set_glOrthoxOES(glOrthoxOES_t f) { glOrthoxOES_t retval = glOrthoxOES; glOrthoxOES = f; return retval;} glPointParameterxOES_t set_glPointParameterxOES(glPointParameterxOES_t f) { glPointParameterxOES_t retval = glPointParameterxOES; glPointParameterxOES = f; return retval;} glPointParameterxvOES_t set_glPointParameterxvOES(glPointParameterxvOES_t f) { glPointParameterxvOES_t retval = glPointParameterxvOES; glPointParameterxvOES = f; return retval;} glPointSizexOES_t set_glPointSizexOES(glPointSizexOES_t f) { glPointSizexOES_t retval = glPointSizexOES; glPointSizexOES = f; return retval;} glPolygonOffsetxOES_t set_glPolygonOffsetxOES(glPolygonOffsetxOES_t f) { glPolygonOffsetxOES_t retval = glPolygonOffsetxOES; glPolygonOffsetxOES = f; return retval;} glRotatexOES_t set_glRotatexOES(glRotatexOES_t f) { glRotatexOES_t retval = glRotatexOES; glRotatexOES = f; return retval;} glSampleCoveragexOES_t set_glSampleCoveragexOES(glSampleCoveragexOES_t f) { glSampleCoveragexOES_t retval = glSampleCoveragexOES; glSampleCoveragexOES = f; return retval;} glScalexOES_t set_glScalexOES(glScalexOES_t f) { glScalexOES_t retval = glScalexOES; glScalexOES = f; return retval;} glTexEnvxOES_t set_glTexEnvxOES(glTexEnvxOES_t f) { glTexEnvxOES_t retval = glTexEnvxOES; glTexEnvxOES = f; return retval;} glTexEnvxvOES_t set_glTexEnvxvOES(glTexEnvxvOES_t f) { glTexEnvxvOES_t retval = glTexEnvxvOES; glTexEnvxvOES = f; return retval;} glTexParameterxOES_t set_glTexParameterxOES(glTexParameterxOES_t f) { glTexParameterxOES_t retval = glTexParameterxOES; glTexParameterxOES = f; return retval;} glTexParameterxvOES_t set_glTexParameterxvOES(glTexParameterxvOES_t f) { glTexParameterxvOES_t retval = glTexParameterxvOES; glTexParameterxvOES = f; return retval;} glTranslatexOES_t set_glTranslatexOES(glTranslatexOES_t f) { glTranslatexOES_t retval = glTranslatexOES; glTranslatexOES = f; return retval;} glIsRenderbufferOES_t set_glIsRenderbufferOES(glIsRenderbufferOES_t f) { glIsRenderbufferOES_t retval = glIsRenderbufferOES; glIsRenderbufferOES = f; return retval;} glBindRenderbufferOES_t set_glBindRenderbufferOES(glBindRenderbufferOES_t f) { glBindRenderbufferOES_t retval = glBindRenderbufferOES; glBindRenderbufferOES = f; return retval;} glDeleteRenderbuffersOES_t set_glDeleteRenderbuffersOES(glDeleteRenderbuffersOES_t f) { glDeleteRenderbuffersOES_t retval = glDeleteRenderbuffersOES; glDeleteRenderbuffersOES = f; return retval;} glGenRenderbuffersOES_t set_glGenRenderbuffersOES(glGenRenderbuffersOES_t f) { glGenRenderbuffersOES_t retval = glGenRenderbuffersOES; glGenRenderbuffersOES = f; return retval;} glRenderbufferStorageOES_t set_glRenderbufferStorageOES(glRenderbufferStorageOES_t f) { glRenderbufferStorageOES_t retval = glRenderbufferStorageOES; glRenderbufferStorageOES = f; return retval;} glGetRenderbufferParameterivOES_t set_glGetRenderbufferParameterivOES(glGetRenderbufferParameterivOES_t f) { glGetRenderbufferParameterivOES_t retval = glGetRenderbufferParameterivOES; glGetRenderbufferParameterivOES = f; return retval;} glIsFramebufferOES_t set_glIsFramebufferOES(glIsFramebufferOES_t f) { glIsFramebufferOES_t retval = glIsFramebufferOES; glIsFramebufferOES = f; return retval;} glBindFramebufferOES_t set_glBindFramebufferOES(glBindFramebufferOES_t f) { glBindFramebufferOES_t retval = glBindFramebufferOES; glBindFramebufferOES = f; return retval;} glDeleteFramebuffersOES_t set_glDeleteFramebuffersOES(glDeleteFramebuffersOES_t f) { glDeleteFramebuffersOES_t retval = glDeleteFramebuffersOES; glDeleteFramebuffersOES = f; return retval;} glGenFramebuffersOES_t set_glGenFramebuffersOES(glGenFramebuffersOES_t f) { glGenFramebuffersOES_t retval = glGenFramebuffersOES; glGenFramebuffersOES = f; return retval;} glCheckFramebufferStatusOES_t set_glCheckFramebufferStatusOES(glCheckFramebufferStatusOES_t f) { glCheckFramebufferStatusOES_t retval = glCheckFramebufferStatusOES; glCheckFramebufferStatusOES = f; return retval;} glFramebufferRenderbufferOES_t set_glFramebufferRenderbufferOES(glFramebufferRenderbufferOES_t f) { glFramebufferRenderbufferOES_t retval = glFramebufferRenderbufferOES; glFramebufferRenderbufferOES = f; return retval;} glFramebufferTexture2DOES_t set_glFramebufferTexture2DOES(glFramebufferTexture2DOES_t f) { glFramebufferTexture2DOES_t retval = glFramebufferTexture2DOES; glFramebufferTexture2DOES = f; return retval;} glGetFramebufferAttachmentParameterivOES_t set_glGetFramebufferAttachmentParameterivOES(glGetFramebufferAttachmentParameterivOES_t f) { glGetFramebufferAttachmentParameterivOES_t retval = glGetFramebufferAttachmentParameterivOES; glGetFramebufferAttachmentParameterivOES = f; return retval;} glGenerateMipmapOES_t set_glGenerateMipmapOES(glGenerateMipmapOES_t f) { glGenerateMipmapOES_t retval = glGenerateMipmapOES; glGenerateMipmapOES = f; return retval;} glMapBufferOES_t set_glMapBufferOES(glMapBufferOES_t f) { glMapBufferOES_t retval = glMapBufferOES; glMapBufferOES = f; return retval;} glUnmapBufferOES_t set_glUnmapBufferOES(glUnmapBufferOES_t f) { glUnmapBufferOES_t retval = glUnmapBufferOES; glUnmapBufferOES = f; return retval;} glGetBufferPointervOES_t set_glGetBufferPointervOES(glGetBufferPointervOES_t f) { glGetBufferPointervOES_t retval = glGetBufferPointervOES; glGetBufferPointervOES = f; return retval;} glCurrentPaletteMatrixOES_t set_glCurrentPaletteMatrixOES(glCurrentPaletteMatrixOES_t f) { glCurrentPaletteMatrixOES_t retval = glCurrentPaletteMatrixOES; glCurrentPaletteMatrixOES = f; return retval;} glLoadPaletteFromModelViewMatrixOES_t set_glLoadPaletteFromModelViewMatrixOES(glLoadPaletteFromModelViewMatrixOES_t f) { glLoadPaletteFromModelViewMatrixOES_t retval = glLoadPaletteFromModelViewMatrixOES; glLoadPaletteFromModelViewMatrixOES = f; return retval;} glMatrixIndexPointerOES_t set_glMatrixIndexPointerOES(glMatrixIndexPointerOES_t f) { glMatrixIndexPointerOES_t retval = glMatrixIndexPointerOES; glMatrixIndexPointerOES = f; return retval;} glWeightPointerOES_t set_glWeightPointerOES(glWeightPointerOES_t f) { glWeightPointerOES_t retval = glWeightPointerOES; glWeightPointerOES = f; return retval;} glQueryMatrixxOES_t set_glQueryMatrixxOES(glQueryMatrixxOES_t f) { glQueryMatrixxOES_t retval = glQueryMatrixxOES; glQueryMatrixxOES = f; return retval;} glDepthRangefOES_t set_glDepthRangefOES(glDepthRangefOES_t f) { glDepthRangefOES_t retval = glDepthRangefOES; glDepthRangefOES = f; return retval;} glFrustumfOES_t set_glFrustumfOES(glFrustumfOES_t f) { glFrustumfOES_t retval = glFrustumfOES; glFrustumfOES = f; return retval;} glOrthofOES_t set_glOrthofOES(glOrthofOES_t f) { glOrthofOES_t retval = glOrthofOES; glOrthofOES = f; return retval;} glClipPlanefOES_t set_glClipPlanefOES(glClipPlanefOES_t f) { glClipPlanefOES_t retval = glClipPlanefOES; glClipPlanefOES = f; return retval;} glGetClipPlanefOES_t set_glGetClipPlanefOES(glGetClipPlanefOES_t f) { glGetClipPlanefOES_t retval = glGetClipPlanefOES; glGetClipPlanefOES = f; return retval;} glClearDepthfOES_t set_glClearDepthfOES(glClearDepthfOES_t f) { glClearDepthfOES_t retval = glClearDepthfOES; glClearDepthfOES = f; return retval;} glTexGenfOES_t set_glTexGenfOES(glTexGenfOES_t f) { glTexGenfOES_t retval = glTexGenfOES; glTexGenfOES = f; return retval;} glTexGenfvOES_t set_glTexGenfvOES(glTexGenfvOES_t f) { glTexGenfvOES_t retval = glTexGenfvOES; glTexGenfvOES = f; return retval;} glTexGeniOES_t set_glTexGeniOES(glTexGeniOES_t f) { glTexGeniOES_t retval = glTexGeniOES; glTexGeniOES = f; return retval;} glTexGenivOES_t set_glTexGenivOES(glTexGenivOES_t f) { glTexGenivOES_t retval = glTexGenivOES; glTexGenivOES = f; return retval;} glTexGenxOES_t set_glTexGenxOES(glTexGenxOES_t f) { glTexGenxOES_t retval = glTexGenxOES; glTexGenxOES = f; return retval;} glTexGenxvOES_t set_glTexGenxvOES(glTexGenxvOES_t f) { glTexGenxvOES_t retval = glTexGenxvOES; glTexGenxvOES = f; return retval;} glGetTexGenfvOES_t set_glGetTexGenfvOES(glGetTexGenfvOES_t f) { glGetTexGenfvOES_t retval = glGetTexGenfvOES; glGetTexGenfvOES = f; return retval;} glGetTexGenivOES_t set_glGetTexGenivOES(glGetTexGenivOES_t f) { glGetTexGenivOES_t retval = glGetTexGenivOES; glGetTexGenivOES = f; return retval;} glGetTexGenxvOES_t set_glGetTexGenxvOES(glGetTexGenxvOES_t f) { glGetTexGenxvOES_t retval = glGetTexGenxvOES; glGetTexGenxvOES = f; return retval;} glBindVertexArrayOES_t set_glBindVertexArrayOES(glBindVertexArrayOES_t f) { glBindVertexArrayOES_t retval = glBindVertexArrayOES; glBindVertexArrayOES = f; return retval;} glDeleteVertexArraysOES_t set_glDeleteVertexArraysOES(glDeleteVertexArraysOES_t f) { glDeleteVertexArraysOES_t retval = glDeleteVertexArraysOES; glDeleteVertexArraysOES = f; return retval;} glGenVertexArraysOES_t set_glGenVertexArraysOES(glGenVertexArraysOES_t f) { glGenVertexArraysOES_t retval = glGenVertexArraysOES; glGenVertexArraysOES = f; return retval;} glIsVertexArrayOES_t set_glIsVertexArrayOES(glIsVertexArrayOES_t f) { glIsVertexArrayOES_t retval = glIsVertexArrayOES; glIsVertexArrayOES = f; return retval;} glDiscardFramebufferEXT_t set_glDiscardFramebufferEXT(glDiscardFramebufferEXT_t f) { glDiscardFramebufferEXT_t retval = glDiscardFramebufferEXT; glDiscardFramebufferEXT = f; return retval;} glMultiDrawArraysEXT_t set_glMultiDrawArraysEXT(glMultiDrawArraysEXT_t f) { glMultiDrawArraysEXT_t retval = glMultiDrawArraysEXT; glMultiDrawArraysEXT = f; return retval;} glMultiDrawElementsEXT_t set_glMultiDrawElementsEXT(glMultiDrawElementsEXT_t f) { glMultiDrawElementsEXT_t retval = glMultiDrawElementsEXT; glMultiDrawElementsEXT = f; return retval;} glClipPlanefIMG_t set_glClipPlanefIMG(glClipPlanefIMG_t f) { glClipPlanefIMG_t retval = glClipPlanefIMG; glClipPlanefIMG = f; return retval;} glClipPlanexIMG_t set_glClipPlanexIMG(glClipPlanexIMG_t f) { glClipPlanexIMG_t retval = glClipPlanexIMG; glClipPlanexIMG = f; return retval;} glRenderbufferStorageMultisampleIMG_t set_glRenderbufferStorageMultisampleIMG(glRenderbufferStorageMultisampleIMG_t f) { glRenderbufferStorageMultisampleIMG_t retval = glRenderbufferStorageMultisampleIMG; glRenderbufferStorageMultisampleIMG = f; return retval;} glFramebufferTexture2DMultisampleIMG_t set_glFramebufferTexture2DMultisampleIMG(glFramebufferTexture2DMultisampleIMG_t f) { glFramebufferTexture2DMultisampleIMG_t retval = glFramebufferTexture2DMultisampleIMG; glFramebufferTexture2DMultisampleIMG = f; return retval;} glDeleteFencesNV_t set_glDeleteFencesNV(glDeleteFencesNV_t f) { glDeleteFencesNV_t retval = glDeleteFencesNV; glDeleteFencesNV = f; return retval;} glGenFencesNV_t set_glGenFencesNV(glGenFencesNV_t f) { glGenFencesNV_t retval = glGenFencesNV; glGenFencesNV = f; return retval;} glIsFenceNV_t set_glIsFenceNV(glIsFenceNV_t f) { glIsFenceNV_t retval = glIsFenceNV; glIsFenceNV = f; return retval;} glTestFenceNV_t set_glTestFenceNV(glTestFenceNV_t f) { glTestFenceNV_t retval = glTestFenceNV; glTestFenceNV = f; return retval;} glGetFenceivNV_t set_glGetFenceivNV(glGetFenceivNV_t f) { glGetFenceivNV_t retval = glGetFenceivNV; glGetFenceivNV = f; return retval;} glFinishFenceNV_t set_glFinishFenceNV(glFinishFenceNV_t f) { glFinishFenceNV_t retval = glFinishFenceNV; glFinishFenceNV = f; return retval;} glSetFenceNV_t set_glSetFenceNV(glSetFenceNV_t f) { glSetFenceNV_t retval = glSetFenceNV; glSetFenceNV = f; return retval;} glGetDriverControlsQCOM_t set_glGetDriverControlsQCOM(glGetDriverControlsQCOM_t f) { glGetDriverControlsQCOM_t retval = glGetDriverControlsQCOM; glGetDriverControlsQCOM = f; return retval;} glGetDriverControlStringQCOM_t set_glGetDriverControlStringQCOM(glGetDriverControlStringQCOM_t f) { glGetDriverControlStringQCOM_t retval = glGetDriverControlStringQCOM; glGetDriverControlStringQCOM = f; return retval;} glEnableDriverControlQCOM_t set_glEnableDriverControlQCOM(glEnableDriverControlQCOM_t f) { glEnableDriverControlQCOM_t retval = glEnableDriverControlQCOM; glEnableDriverControlQCOM = f; return retval;} glDisableDriverControlQCOM_t set_glDisableDriverControlQCOM(glDisableDriverControlQCOM_t f) { glDisableDriverControlQCOM_t retval = glDisableDriverControlQCOM; glDisableDriverControlQCOM = f; return retval;} glExtGetTexturesQCOM_t set_glExtGetTexturesQCOM(glExtGetTexturesQCOM_t f) { glExtGetTexturesQCOM_t retval = glExtGetTexturesQCOM; glExtGetTexturesQCOM = f; return retval;} glExtGetBuffersQCOM_t set_glExtGetBuffersQCOM(glExtGetBuffersQCOM_t f) { glExtGetBuffersQCOM_t retval = glExtGetBuffersQCOM; glExtGetBuffersQCOM = f; return retval;} glExtGetRenderbuffersQCOM_t set_glExtGetRenderbuffersQCOM(glExtGetRenderbuffersQCOM_t f) { glExtGetRenderbuffersQCOM_t retval = glExtGetRenderbuffersQCOM; glExtGetRenderbuffersQCOM = f; return retval;} glExtGetFramebuffersQCOM_t set_glExtGetFramebuffersQCOM(glExtGetFramebuffersQCOM_t f) { glExtGetFramebuffersQCOM_t retval = glExtGetFramebuffersQCOM; glExtGetFramebuffersQCOM = f; return retval;} glExtGetTexLevelParameterivQCOM_t set_glExtGetTexLevelParameterivQCOM(glExtGetTexLevelParameterivQCOM_t f) { glExtGetTexLevelParameterivQCOM_t retval = glExtGetTexLevelParameterivQCOM; glExtGetTexLevelParameterivQCOM = f; return retval;} glExtTexObjectStateOverrideiQCOM_t set_glExtTexObjectStateOverrideiQCOM(glExtTexObjectStateOverrideiQCOM_t f) { glExtTexObjectStateOverrideiQCOM_t retval = glExtTexObjectStateOverrideiQCOM; glExtTexObjectStateOverrideiQCOM = f; return retval;} glExtGetTexSubImageQCOM_t set_glExtGetTexSubImageQCOM(glExtGetTexSubImageQCOM_t f) { glExtGetTexSubImageQCOM_t retval = glExtGetTexSubImageQCOM; glExtGetTexSubImageQCOM = f; return retval;} glExtGetBufferPointervQCOM_t set_glExtGetBufferPointervQCOM(glExtGetBufferPointervQCOM_t f) { glExtGetBufferPointervQCOM_t retval = glExtGetBufferPointervQCOM; glExtGetBufferPointervQCOM = f; return retval;} glExtGetShadersQCOM_t set_glExtGetShadersQCOM(glExtGetShadersQCOM_t f) { glExtGetShadersQCOM_t retval = glExtGetShadersQCOM; glExtGetShadersQCOM = f; return retval;} glExtGetProgramsQCOM_t set_glExtGetProgramsQCOM(glExtGetProgramsQCOM_t f) { glExtGetProgramsQCOM_t retval = glExtGetProgramsQCOM; glExtGetProgramsQCOM = f; return retval;} glExtIsProgramBinaryQCOM_t set_glExtIsProgramBinaryQCOM(glExtIsProgramBinaryQCOM_t f) { glExtIsProgramBinaryQCOM_t retval = glExtIsProgramBinaryQCOM; glExtIsProgramBinaryQCOM = f; return retval;} glExtGetProgramBinarySourceQCOM_t set_glExtGetProgramBinarySourceQCOM(glExtGetProgramBinarySourceQCOM_t f) { glExtGetProgramBinarySourceQCOM_t retval = glExtGetProgramBinarySourceQCOM; glExtGetProgramBinarySourceQCOM = f; return retval;} glStartTilingQCOM_t set_glStartTilingQCOM(glStartTilingQCOM_t f) { glStartTilingQCOM_t retval = glStartTilingQCOM; glStartTilingQCOM = f; return retval;} glEndTilingQCOM_t set_glEndTilingQCOM(glEndTilingQCOM_t f) { glEndTilingQCOM_t retval = glEndTilingQCOM; glEndTilingQCOM = f; return retval;} }; gles_dispatch *create_gles_dispatch(void *gles_andorid); #endif
51,840
C++
.h
565
86.899115
295
0.806417
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,765
ThreadInfo.h
anbox_anbox/android/opengl/tests/gles_android_wrapper/ThreadInfo.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _THREAD_INFO_H #define _THREAD_INFO_H #include "ServerConnection.h" #include <EGL/egl.h> struct EGLWrapperContext { EGLWrapperContext(EGLContext p_aglContext, int _version) { aglContext = p_aglContext; clientState = NULL; version = _version; } ~EGLWrapperContext() { delete clientState; } EGLContext aglContext; GLClientState *clientState; int version; }; struct EGLThreadInfo { EGLThreadInfo() : currentContext(NULL), serverConn(NULL) {} EGLWrapperContext *currentContext; ServerConnection *serverConn; }; EGLThreadInfo *getEGLThreadInfo(); #endif
1,238
C++
.h
41
27.243902
74
0.751051
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,766
gles_ftable.h
anbox_anbox/android/opengl/tests/gles_android_wrapper/gles_ftable.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ static struct _gles_funcs_by_name { const char *name; void *proc; } gles_funcs_by_name[] = { {"glAlphaFunc", (void *)glAlphaFunc}, {"glClearColor", (void *)glClearColor}, {"glClearDepthf", (void *)glClearDepthf}, {"glClipPlanef", (void *)glClipPlanef}, {"glColor4f", (void *)glColor4f}, {"glDepthRangef", (void *)glDepthRangef}, {"glFogf", (void *)glFogf}, {"glFogfv", (void *)glFogfv}, {"glFrustumf", (void *)glFrustumf}, {"glGetClipPlanef", (void *)glGetClipPlanef}, {"glGetFloatv", (void *)glGetFloatv}, {"glGetLightfv", (void *)glGetLightfv}, {"glGetMaterialfv", (void *)glGetMaterialfv}, {"glGetTexEnvfv", (void *)glGetTexEnvfv}, {"glGetTexParameterfv", (void *)glGetTexParameterfv}, {"glLightModelf", (void *)glLightModelf}, {"glLightModelfv", (void *)glLightModelfv}, {"glLightf", (void *)glLightf}, {"glLightfv", (void *)glLightfv}, {"glLineWidth", (void *)glLineWidth}, {"glLoadMatrixf", (void *)glLoadMatrixf}, {"glMaterialf", (void *)glMaterialf}, {"glMaterialfv", (void *)glMaterialfv}, {"glMultMatrixf", (void *)glMultMatrixf}, {"glMultiTexCoord4f", (void *)glMultiTexCoord4f}, {"glNormal3f", (void *)glNormal3f}, {"glOrthof", (void *)glOrthof}, {"glPointParameterf", (void *)glPointParameterf}, {"glPointParameterfv", (void *)glPointParameterfv}, {"glPointSize", (void *)glPointSize}, {"glPolygonOffset", (void *)glPolygonOffset}, {"glRotatef", (void *)glRotatef}, {"glScalef", (void *)glScalef}, {"glTexEnvf", (void *)glTexEnvf}, {"glTexEnvfv", (void *)glTexEnvfv}, {"glTexParameterf", (void *)glTexParameterf}, {"glTexParameterfv", (void *)glTexParameterfv}, {"glTranslatef", (void *)glTranslatef}, {"glActiveTexture", (void *)glActiveTexture}, {"glAlphaFuncx", (void *)glAlphaFuncx}, {"glBindBuffer", (void *)glBindBuffer}, {"glBindTexture", (void *)glBindTexture}, {"glBlendFunc", (void *)glBlendFunc}, {"glBufferData", (void *)glBufferData}, {"glBufferSubData", (void *)glBufferSubData}, {"glClear", (void *)glClear}, {"glClearColorx", (void *)glClearColorx}, {"glClearDepthx", (void *)glClearDepthx}, {"glClearStencil", (void *)glClearStencil}, {"glClientActiveTexture", (void *)glClientActiveTexture}, {"glClipPlanex", (void *)glClipPlanex}, {"glColor4ub", (void *)glColor4ub}, {"glColor4x", (void *)glColor4x}, {"glColorMask", (void *)glColorMask}, {"glColorPointer", (void *)glColorPointer}, {"glCompressedTexImage2D", (void *)glCompressedTexImage2D}, {"glCompressedTexSubImage2D", (void *)glCompressedTexSubImage2D}, {"glCopyTexImage2D", (void *)glCopyTexImage2D}, {"glCopyTexSubImage2D", (void *)glCopyTexSubImage2D}, {"glCullFace", (void *)glCullFace}, {"glDeleteBuffers", (void *)glDeleteBuffers}, {"glDeleteTextures", (void *)glDeleteTextures}, {"glDepthFunc", (void *)glDepthFunc}, {"glDepthMask", (void *)glDepthMask}, {"glDepthRangex", (void *)glDepthRangex}, {"glDisable", (void *)glDisable}, {"glDisableClientState", (void *)glDisableClientState}, {"glDrawArrays", (void *)glDrawArrays}, {"glDrawElements", (void *)glDrawElements}, {"glEnable", (void *)glEnable}, {"glEnableClientState", (void *)glEnableClientState}, {"glFinish", (void *)glFinish}, {"glFlush", (void *)glFlush}, {"glFogx", (void *)glFogx}, {"glFogxv", (void *)glFogxv}, {"glFrontFace", (void *)glFrontFace}, {"glFrustumx", (void *)glFrustumx}, {"glGetBooleanv", (void *)glGetBooleanv}, {"glGetBufferParameteriv", (void *)glGetBufferParameteriv}, {"glGetClipPlanex", (void *)glGetClipPlanex}, {"glGenBuffers", (void *)glGenBuffers}, {"glGenTextures", (void *)glGenTextures}, {"glGetError", (void *)glGetError}, {"glGetFixedv", (void *)glGetFixedv}, {"glGetIntegerv", (void *)glGetIntegerv}, {"glGetLightxv", (void *)glGetLightxv}, {"glGetMaterialxv", (void *)glGetMaterialxv}, {"glGetPointerv", (void *)glGetPointerv}, {"glGetString", (void *)glGetString}, {"glGetTexEnviv", (void *)glGetTexEnviv}, {"glGetTexEnvxv", (void *)glGetTexEnvxv}, {"glGetTexParameteriv", (void *)glGetTexParameteriv}, {"glGetTexParameterxv", (void *)glGetTexParameterxv}, {"glHint", (void *)glHint}, {"glIsBuffer", (void *)glIsBuffer}, {"glIsEnabled", (void *)glIsEnabled}, {"glIsTexture", (void *)glIsTexture}, {"glLightModelx", (void *)glLightModelx}, {"glLightModelxv", (void *)glLightModelxv}, {"glLightx", (void *)glLightx}, {"glLightxv", (void *)glLightxv}, {"glLineWidthx", (void *)glLineWidthx}, {"glLoadIdentity", (void *)glLoadIdentity}, {"glLoadMatrixx", (void *)glLoadMatrixx}, {"glLogicOp", (void *)glLogicOp}, {"glMaterialx", (void *)glMaterialx}, {"glMaterialxv", (void *)glMaterialxv}, {"glMatrixMode", (void *)glMatrixMode}, {"glMultMatrixx", (void *)glMultMatrixx}, {"glMultiTexCoord4x", (void *)glMultiTexCoord4x}, {"glNormal3x", (void *)glNormal3x}, {"glNormalPointer", (void *)glNormalPointer}, {"glOrthox", (void *)glOrthox}, {"glPixelStorei", (void *)glPixelStorei}, {"glPointParameterx", (void *)glPointParameterx}, {"glPointParameterxv", (void *)glPointParameterxv}, {"glPointSizex", (void *)glPointSizex}, {"glPolygonOffsetx", (void *)glPolygonOffsetx}, {"glPopMatrix", (void *)glPopMatrix}, {"glPushMatrix", (void *)glPushMatrix}, {"glReadPixels", (void *)glReadPixels}, {"glRotatex", (void *)glRotatex}, {"glSampleCoverage", (void *)glSampleCoverage}, {"glSampleCoveragex", (void *)glSampleCoveragex}, {"glScalex", (void *)glScalex}, {"glScissor", (void *)glScissor}, {"glShadeModel", (void *)glShadeModel}, {"glStencilFunc", (void *)glStencilFunc}, {"glStencilMask", (void *)glStencilMask}, {"glStencilOp", (void *)glStencilOp}, {"glTexCoordPointer", (void *)glTexCoordPointer}, {"glTexEnvi", (void *)glTexEnvi}, {"glTexEnvx", (void *)glTexEnvx}, {"glTexEnviv", (void *)glTexEnviv}, {"glTexEnvxv", (void *)glTexEnvxv}, {"glTexImage2D", (void *)glTexImage2D}, {"glTexParameteri", (void *)glTexParameteri}, {"glTexParameterx", (void *)glTexParameterx}, {"glTexParameteriv", (void *)glTexParameteriv}, {"glTexParameterxv", (void *)glTexParameterxv}, {"glTexSubImage2D", (void *)glTexSubImage2D}, {"glTranslatex", (void *)glTranslatex}, {"glVertexPointer", (void *)glVertexPointer}, {"glViewport", (void *)glViewport}, {"glPointSizePointerOES", (void *)glPointSizePointerOES}, {"glBlendEquationSeparateOES", (void *)glBlendEquationSeparateOES}, {"glBlendFuncSeparateOES", (void *)glBlendFuncSeparateOES}, {"glBlendEquationOES", (void *)glBlendEquationOES}, {"glDrawTexsOES", (void *)glDrawTexsOES}, {"glDrawTexiOES", (void *)glDrawTexiOES}, {"glDrawTexxOES", (void *)glDrawTexxOES}, {"glDrawTexsvOES", (void *)glDrawTexsvOES}, {"glDrawTexivOES", (void *)glDrawTexivOES}, {"glDrawTexxvOES", (void *)glDrawTexxvOES}, {"glDrawTexfOES", (void *)glDrawTexfOES}, {"glDrawTexfvOES", (void *)glDrawTexfvOES}, {"glEGLImageTargetTexture2DOES", (void *)glEGLImageTargetTexture2DOES}, {"glEGLImageTargetRenderbufferStorageOES", (void *)glEGLImageTargetRenderbufferStorageOES}, {"glAlphaFuncxOES", (void *)glAlphaFuncxOES}, {"glClearColorxOES", (void *)glClearColorxOES}, {"glClearDepthxOES", (void *)glClearDepthxOES}, {"glClipPlanexOES", (void *)glClipPlanexOES}, {"glColor4xOES", (void *)glColor4xOES}, {"glDepthRangexOES", (void *)glDepthRangexOES}, {"glFogxOES", (void *)glFogxOES}, {"glFogxvOES", (void *)glFogxvOES}, {"glFrustumxOES", (void *)glFrustumxOES}, {"glGetClipPlanexOES", (void *)glGetClipPlanexOES}, {"glGetFixedvOES", (void *)glGetFixedvOES}, {"glGetLightxvOES", (void *)glGetLightxvOES}, {"glGetMaterialxvOES", (void *)glGetMaterialxvOES}, {"glGetTexEnvxvOES", (void *)glGetTexEnvxvOES}, {"glGetTexParameterxvOES", (void *)glGetTexParameterxvOES}, {"glLightModelxOES", (void *)glLightModelxOES}, {"glLightModelxvOES", (void *)glLightModelxvOES}, {"glLightxOES", (void *)glLightxOES}, {"glLightxvOES", (void *)glLightxvOES}, {"glLineWidthxOES", (void *)glLineWidthxOES}, {"glLoadMatrixxOES", (void *)glLoadMatrixxOES}, {"glMaterialxOES", (void *)glMaterialxOES}, {"glMaterialxvOES", (void *)glMaterialxvOES}, {"glMultMatrixxOES", (void *)glMultMatrixxOES}, {"glMultiTexCoord4xOES", (void *)glMultiTexCoord4xOES}, {"glNormal3xOES", (void *)glNormal3xOES}, {"glOrthoxOES", (void *)glOrthoxOES}, {"glPointParameterxOES", (void *)glPointParameterxOES}, {"glPointParameterxvOES", (void *)glPointParameterxvOES}, {"glPointSizexOES", (void *)glPointSizexOES}, {"glPolygonOffsetxOES", (void *)glPolygonOffsetxOES}, {"glRotatexOES", (void *)glRotatexOES}, {"glSampleCoveragexOES", (void *)glSampleCoveragexOES}, {"glScalexOES", (void *)glScalexOES}, {"glTexEnvxOES", (void *)glTexEnvxOES}, {"glTexEnvxvOES", (void *)glTexEnvxvOES}, {"glTexParameterxOES", (void *)glTexParameterxOES}, {"glTexParameterxvOES", (void *)glTexParameterxvOES}, {"glTranslatexOES", (void *)glTranslatexOES}, {"glIsRenderbufferOES", (void *)glIsRenderbufferOES}, {"glBindRenderbufferOES", (void *)glBindRenderbufferOES}, {"glDeleteRenderbuffersOES", (void *)glDeleteRenderbuffersOES}, {"glGenRenderbuffersOES", (void *)glGenRenderbuffersOES}, {"glRenderbufferStorageOES", (void *)glRenderbufferStorageOES}, {"glGetRenderbufferParameterivOES", (void *)glGetRenderbufferParameterivOES}, {"glIsFramebufferOES", (void *)glIsFramebufferOES}, {"glBindFramebufferOES", (void *)glBindFramebufferOES}, {"glDeleteFramebuffersOES", (void *)glDeleteFramebuffersOES}, {"glGenFramebuffersOES", (void *)glGenFramebuffersOES}, {"glCheckFramebufferStatusOES", (void *)glCheckFramebufferStatusOES}, {"glFramebufferRenderbufferOES", (void *)glFramebufferRenderbufferOES}, {"glFramebufferTexture2DOES", (void *)glFramebufferTexture2DOES}, {"glGetFramebufferAttachmentParameterivOES", (void *)glGetFramebufferAttachmentParameterivOES}, {"glGenerateMipmapOES", (void *)glGenerateMipmapOES}, {"glMapBufferOES", (void *)glMapBufferOES}, {"glUnmapBufferOES", (void *)glUnmapBufferOES}, {"glGetBufferPointervOES", (void *)glGetBufferPointervOES}, {"glCurrentPaletteMatrixOES", (void *)glCurrentPaletteMatrixOES}, {"glLoadPaletteFromModelViewMatrixOES", (void *)glLoadPaletteFromModelViewMatrixOES}, {"glMatrixIndexPointerOES", (void *)glMatrixIndexPointerOES}, {"glWeightPointerOES", (void *)glWeightPointerOES}, {"glQueryMatrixxOES", (void *)glQueryMatrixxOES}, {"glDepthRangefOES", (void *)glDepthRangefOES}, {"glFrustumfOES", (void *)glFrustumfOES}, {"glOrthofOES", (void *)glOrthofOES}, {"glClipPlanefOES", (void *)glClipPlanefOES}, {"glGetClipPlanefOES", (void *)glGetClipPlanefOES}, {"glClearDepthfOES", (void *)glClearDepthfOES}, {"glTexGenfOES", (void *)glTexGenfOES}, {"glTexGenfvOES", (void *)glTexGenfvOES}, {"glTexGeniOES", (void *)glTexGeniOES}, {"glTexGenivOES", (void *)glTexGenivOES}, {"glTexGenxOES", (void *)glTexGenxOES}, {"glTexGenxvOES", (void *)glTexGenxvOES}, {"glGetTexGenfvOES", (void *)glGetTexGenfvOES}, {"glGetTexGenivOES", (void *)glGetTexGenivOES}, {"glGetTexGenxvOES", (void *)glGetTexGenxvOES}, {"glBindVertexArrayOES", (void *)glBindVertexArrayOES}, {"glDeleteVertexArraysOES", (void *)glDeleteVertexArraysOES}, {"glGenVertexArraysOES", (void *)glGenVertexArraysOES}, {"glIsVertexArrayOES", (void *)glIsVertexArrayOES}, {"glDiscardFramebufferEXT", (void *)glDiscardFramebufferEXT}, {"glMultiDrawArraysEXT", (void *)glMultiDrawArraysEXT}, {"glMultiDrawElementsEXT", (void *)glMultiDrawElementsEXT}, {"glClipPlanefIMG", (void *)glClipPlanefIMG}, {"glClipPlanexIMG", (void *)glClipPlanexIMG}, {"glRenderbufferStorageMultisampleIMG", (void *)glRenderbufferStorageMultisampleIMG}, {"glFramebufferTexture2DMultisampleIMG", (void *)glFramebufferTexture2DMultisampleIMG}, {"glDeleteFencesNV", (void *)glDeleteFencesNV}, {"glGenFencesNV", (void *)glGenFencesNV}, {"glIsFenceNV", (void *)glIsFenceNV}, {"glTestFenceNV", (void *)glTestFenceNV}, {"glGetFenceivNV", (void *)glGetFenceivNV}, {"glFinishFenceNV", (void *)glFinishFenceNV}, {"glSetFenceNV", (void *)glSetFenceNV}, {"glGetDriverControlsQCOM", (void *)glGetDriverControlsQCOM}, {"glGetDriverControlStringQCOM", (void *)glGetDriverControlStringQCOM}, {"glEnableDriverControlQCOM", (void *)glEnableDriverControlQCOM}, {"glDisableDriverControlQCOM", (void *)glDisableDriverControlQCOM}, {"glExtGetTexturesQCOM", (void *)glExtGetTexturesQCOM}, {"glExtGetBuffersQCOM", (void *)glExtGetBuffersQCOM}, {"glExtGetRenderbuffersQCOM", (void *)glExtGetRenderbuffersQCOM}, {"glExtGetFramebuffersQCOM", (void *)glExtGetFramebuffersQCOM}, {"glExtGetTexLevelParameterivQCOM", (void *)glExtGetTexLevelParameterivQCOM}, {"glExtTexObjectStateOverrideiQCOM", (void *)glExtTexObjectStateOverrideiQCOM}, {"glExtGetTexSubImageQCOM", (void *)glExtGetTexSubImageQCOM}, {"glExtGetBufferPointervQCOM", (void *)glExtGetBufferPointervQCOM}, {"glExtGetShadersQCOM", (void *)glExtGetShadersQCOM}, {"glExtGetProgramsQCOM", (void *)glExtGetProgramsQCOM}, {"glExtIsProgramBinaryQCOM", (void *)glExtIsProgramBinaryQCOM}, {"glExtGetProgramBinarySourceQCOM", (void *)glExtGetProgramBinarySourceQCOM}, {"glStartTilingQCOM", (void *)glStartTilingQCOM}, {"glEndTilingQCOM", (void *)glEndTilingQCOM} }; static int gles_num_funcs = sizeof(gles_funcs_by_name) / sizeof(struct _gles_funcs_by_name);
14,577
C++
.h
292
45.181507
99
0.702345
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
true
true
false
false
false
false
false
false
17,767
egl_ftable.h
anbox_anbox/android/opengl/tests/gles_android_wrapper/egl_ftable.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ static struct _egl_funcs_by_name { const char *name; void *proc; } egl_funcs_by_name[] = { {"eglGetError", (void *)eglGetError}, {"eglGetDisplay", (void *)eglGetDisplay}, {"eglInitialize", (void *)eglInitialize}, {"eglTerminate", (void *)eglTerminate}, {"eglQueryString", (void *)eglQueryString}, {"eglGetConfigs", (void *)eglGetConfigs}, {"eglChooseConfig", (void *)eglChooseConfig}, {"eglGetConfigAttrib", (void *)eglGetConfigAttrib}, {"eglCreateWindowSurface", (void *)eglCreateWindowSurface}, {"eglCreatePbufferSurface", (void *)eglCreatePbufferSurface}, {"eglCreatePixmapSurface", (void *)eglCreatePixmapSurface}, {"eglDestroySurface", (void *)eglDestroySurface}, {"eglQuerySurface", (void *)eglQuerySurface}, {"eglBindAPI", (void *)eglBindAPI}, {"eglQueryAPI", (void *)eglQueryAPI}, {"eglWaitClient", (void *)eglWaitClient}, {"eglReleaseThread", (void *)eglReleaseThread}, {"eglCreatePbufferFromClientBuffer", (void *)eglCreatePbufferFromClientBuffer}, {"eglSurfaceAttrib", (void *)eglSurfaceAttrib}, {"eglBindTexImage", (void *)eglBindTexImage}, {"eglReleaseTexImage", (void *)eglReleaseTexImage}, {"eglSwapInterval", (void *)eglSwapInterval}, {"eglCreateContext", (void *)eglCreateContext}, {"eglDestroyContext", (void *)eglDestroyContext}, {"eglMakeCurrent", (void *)eglMakeCurrent}, {"eglGetCurrentContext", (void *)eglGetCurrentContext}, {"eglGetCurrentSurface", (void *)eglGetCurrentSurface}, {"eglGetCurrentDisplay", (void *)eglGetCurrentDisplay}, {"eglQueryContext", (void *)eglQueryContext}, {"eglWaitGL", (void *)eglWaitGL}, {"eglWaitNative", (void *)eglWaitNative}, {"eglSwapBuffers", (void *)eglSwapBuffers}, {"eglCopyBuffers", (void *)eglCopyBuffers}, {"eglGetProcAddress", (void *)eglGetProcAddress}, {"eglLockSurfaceKHR", (void *)eglLockSurfaceKHR}, {"eglUnlockSurfaceKHR", (void *)eglUnlockSurfaceKHR}, {"eglCreateImageKHR", (void *)eglCreateImageKHR}, {"eglDestroyImageKHR", (void *)eglDestroyImageKHR}, {"eglCreateSyncKHR", (void *)eglCreateSyncKHR}, {"eglDestroySyncKHR", (void *)eglDestroySyncKHR}, {"eglClientWaitSyncKHR", (void *)eglClientWaitSyncKHR}, {"eglSignalSyncKHR", (void *)eglSignalSyncKHR}, {"eglGetSyncAttribKHR", (void *)eglGetSyncAttribKHR}, {"eglSetSwapRectangleANDROID", (void *)eglSetSwapRectangleANDROID} }; static int egl_num_funcs = sizeof(egl_funcs_by_name) / sizeof(struct _egl_funcs_by_name);
3,129
C++
.h
65
44.292308
89
0.723474
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,769
egl_dispatch.h
anbox_anbox/android/opengl/tests/gles_android_wrapper/egl_dispatch.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _EGL_DISPATCH_H #define _EGL_DISPATCH_H #include "egl_proc.h" struct egl_dispatch { eglGetError_t eglGetError; eglGetDisplay_t eglGetDisplay; eglInitialize_t eglInitialize; eglTerminate_t eglTerminate; eglQueryString_t eglQueryString; eglGetConfigs_t eglGetConfigs; eglChooseConfig_t eglChooseConfig; eglGetConfigAttrib_t eglGetConfigAttrib; eglCreateWindowSurface_t eglCreateWindowSurface; eglCreatePbufferSurface_t eglCreatePbufferSurface; eglCreatePixmapSurface_t eglCreatePixmapSurface; eglDestroySurface_t eglDestroySurface; eglQuerySurface_t eglQuerySurface; eglBindAPI_t eglBindAPI; eglQueryAPI_t eglQueryAPI; eglWaitClient_t eglWaitClient; eglReleaseThread_t eglReleaseThread; eglCreatePbufferFromClientBuffer_t eglCreatePbufferFromClientBuffer; eglSurfaceAttrib_t eglSurfaceAttrib; eglBindTexImage_t eglBindTexImage; eglReleaseTexImage_t eglReleaseTexImage; eglSwapInterval_t eglSwapInterval; eglCreateContext_t eglCreateContext; eglDestroyContext_t eglDestroyContext; eglMakeCurrent_t eglMakeCurrent; eglGetCurrentContext_t eglGetCurrentContext; eglGetCurrentSurface_t eglGetCurrentSurface; eglGetCurrentDisplay_t eglGetCurrentDisplay; eglQueryContext_t eglQueryContext; eglWaitGL_t eglWaitGL; eglWaitNative_t eglWaitNative; eglSwapBuffers_t eglSwapBuffers; eglCopyBuffers_t eglCopyBuffers; eglGetProcAddress_t eglGetProcAddress; eglLockSurfaceKHR_t eglLockSurfaceKHR; eglUnlockSurfaceKHR_t eglUnlockSurfaceKHR; eglCreateImageKHR_t eglCreateImageKHR; eglDestroyImageKHR_t eglDestroyImageKHR; eglCreateSyncKHR_t eglCreateSyncKHR; eglDestroySyncKHR_t eglDestroySyncKHR; eglClientWaitSyncKHR_t eglClientWaitSyncKHR; eglSignalSyncKHR_t eglSignalSyncKHR; eglGetSyncAttribKHR_t eglGetSyncAttribKHR; eglSetSwapRectangleANDROID_t eglSetSwapRectangleANDROID; //Accessors eglGetError_t set_eglGetError(eglGetError_t f) { eglGetError_t retval = eglGetError; eglGetError = f; return retval;} eglGetDisplay_t set_eglGetDisplay(eglGetDisplay_t f) { eglGetDisplay_t retval = eglGetDisplay; eglGetDisplay = f; return retval;} eglInitialize_t set_eglInitialize(eglInitialize_t f) { eglInitialize_t retval = eglInitialize; eglInitialize = f; return retval;} eglTerminate_t set_eglTerminate(eglTerminate_t f) { eglTerminate_t retval = eglTerminate; eglTerminate = f; return retval;} eglQueryString_t set_eglQueryString(eglQueryString_t f) { eglQueryString_t retval = eglQueryString; eglQueryString = f; return retval;} eglGetConfigs_t set_eglGetConfigs(eglGetConfigs_t f) { eglGetConfigs_t retval = eglGetConfigs; eglGetConfigs = f; return retval;} eglChooseConfig_t set_eglChooseConfig(eglChooseConfig_t f) { eglChooseConfig_t retval = eglChooseConfig; eglChooseConfig = f; return retval;} eglGetConfigAttrib_t set_eglGetConfigAttrib(eglGetConfigAttrib_t f) { eglGetConfigAttrib_t retval = eglGetConfigAttrib; eglGetConfigAttrib = f; return retval;} eglCreateWindowSurface_t set_eglCreateWindowSurface(eglCreateWindowSurface_t f) { eglCreateWindowSurface_t retval = eglCreateWindowSurface; eglCreateWindowSurface = f; return retval;} eglCreatePbufferSurface_t set_eglCreatePbufferSurface(eglCreatePbufferSurface_t f) { eglCreatePbufferSurface_t retval = eglCreatePbufferSurface; eglCreatePbufferSurface = f; return retval;} eglCreatePixmapSurface_t set_eglCreatePixmapSurface(eglCreatePixmapSurface_t f) { eglCreatePixmapSurface_t retval = eglCreatePixmapSurface; eglCreatePixmapSurface = f; return retval;} eglDestroySurface_t set_eglDestroySurface(eglDestroySurface_t f) { eglDestroySurface_t retval = eglDestroySurface; eglDestroySurface = f; return retval;} eglQuerySurface_t set_eglQuerySurface(eglQuerySurface_t f) { eglQuerySurface_t retval = eglQuerySurface; eglQuerySurface = f; return retval;} eglBindAPI_t set_eglBindAPI(eglBindAPI_t f) { eglBindAPI_t retval = eglBindAPI; eglBindAPI = f; return retval;} eglQueryAPI_t set_eglQueryAPI(eglQueryAPI_t f) { eglQueryAPI_t retval = eglQueryAPI; eglQueryAPI = f; return retval;} eglWaitClient_t set_eglWaitClient(eglWaitClient_t f) { eglWaitClient_t retval = eglWaitClient; eglWaitClient = f; return retval;} eglReleaseThread_t set_eglReleaseThread(eglReleaseThread_t f) { eglReleaseThread_t retval = eglReleaseThread; eglReleaseThread = f; return retval;} eglCreatePbufferFromClientBuffer_t set_eglCreatePbufferFromClientBuffer(eglCreatePbufferFromClientBuffer_t f) { eglCreatePbufferFromClientBuffer_t retval = eglCreatePbufferFromClientBuffer; eglCreatePbufferFromClientBuffer = f; return retval;} eglSurfaceAttrib_t set_eglSurfaceAttrib(eglSurfaceAttrib_t f) { eglSurfaceAttrib_t retval = eglSurfaceAttrib; eglSurfaceAttrib = f; return retval;} eglBindTexImage_t set_eglBindTexImage(eglBindTexImage_t f) { eglBindTexImage_t retval = eglBindTexImage; eglBindTexImage = f; return retval;} eglReleaseTexImage_t set_eglReleaseTexImage(eglReleaseTexImage_t f) { eglReleaseTexImage_t retval = eglReleaseTexImage; eglReleaseTexImage = f; return retval;} eglSwapInterval_t set_eglSwapInterval(eglSwapInterval_t f) { eglSwapInterval_t retval = eglSwapInterval; eglSwapInterval = f; return retval;} eglCreateContext_t set_eglCreateContext(eglCreateContext_t f) { eglCreateContext_t retval = eglCreateContext; eglCreateContext = f; return retval;} eglDestroyContext_t set_eglDestroyContext(eglDestroyContext_t f) { eglDestroyContext_t retval = eglDestroyContext; eglDestroyContext = f; return retval;} eglMakeCurrent_t set_eglMakeCurrent(eglMakeCurrent_t f) { eglMakeCurrent_t retval = eglMakeCurrent; eglMakeCurrent = f; return retval;} eglGetCurrentContext_t set_eglGetCurrentContext(eglGetCurrentContext_t f) { eglGetCurrentContext_t retval = eglGetCurrentContext; eglGetCurrentContext = f; return retval;} eglGetCurrentSurface_t set_eglGetCurrentSurface(eglGetCurrentSurface_t f) { eglGetCurrentSurface_t retval = eglGetCurrentSurface; eglGetCurrentSurface = f; return retval;} eglGetCurrentDisplay_t set_eglGetCurrentDisplay(eglGetCurrentDisplay_t f) { eglGetCurrentDisplay_t retval = eglGetCurrentDisplay; eglGetCurrentDisplay = f; return retval;} eglQueryContext_t set_eglQueryContext(eglQueryContext_t f) { eglQueryContext_t retval = eglQueryContext; eglQueryContext = f; return retval;} eglWaitGL_t set_eglWaitGL(eglWaitGL_t f) { eglWaitGL_t retval = eglWaitGL; eglWaitGL = f; return retval;} eglWaitNative_t set_eglWaitNative(eglWaitNative_t f) { eglWaitNative_t retval = eglWaitNative; eglWaitNative = f; return retval;} eglSwapBuffers_t set_eglSwapBuffers(eglSwapBuffers_t f) { eglSwapBuffers_t retval = eglSwapBuffers; eglSwapBuffers = f; return retval;} eglCopyBuffers_t set_eglCopyBuffers(eglCopyBuffers_t f) { eglCopyBuffers_t retval = eglCopyBuffers; eglCopyBuffers = f; return retval;} eglGetProcAddress_t set_eglGetProcAddress(eglGetProcAddress_t f) { eglGetProcAddress_t retval = eglGetProcAddress; eglGetProcAddress = f; return retval;} eglLockSurfaceKHR_t set_eglLockSurfaceKHR(eglLockSurfaceKHR_t f) { eglLockSurfaceKHR_t retval = eglLockSurfaceKHR; eglLockSurfaceKHR = f; return retval;} eglUnlockSurfaceKHR_t set_eglUnlockSurfaceKHR(eglUnlockSurfaceKHR_t f) { eglUnlockSurfaceKHR_t retval = eglUnlockSurfaceKHR; eglUnlockSurfaceKHR = f; return retval;} eglCreateImageKHR_t set_eglCreateImageKHR(eglCreateImageKHR_t f) { eglCreateImageKHR_t retval = eglCreateImageKHR; eglCreateImageKHR = f; return retval;} eglDestroyImageKHR_t set_eglDestroyImageKHR(eglDestroyImageKHR_t f) { eglDestroyImageKHR_t retval = eglDestroyImageKHR; eglDestroyImageKHR = f; return retval;} eglCreateSyncKHR_t set_eglCreateSyncKHR(eglCreateSyncKHR_t f) { eglCreateSyncKHR_t retval = eglCreateSyncKHR; eglCreateSyncKHR = f; return retval;} eglDestroySyncKHR_t set_eglDestroySyncKHR(eglDestroySyncKHR_t f) { eglDestroySyncKHR_t retval = eglDestroySyncKHR; eglDestroySyncKHR = f; return retval;} eglClientWaitSyncKHR_t set_eglClientWaitSyncKHR(eglClientWaitSyncKHR_t f) { eglClientWaitSyncKHR_t retval = eglClientWaitSyncKHR; eglClientWaitSyncKHR = f; return retval;} eglSignalSyncKHR_t set_eglSignalSyncKHR(eglSignalSyncKHR_t f) { eglSignalSyncKHR_t retval = eglSignalSyncKHR; eglSignalSyncKHR = f; return retval;} eglGetSyncAttribKHR_t set_eglGetSyncAttribKHR(eglGetSyncAttribKHR_t f) { eglGetSyncAttribKHR_t retval = eglGetSyncAttribKHR; eglGetSyncAttribKHR = f; return retval;} eglSetSwapRectangleANDROID_t set_eglSetSwapRectangleANDROID(eglSetSwapRectangleANDROID_t f) { eglSetSwapRectangleANDROID_t retval = eglSetSwapRectangleANDROID; eglSetSwapRectangleANDROID = f; return retval;} }; egl_dispatch *create_egl_dispatch(void *gles_andorid); #endif
9,462
C++
.h
111
81
247
0.812453
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
17,773
scoped_pointer_vector.h
anbox_anbox/external/android-emugl/shared/emugl/common/scoped_pointer_vector.h
// Copyright (C) 2014 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef EMUGL_COMMON_SCOPED_POINTER_VECTOR_H #define EMUGL_COMMON_SCOPED_POINTER_VECTOR_H namespace emugl { template <class T> class ScopedPointerVector { ScopedPointerVector }; } // namespace emugl #endif // EMUGL_COMMON_SCOPED_POINTER_VECTOR_H
865
C++
.h
22
37.909091
75
0.778043
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,776
thread_store.h
anbox_anbox/external/android-emugl/shared/emugl/common/thread_store.h
// Copyright (C) 2014 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef EMUGL_COMMON_THREAD_STORE_H #define EMUGL_COMMON_THREAD_STORE_H #ifdef _WIN32 # define WIN32_LEAN_AND_MEAN 1 # include <windows.h> #else # include <pthread.h> #endif namespace emugl { // A class to model storage of thread-specific values, that can be // destroyed on thread exit. // // Note that on Windows, a thread must call OnThreadExit() explicitly // here to ensure that the values are probably discarded. This is an // unfortunate requirement of the Win32 API, which doesn't support // destructors at all. // // There are various hacks on the web to try to achieve this automatically // (e.g. [1]) but they rely on using the Microsoft build tools, // which doesn't work for us. // // Note another important issue with ThreadStore instances: if you create // one instance in a shared library, you need to make sure that it is // always destroyed before the library is unloaded. Otherwise, future // thread exit will likely crash, due to calling a destructor function // that is no longer in the process' address space. // // Finally, destroying an instance does _not_ free the corresponding values, // because doing so properly requires coordinating all participating threads, // which is impossible to achieve in the most general case. Thus, consider // that thread-local values are always leaked on library unload, or on // program exit. // // [1] http://stackoverflow.com/questions/14538159/about-tls-callback-in-windows class ThreadStore { public: // Type of a function used to destroy a thread-specific value that // was previously assigned by calling set(). typedef void (Destructor)(void* value); // Initialize instance so that is hold keys that must be destroyed // on thread exit by calling |destroy|. explicit ThreadStore(Destructor* destroy); // NOTE: Destructor don't free the thread-local values, but are required // to avoid crashes (see note above). ~ThreadStore(); // Retrieve current thread-specific value from store. #ifdef _WIN32 void* get() const; #else inline void* get() const { return pthread_getspecific(mKey); } #endif // Set the new thread-specific value. #ifdef _WIN32 void set(void* value); #else inline void set(void* value) { pthread_setspecific(mKey, value); } #endif #ifdef _WIN32 // Each thread should call this function on exit to ensure that // all corresponding TLS values are properly freed. static void OnThreadExit(); #else // Nothing to do on Posix. static inline void OnThreadExit() {} #endif private: // Ensure you can't create an empty ThreadStore instance, or simply // copy it in any way. ThreadStore(); ThreadStore(const ThreadStore&); ThreadStore& operator=(const ThreadStore&); #ifdef _WIN32 int mKey; #else pthread_key_t mKey; #endif }; } // namespace emugl #endif // EMUGL_COMMON_THREAD_STORE_H
3,517
C++
.h
96
34.114583
80
0.743176
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,777
shared_library.h
anbox_anbox/external/android-emugl/shared/emugl/common/shared_library.h
// Copyright (C) 2014 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef EMUGL_COMMON_SHARED_LIBRARY_H #define EMUGL_COMMON_SHARED_LIBRARY_H #include <stddef.h> #ifdef _WIN32 #include <windows.h> #endif namespace emugl { // A class used to open a platform-specific shared library, and probe // it for symbols. Usage is the following: // // // Open the library. // SharedLibrary* library = SharedLibrary::open("libFoo"); // if (!library) { // ... could not find / open library! // } // // //Probe for function symbol. // FunctionPtr my_func = library->findSymbol("my_func"); // // // Closes library/ // delete library; // class SharedLibrary { public: // Open a given library. If |libraryName| has no extension, a // platform-appropriate extension is added and that path is opened. // If the |libraryName| has an extension, that form is opened. // // On OSX, some libraries don't include an extension (notably OpenGL) // On OSX we try to open |libraryName| first. If that doesn't exist, // we try |libraryName|.dylib // // On success, returns a new SharedLibrary instance that must be // deleted by the caller. static SharedLibrary* open(const char* libraryName); // A variant of open() that can report a human-readable error if loading // the library fails. |error| is a caller-provided buffer of |errorSize| // bytes that will be filled with snprintf() and always zero terminated. // // On success, return a new SharedLibrary instance, and do not touch // the content of |error|. On failure, return NULL, and sets the content // of |error|. static SharedLibrary* open(const char* libraryName, char* error, size_t errorSize); // Closes an existing SharedLibrary instance. ~SharedLibrary(); // Generic function pointer type, for values returned by the // findSymbol() method. typedef void (*FunctionPtr)(void); // Probe a given SharedLibrary instance to find a symbol named // |symbolName| in it. Return its address as a FunctionPtr, or // NULL if the symbol is not found. FunctionPtr findSymbol(const char* symbolName) const; private: #ifdef _WIN32 typedef HMODULE HandleType; #else typedef void* HandleType; #endif // Constructor intentionally hidden. SharedLibrary(HandleType); HandleType mLib; }; // Macro to compose emugl shared library name under various OS and bitness // eg. // on x86_64, EMUGL_LIBNAME("foo") --> "lib64foo" # define EMUGL_LIBNAME(name) "lib" name } // namespace emugl #endif // EMUGL_COMMON_SHARED_LIBRARY_H
3,227
C++
.h
83
35.337349
76
0.702271
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,779
pod_vector.h
anbox_anbox/external/android-emugl/shared/emugl/common/pod_vector.h
// Copyright (C) 2014 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef EMUGL_COMMON_POD_VECTOR_H #define EMUGL_COMMON_POD_VECTOR_H #include <stddef.h> #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS 1 #endif #include <stdint.h> #ifndef SIZE_MAX #error "You must define __STDC_LIMIT_MACROS before including <stddint.h>" #endif namespace emugl { // A PodVector is a templated vector-like type that is used to store // POD-struct compatible items only. This allows the implementation to // use ::memmove() to move items, and also malloc_usable_size() to // determine the best capacity. // // std::vector<> is capable of doing this in theory, using horrible // templating tricks that make error messages very difficult to // understand. // // Note that a PodVector can be used to store items that contain pointers, // as long as these do not point to items in the same container. // // The PodVector provides methods that also follow the std::vector<> // conventions, i.e. push_back() is an alias for append(). // // NOTE: This is a re-implementation of // external/qemu/android/base/containers/PodVector.h for emugl. // PodVectorBase is a base, non-templated, implementation class that all // PodVector instances derive from. This is used to reduce template // specialization. Do not use directly, i..e it's an implementation detail. class PodVectorBase { protected: PodVectorBase() : mBegin(NULL), mEnd(NULL), mLimit(NULL) {} explicit PodVectorBase(const PodVectorBase& other); PodVectorBase& operator=(const PodVectorBase& other); ~PodVectorBase(); bool empty() const { return mEnd == mBegin; } size_t byteSize() const { return mEnd - mBegin; } size_t byteCapacity() const { return mLimit - mBegin; } void* begin() { return mBegin; } const void* begin() const { return mBegin; } void* end() { return mEnd; } const void* end() const { return mEnd; } void* itemAt(size_t pos, size_t itemSize) { return mBegin + pos * itemSize; } const void* itemAt(size_t pos, size_t itemSize) const { return mBegin + pos * itemSize; } void assignFrom(const PodVectorBase& other); inline size_t itemCount(size_t itemSize) const { return byteSize() / itemSize; } inline size_t itemCapacity(size_t itemSize) const { return byteCapacity() / itemSize; } inline size_t maxItemCapacity(size_t itemSize) const { return SIZE_MAX / itemSize; } void resize(size_t newSize, size_t itemSize); void reserve(size_t newSize, size_t itemSize); void removeAt(size_t index, size_t itemSize); void* insertAt(size_t index, size_t itemSize); void swapAll(PodVectorBase* other); char* mBegin; char* mEnd; char* mLimit; private: void initFrom(const void* from, size_t fromLen); }; // A PodVector<T> holds a vector (dynamically resizable array) or items // that must be POD-struct compatible (i.e. they cannot have constructors, // destructors, or virtual members). This allows the implementation to be // small, fast and efficient, memory-wise. // // If you want to implement a vector of C++ objects, consider using // std::vector<> instead, but keep in mind that this implies a non-trivial // cost when appending, inserting, removing items in the collection. // template <typename T> class PodVector : public PodVectorBase { public: // Default constructor for an empty PodVector<T> PodVector() : PodVectorBase() {} // Copy constructor. This copies all items from |other| into // the new instance with ::memmove(). PodVector(const PodVector& other) : PodVectorBase(other) {} // Assignment operator. PodVector& operator=(const PodVector& other) { this->assignFrom(other); return *this; } // Destructor, this simply releases the internal storage block that // holds all the items, but doesn't touch them otherwise. ~PodVector() {} // Return true iff the PodVector<T> instance is empty, i.e. does not // have any items. bool empty() const { return PodVectorBase::empty(); } // Return the number of items in the current PodVector<T> instance. size_t size() const { return PodVectorBase::itemCount(sizeof(T)); } // Return the current capacity in the current PodVector<T> instance. // Do not use directly, except if you know what you're doing. Try to // use resize() or reserve() instead. size_t capacity() const { return PodVectorBase::itemCapacity(sizeof(T)); } // Return the maximum capacity of any PodVector<T> instance. static inline size_t maxCapacity() { return SIZE_MAX / sizeof(T); } // Resize the vector to ensure it can hold |newSize| // items. This may or may not call reserve() under the hood. // It's a fatal error to try to resize above maxCapacity(). void resize(size_t newSize) { PodVectorBase::resize(newSize, sizeof(T)); } // Resize the vector's storage array to ensure that it can hold at // least |newSize| items. It's a fatal error to try to resize above // maxCapacity(). void reserve(size_t newSize) { PodVectorBase::reserve(newSize, sizeof(T)); } // Return a pointer to the first item in the vector. This is only // valid until the next call to any function that changes the size // or capacity of the vector. Can be NULL if the vector is empty. T* begin() { return reinterpret_cast<T*>(PodVectorBase::begin()); } // Return a constant pointer to the first item in the vector. This is // only valid until the next call to any function that changes the // size of capacity of the vector. const T* begin() const { return reinterpret_cast<T*>(PodVectorBase::begin()); } // Return a pointer past the last item in the vector. I.e. if the // result is not NULL, then |result - 1| points to the last item. // Can be NULL if the vector is empty. T* end() { return reinterpret_cast<T*>(PodVectorBase::end()); } // Return a constant pointer past the last item in the vector. I.e. if // the result is not NULL, then |result - 1| points to the last item. // Can be NULL if the vector is empty. const T* end() const { return reinterpret_cast<T*>(PodVectorBase::end()); } // Returns a reference to the item a position |index| in the vector. // It may be a fatal error to access an out-of-bounds position. T& operator[](size_t index) { return *reinterpret_cast<T*>( PodVectorBase::itemAt(index, sizeof(T))); } const T& operator[](size_t index) const { return *reinterpret_cast<const T*>( PodVectorBase::itemAt(index, sizeof(T))); } // Increase the vector's size by 1, then move all items past a given // position to the right. Return the position of the insertion point // to let the caller copy the content it desires there. It's preferrable // to use insert() directly, which will do the item copy for you. T* emplace(size_t index) { return reinterpret_cast<T*>( PodVectorBase::insertAt(index, sizeof(T))); } // Insert an item at a given position. |index| is the insertion position // which must be between 0 and size() included, or a fatal error may // occur. |item| is a reference to an item to copy into the array, // byte-by-byte. void insert(size_t index, const T& item) { *(this->emplace(index)) = item; } // Prepend an item at the start of a vector. This moves all vector items // to the right, and is thus costly. |item| is a reference to an item // to copy to the start of the vector. void prepend(const T& item) { *(this->emplace(0U)) = item; } // Append an item at the end of a vector. Specialized version of insert() // which always uses size() as the insertion position. void append(const T& item) { *(this->emplace(this->size())) = item; } // Remove the item at a given position. |index| is the position of the // item to delete. It must be between 0 and size(), included, or // a fatal error may occur. Deleting the item at position size() // doesn't do anything. void remove(size_t index) { PodVectorBase::removeAt(index, sizeof(T)); } void swap(PodVector* other) { PodVectorBase::swapAll(other); } // Compatibility methods for std::vector<> void push_back(const T& item) { append(item); } void pop() { remove(0U); } typedef T* iterator; typedef const T* const_iterator; }; } // namespace emugl #endif // EMUGL_COMMON_POD_VECTOR_H
9,302
C++
.h
215
38.683721
77
0.689941
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,782
sockets.h
anbox_anbox/external/android-emugl/shared/emugl/common/sockets.h
// Copyright (C) 2014 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef EMUGL_COMMON_SOCKETS_H #define EMUGL_COMMON_SOCKETS_H // A set of helper functions used to deal with sockets in a portable way. namespace emugl { // Disable Nagle's algorithm for socket descriptor |s|. This assumes // that |s| is a TCP socket descriptor. void socketTcpDisableNagle(int s); // Return the port associated with a given IP or IPv6 socket, // or -errno code on failure. int socketGetPort(int s); // Bind to a local/Unix path, and return its socket descriptor on success, // or -errno code on failure. int socketLocalServer(const char* path, int socketType); // Connect to a Unix local path, and return a new socket descriptor // on success, or -errno code on failure. int socketLocalClient(const char* path, int socketType); // Bind to a localhost TCP socket, and return its socket descriptor on // success, or -errno code on failure. int socketTcpLoopbackServer(int port, int socketType); // Connect to a localhost TCP port, and return a new socket descriptor on // success, or -errno code on failure. int socketTcpLoopbackClient(int port, int socketType); // Connect to a TCP host, and return a new socket descriptor on // success, or -errno code on failure. int socketTcpClient(const char* hostname, int port, int socketType); // Accept a new connection. |serverSocket| must be a bound server socket // descriptor. Returns new socket descriptor on success, or -errno code // on failure. int socketAccept(int serverSocket); } // namespace emugl #endif // EMUGL_COMMON_SOCKETS_H
2,123
C++
.h
44
46.954545
75
0.774443
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,784
crash_reporter.h
anbox_anbox/external/android-emugl/shared/emugl/common/crash_reporter.h
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include "emugl/common/logging.h" extern logger_t emugl_crash_reporter; void set_emugl_crash_reporter(logger_t crash_reporter);
745
C++
.h
19
38.052632
74
0.786999
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,785
id_to_object_map.h
anbox_anbox/external/android-emugl/shared/emugl/common/id_to_object_map.h
// Copyright (C) 2014 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef EMUGL_COMMON_ID_TO_OBJECT_MAP_H #define EMUGL_COMMON_ID_TO_OBJECT_MAP_H #include <stddef.h> namespace emugl { // Base implementation class for IdToObjectMap template. // Used to reduce template-instanciated code generation. class IdToObjectMapBase { public: // The type of keys in this map. typedef unsigned KeyType; // Values higher than kMaxId cannot be used as map keys. enum { kMaxId = 0xfffffffdU, }; static inline bool isValidKey(KeyType key) { return key <= kMaxId; } protected: IdToObjectMapBase(); ~IdToObjectMapBase(); void clear(); // Return size inline size_t size() const { return mCount; } inline size_t capacity() const { return 1U << mShift; } // Return true iff the map contains a given key. bool contains(KeyType key) const; // Find a value associated with a given |key| in the map. // On success, return true and sets |*value| to the value/pointer, // which is _still_ owned by the map. // On failure, return false and sets |*value| to NULL. bool find(KeyType key, void** value) const; // Associate a value with a given |key| in the map. // Return the old value for the key, if any. Caller is responsible // for freeing it. void* set(KeyType key, void* value); // Remove the value associated with a given |key|. // Return the old value, if any. Caller is responsible for // freeing it. void* remove(KeyType key); size_t mCount; size_t mShift; KeyType* mKeys; void** mValues; private: // Resize the map if needed to ensure it can hold at least |newSize| // entries. void resize(size_t newSize); }; // A templated data container that acts as a dictionary mapping unsigned // integer keys to heap-allocated objects of type T. The dictionary // owns the objects associated with its keys, and automatically destroys // them when it is destroyed, or during replacement or removal. template <class T> class IdToObjectMap : public IdToObjectMapBase { public: // Initialize an empty instance. IdToObjectMap() : IdToObjectMapBase() {} // Destroy this instance. ~IdToObjectMap() { clear(); } // Return the number of items in this map. inline size_t size() const { return IdToObjectMapBase::size(); } // Return true iff the map is empty. inline bool empty() const { return !IdToObjectMapBase::size(); } // Remove all items from the map. void clear(); // Returns true iff the dictionary contains a value for |key|. inline bool contains(KeyType key) const { return IdToObjectMapBase::contains(key); } // Find the value corresponding to |key| in this map. // On success, return true, and sets |*value| to point to the // value (still owned by the instance). On failure, return false. inline bool find(KeyType key, T** value) const { return IdToObjectMapBase::find(key, reinterpret_cast<void**>(value)); } // Return the value associated with a given |key|, or NULL if it is // not in the map. Result is still owned by the map. inline T* get(KeyType key) const { T* result = NULL; this->find(key, &result); return result; } // Associate |value| with a given |key|. Returns true if a previous // value was replaced, and false if this is the first time a value // was associated with the given key. IMPORTANT: This transfers // ownership of |value| to the map instance. In case of replacement, // the old value is automatically destroyed. Using NULL as the value // is equivalent to calling remove(). bool set(KeyType key, T* value); // Remove any value associated with |key|. // Return true iff a value was associated with the key and destroyed // by this function, false if there was no value associated with the // key (or if it was NULL). bool remove(KeyType key); }; template <class T> void IdToObjectMap<T>::clear() { size_t n = capacity(); while (n > 0) { --n; if (!isValidKey(mKeys[n])) continue; delete static_cast<T*>(mValues[n]); mValues[n] = NULL; mKeys[n] = kMaxId + 1U; } mCount = 0; } template <class T> bool IdToObjectMap<T>::set(KeyType key, T* value) { T* oldValue = static_cast<T*>(IdToObjectMapBase::set(key, value)); if (!oldValue) { return false; } delete oldValue; return true; } template <class T> bool IdToObjectMap<T>::remove(KeyType key) { T* oldValue = static_cast<T*>(IdToObjectMapBase::remove(key)); if (!oldValue) return false; delete oldValue; return true; } } // namespace emugl #endif // EMUGL_COMMON_ID_TO_OBJECT_MAP_H
5,370
C++
.h
142
33.309859
77
0.685599
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,788
ErrorLog.h
anbox_anbox/external/android-emugl/shared/OpenglCodecCommon/ErrorLog.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _ERROR_LOG_H_ #define _ERROR_LOG_H_ #include <stdio.h> #define ERR(...) fprintf(stderr, __VA_ARGS__) #define EMUGL_DEBUG #ifdef EMUGL_DEBUG # define DBG(...) fprintf(stderr, __VA_ARGS__) #else # define DBG(...) ((void)0) #endif #endif // _ERROR_LOG_H_
879
C++
.h
26
32.730769
74
0.733255
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,789
glUtils.h
anbox_anbox/external/android-emugl/shared/OpenglCodecCommon/glUtils.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <GLES/gl.h> #include <GLES/glext.h> #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <stddef.h> #ifdef __cplusplus extern "C" { #endif size_t glSizeof(GLenum type); size_t glUtilsParamSize(GLenum param); void glUtilsPackPointerData(unsigned char *dst, unsigned char *str, int size, GLenum type, unsigned int stride, unsigned int datalen); int glUtilsPixelBitSize(GLenum format, GLenum type); #ifdef __cplusplus } #endif
1,110
C++
.h
33
30.939394
74
0.747428
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,790
GLDecoderContextData.h
anbox_anbox/external/android-emugl/shared/OpenglCodecCommon/GLDecoderContextData.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <vector> #include <string> #include <assert.h> #include <string.h> // Convenient class used to hold the common context data shared // by both the GLESv1 and GLESv2 decoders. This corresponds to // vertex attribute buffers. class GLDecoderContextData { public: // List of supported vertex attribute indices, as they appear in // a glVertexAttribPointer() call. typedef enum { VERTEX_LOCATION = 0, NORMAL_LOCATION = 1, COLOR_LOCATION = 2, POINTSIZE_LOCATION = 3, TEXCOORD0_LOCATION = 4, TEXCOORD1_LOCATION = 5, TEXCOORD2_LOCATION = 6, TEXCOORD3_LOCATION = 7, TEXCOORD4_LOCATION = 8, TEXCOORD5_LOCATION = 9, TEXCOORD6_LOCATION = 10, TEXCOORD7_LOCATION = 11, MATRIXINDEX_LOCATION = 12, WEIGHT_LOCATION = 13, LAST_LOCATION = 14 } PointerDataLocation; // Default constructor. GLDecoderContextData(int numLocations = kMaxVertexAttributes) : mPointerData(), mNumLocations(static_cast<unsigned>(numLocations)) { mPointerData.resize(mNumLocations); } // Store |len| bytes from |data| into the buffer associated with // vertex attribute index |loc|. void storePointerData(unsigned int loc, void *data, size_t len) { if (loc < mNumLocations) { std::string& ptrData = mPointerData[loc]; ptrData.assign(reinterpret_cast<char*>(data), len); } else { // User error, don't do anything here } } // Return pointer to data associated with vertex attribute index |loc| void* pointerData(unsigned int loc) const { if (loc < mNumLocations) { return const_cast<char*>(mPointerData[loc].c_str()); } else { // User error. Return nullptr. return nullptr; } } private: static const int kMaxVertexAttributes = 64; std::vector<std::string> mPointerData; unsigned mNumLocations = 0; };
2,630
C++
.h
74
29.810811
74
0.674647
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,792
gl_base_types.h
anbox_anbox/external/android-emugl/shared/OpenglCodecCommon/gl_base_types.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __GL_BASE_TYPES__H #define __GL_BASE_TYPES__H #include <KHR/khrplatform.h> #ifndef gles1_APIENTRY #define gles1_APIENTRY KHRONOS_APIENTRY #endif #ifndef gles2_APIENTRY #define gles2_APIENTRY KHRONOS_APIENTRY #endif typedef void GLvoid; typedef unsigned int GLenum; typedef unsigned char GLboolean; typedef unsigned int GLbitfield; typedef char GLchar; typedef khronos_int8_t GLbyte; typedef short GLshort; typedef int GLint; typedef int GLsizei; typedef khronos_uint8_t GLubyte; typedef unsigned short GLushort; typedef unsigned int GLuint; typedef khronos_float_t GLfloat; typedef khronos_float_t GLclampf; typedef khronos_int32_t GLfixed; typedef khronos_int32_t GLclampx; typedef khronos_intptr_t GLintptr; typedef khronos_ssize_t GLsizeiptr; typedef char *GLstr; /* JR XXX Treating this as an in handle - is this correct? */ typedef void * GLeglImageOES; /* ErrorCode */ #ifndef GL_INVALID_ENUM #define GL_NO_ERROR 0 #define GL_INVALID_ENUM 0x0500 #define GL_INVALID_VALUE 0x0501 #define GL_INVALID_OPERATION 0x0502 #define GL_STACK_OVERFLOW 0x0503 #define GL_STACK_UNDERFLOW 0x0504 #define GL_OUT_OF_MEMORY 0x0505 #endif #endif
1,952
C++
.h
56
33.75
74
0.722751
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
17,793
ChecksumCalculatorThreadInfo.h
anbox_anbox/external/android-emugl/shared/OpenglCodecCommon/ChecksumCalculatorThreadInfo.h
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include "ChecksumCalculator.h" // ChecksumCalculatorThreadInfo is the class that makes ChecksumCalculator // thread-safe. On the host, please only use ChecksumCalculator through this // class. class ChecksumCalculatorThreadInfo { public: ChecksumCalculatorThreadInfo(); ~ChecksumCalculatorThreadInfo(); static uint32_t getVersion(); static bool setVersion(uint32_t version); static uint32_t getMaxVersion(); static const char* getMaxVersionString() { return ChecksumCalculator::getMaxVersionStr(); } static size_t checksumByteSize(); static bool writeChecksum(void* buf, size_t bufLen, void* outputChecksum, size_t outputChecksumLen); static bool validate(void* buf, size_t bufLen, void* checksum, size_t checksumLen); static void validOrDie(void* buf, size_t bufLen, void* checksum, size_t checksumLen, const char* message); private: ChecksumCalculator m_protocol; };
1,822
C++
.h
47
30.574468
76
0.659117
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,795
VarType.h
anbox_anbox/external/android-emugl/host/tools/emugen/VarType.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __VARTYPE__H__ #define __VARTYPE__H__ #include <string> // VarType models the types of values used on the wire protocol by // both encoders and decoders. Each type is identified by a unique id, // and a name, and provides a size in bytes for the values, a printf-like // formatter string, and a flag telling if the value corresponds to a // pointer. class VarType { public: VarType() : m_id(0), m_name("default_constructed"), m_byteSize(0), m_printFormat("0x%x"), m_isPointer(false) {} VarType(size_t id, const std::string& name, size_t byteSize, const std::string& printFormat, bool isPointer) : m_id(id), m_name(name), m_byteSize(byteSize), m_printFormat(printFormat), m_isPointer(isPointer) {} ~VarType() {} size_t id() const { return m_id; } const std::string& name() const { return m_name; } size_t bytes() const { return m_byteSize; } const std::string& printFormat() const { return m_printFormat; } bool isPointer() const { return m_isPointer; } private: size_t m_id; std::string m_name; size_t m_byteSize; std::string m_printFormat; bool m_isPointer; }; #endif
1,905
C++
.h
55
29.509091
74
0.664135
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,796
Parser.h
anbox_anbox/external/android-emugl/host/tools/emugen/Parser.h
/* * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef PARSER_H #define PARSER_H #include <string> // Normalize a type declaration. This gets rid of leading/trailing whitespace // as well as ensure there is a single space separating all input tokens, // with the exception of '*' which is treated specially by never being // prepended with a space. // |input| is the input type declaration. Return normalized form. // Note that this doesn't try to validate the input. std::string normalizeTypeDeclaration(const std::string& input); // Parse a return type declaration. |input| is the type declaration // (e.g. 'const char**'). On success return true and sets |*typeName| to // the appropriate normalized type string. On failure, return false and // sets |*error| with a human-friendly message explaining the reason for // failure. // // Note that the returned type string is normalized, see comment for // parseParameterDeclaration() for examples. // // NOTE: This does not support declarations of arrays or functions! // bool parseTypeDeclaration(const std::string& input, std::string* typeName, std::string* error); // Parse a function parameter declaration and extract the type and variable // name from it. |param| is the individual parameter declaration from the // function's signature (e.g. 'const char *items') // // On success, returns true and sets |*vartype| and |*varname| to the // appropriate type name and variable name. |varname| can be NULL if the caller // isn't interested in the variable name. // // On failure, return false and sets |*error| to a human-friendly message // explaining the reason for failure. // // Note that the returned type name is normalized with regards to whitespace // and star location, e.g.: // // const void *items -> 'const void*' // char* *items -> 'char**' // const void * const * items -> 'const void* const*' // unsigned int *const data -> 'unsigned int* const' // bool parseParameterDeclaration(const std::string& param, std::string* typeName, std::string* variableName, std::string* error); #endif // PARSER_H
2,812
C++
.h
63
41.253968
79
0.706268
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,798
getopt.h
anbox_anbox/external/android-emugl/host/tools/emugen/getopt.h
#ifndef GETOPT_H #define GETOPT_H #ifdef __cplusplus extern "C" { #endif extern int optind; extern char* optarg; extern int optopt; int getopt(int argc, char* const argv[], const char* ostr); #ifdef __cplusplus } #endif #endif // GETOPT_H
245
C++
.h
13
17.461538
59
0.753304
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
17,800
errors.h
anbox_anbox/external/android-emugl/host/tools/emugen/errors.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _ERRORS_H_ #define _ERRORS_H_ #define BAD_USAGE -1 #define BAD_SPEC_FILE -2 #define BAD_TYPES_FILE -3 #define BAD_ATTRIBUTES_FILE -4 #endif
751
C++
.h
22
33.045455
74
0.775791
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,803
foo_server_proc.h
anbox_anbox/external/android-emugl/host/tools/emugen/tests/t.001/expected/decoder/foo_server_proc.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __foo_server_proc_t_h #define __foo_server_proc_t_h #include "foo_types.h" #include "emugl/common/logging.h" #ifndef foo_APIENTRY #define foo_APIENTRY #endif typedef void (foo_APIENTRY *fooAlphaFunc_server_proc_t) (FooInt, FooFloat); typedef FooBoolean (foo_APIENTRY *fooIsBuffer_server_proc_t) (void*); typedef void (foo_APIENTRY *fooUnsupported_server_proc_t) (void*); typedef void (foo_APIENTRY *fooDoEncoderFlush_server_proc_t) (FooInt); typedef void (foo_APIENTRY *fooTakeConstVoidPtrConstPtr_server_proc_t) (const void* const*); #endif
617
C++
.h
15
39.666667
92
0.77349
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,804
foo_dec.h
anbox_anbox/external/android-emugl/host/tools/emugen/tests/t.001/expected/decoder/foo_dec.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef GUARD_foo_decoder_context_t #define GUARD_foo_decoder_context_t #include "IOStream.h" #include "foo_server_context.h" struct foo_decoder_context_t : public foo_server_context_t { size_t decode(void *buf, size_t bufsize, IOStream *stream); }; #endif // GUARD_foo_decoder_context_t
359
C++
.h
10
33.9
60
0.750733
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,805
foo_server_context.h
anbox_anbox/external/android-emugl/host/tools/emugen/tests/t.001/expected/decoder/foo_server_context.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __foo_server_context_t_h #define __foo_server_context_t_h #include "foo_server_proc.h" #include "foo_types.h" struct foo_server_context_t { fooAlphaFunc_server_proc_t fooAlphaFunc; fooIsBuffer_server_proc_t fooIsBuffer; fooUnsupported_server_proc_t fooUnsupported; fooDoEncoderFlush_server_proc_t fooDoEncoderFlush; fooTakeConstVoidPtrConstPtr_server_proc_t fooTakeConstVoidPtrConstPtr; virtual ~foo_server_context_t() {} int initDispatchByName( void *(*getProc)(const char *name, void *userData), void *userData); }; #endif
607
C++
.h
16
36.0625
93
0.789744
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,806
foo_opcodes.h
anbox_anbox/external/android-emugl/host/tools/emugen/tests/t.001/expected/decoder/foo_opcodes.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __GUARD_foo_opcodes_h_ #define __GUARD_foo_opcodes_h_ #define OP_fooAlphaFunc 200 #define OP_fooIsBuffer 201 #define OP_fooUnsupported 202 #define OP_fooDoEncoderFlush 203 #define OP_fooTakeConstVoidPtrConstPtr 204 #define OP_last 205 #endif
343
C++
.h
11
29.909091
47
0.726444
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,807
foo_wrapper_context.h
anbox_anbox/external/android-emugl/host/tools/emugen/tests/t.001/expected/wrapper/foo_wrapper_context.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __foo_wrapper_context_t_h #define __foo_wrapper_context_t_h #include "foo_server_proc.h" #include "foo_types.h" struct foo_wrapper_context_t { fooAlphaFunc_wrapper_proc_t fooAlphaFunc; fooIsBuffer_wrapper_proc_t fooIsBuffer; fooUnsupported_wrapper_proc_t fooUnsupported; fooDoEncoderFlush_wrapper_proc_t fooDoEncoderFlush; fooTakeConstVoidPtrConstPtr_wrapper_proc_t fooTakeConstVoidPtrConstPtr; virtual ~foo_wrapper_context_t() {} typedef foo_wrapper_context_t *CONTEXT_ACCESSOR_TYPE(void); static void setContextAccessor(CONTEXT_ACCESSOR_TYPE *f); int initDispatchByName( void *(*getProc)(const char *name, void *userData), void *userData); }; #endif
737
C++
.h
18
39
93
0.796348
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,808
foo_wrapper_proc.h
anbox_anbox/external/android-emugl/host/tools/emugen/tests/t.001/expected/wrapper/foo_wrapper_proc.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __foo_wrapper_proc_t_h #define __foo_wrapper_proc_t_h #include "foo_types.h" #include "emugl/common/logging.h" #ifndef foo_APIENTRY #define foo_APIENTRY #endif typedef void (foo_APIENTRY *fooAlphaFunc_wrapper_proc_t) (FooInt, FooFloat); typedef FooBoolean (foo_APIENTRY *fooIsBuffer_wrapper_proc_t) (void*); typedef void (foo_APIENTRY *fooUnsupported_wrapper_proc_t) (void*); typedef void (foo_APIENTRY *fooDoEncoderFlush_wrapper_proc_t) (FooInt); typedef void (foo_APIENTRY *fooTakeConstVoidPtrConstPtr_wrapper_proc_t) (const void* const*); #endif
624
C++
.h
15
40.133333
93
0.776119
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,809
foo_ftable.h
anbox_anbox/external/android-emugl/host/tools/emugen/tests/t.001/expected/encoder/foo_ftable.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __foo_client_ftable_t_h #define __foo_client_ftable_t_h static const struct _foo_funcs_by_name { const char *name; void *proc; } foo_funcs_by_name[] = { {"fooAlphaFunc", (void*)fooAlphaFunc}, {"fooIsBuffer", (void*)fooIsBuffer}, {"fooUnsupported", (void*)fooUnsupported}, {"fooDoEncoderFlush", (void*)fooDoEncoderFlush}, {"fooTakeConstVoidPtrConstPtr", (void*)fooTakeConstVoidPtrConstPtr}, }; static const int foo_num_funcs = sizeof(foo_funcs_by_name) / sizeof(struct _foo_funcs_by_name); #endif
575
C++
.h
16
34.25
95
0.736937
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,810
foo_enc.h
anbox_anbox/external/android-emugl/host/tools/emugen/tests/t.001/expected/encoder/foo_enc.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef GUARD_foo_encoder_context_t #define GUARD_foo_encoder_context_t #include "IOStream.h" #include "ChecksumCalculator.h" #include "foo_client_context.h" #include "fooUtils.h" #include "fooBase.h" struct foo_encoder_context_t : public foo_client_context_t { IOStream *m_stream; ChecksumCalculator *m_checksumCalculator; foo_encoder_context_t(IOStream *stream, ChecksumCalculator *checksumCalculator); }; #endif // GUARD_foo_encoder_context_t
517
C++
.h
15
32.8
81
0.785859
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,811
foo_client_proc.h
anbox_anbox/external/android-emugl/host/tools/emugen/tests/t.001/expected/encoder/foo_client_proc.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __foo_client_proc_t_h #define __foo_client_proc_t_h #include "foo_types.h" #include "emugl/common/logging.h" #ifndef foo_APIENTRY #define foo_APIENTRY #endif typedef void (foo_APIENTRY *fooAlphaFunc_client_proc_t) (void * ctx, FooInt, FooFloat); typedef FooBoolean (foo_APIENTRY *fooIsBuffer_client_proc_t) (void * ctx, void*); typedef void (foo_APIENTRY *fooUnsupported_client_proc_t) (void * ctx, void*); typedef void (foo_APIENTRY *fooDoEncoderFlush_client_proc_t) (void * ctx, FooInt); typedef void (foo_APIENTRY *fooTakeConstVoidPtrConstPtr_client_proc_t) (void * ctx, const void* const*); #endif
677
C++
.h
15
43.666667
104
0.756098
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,812
foo_client_context.h
anbox_anbox/external/android-emugl/host/tools/emugen/tests/t.001/expected/encoder/foo_client_context.h
// Generated Code - DO NOT EDIT !! // generated by 'emugen' #ifndef __foo_client_context_t_h #define __foo_client_context_t_h #include "foo_client_proc.h" #include "foo_types.h" struct foo_client_context_t { fooAlphaFunc_client_proc_t fooAlphaFunc; fooIsBuffer_client_proc_t fooIsBuffer; fooUnsupported_client_proc_t fooUnsupported; fooDoEncoderFlush_client_proc_t fooDoEncoderFlush; fooTakeConstVoidPtrConstPtr_client_proc_t fooTakeConstVoidPtrConstPtr; virtual ~foo_client_context_t() {} typedef foo_client_context_t *CONTEXT_ACCESSOR_TYPE(void); static void setContextAccessor(CONTEXT_ACCESSOR_TYPE *f); int initDispatchByName( void *(*getProc)(const char *name, void *userData), void *userData); virtual void setError(unsigned int error){ (void)error; }; virtual unsigned int getError(){ return 0; }; }; #endif
835
C++
.h
20
39.8
93
0.784653
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,813
gl.h
anbox_anbox/external/android-emugl/host/include/GLES/gl.h
#ifndef __gl_h_ #define __gl_h_ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wredundant-decls" /* $Revision: 10601 $ on $Date:: 2010-03-04 22:15:27 -0800 #$ */ #include <GLES/glplatform.h> #ifdef __cplusplus extern "C" { #endif /* * This document is licensed under the SGI Free Software B License Version * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . */ typedef void GLvoid; typedef char GLchar; typedef unsigned int GLenum; typedef unsigned char GLboolean; typedef unsigned int GLbitfield; typedef khronos_int8_t GLbyte; typedef short GLshort; typedef int GLint; typedef int GLsizei; typedef khronos_uint8_t GLubyte; typedef unsigned short GLushort; typedef unsigned int GLuint; typedef khronos_float_t GLfloat; typedef khronos_float_t GLclampf; typedef khronos_int32_t GLfixed; typedef khronos_int32_t GLclampx; typedef khronos_intptr_t GLintptr; typedef khronos_ssize_t GLsizeiptr; /*************************************************************/ /* OpenGL ES core versions */ #define GL_VERSION_ES_CM_1_0 1 #define GL_VERSION_ES_CL_1_0 1 #define GL_VERSION_ES_CM_1_1 1 #define GL_VERSION_ES_CL_1_1 1 /* ClearBufferMask */ #define GL_DEPTH_BUFFER_BIT 0x00000100 #define GL_STENCIL_BUFFER_BIT 0x00000400 #define GL_COLOR_BUFFER_BIT 0x00004000 /* Boolean */ #define GL_FALSE 0 #define GL_TRUE 1 /* BeginMode */ #define GL_POINTS 0x0000 #define GL_LINES 0x0001 #define GL_LINE_LOOP 0x0002 #define GL_LINE_STRIP 0x0003 #define GL_TRIANGLES 0x0004 #define GL_TRIANGLE_STRIP 0x0005 #define GL_TRIANGLE_FAN 0x0006 /* AlphaFunction */ #define GL_NEVER 0x0200 #define GL_LESS 0x0201 #define GL_EQUAL 0x0202 #define GL_LEQUAL 0x0203 #define GL_GREATER 0x0204 #define GL_NOTEQUAL 0x0205 #define GL_GEQUAL 0x0206 #define GL_ALWAYS 0x0207 /* BlendingFactorDest */ #define GL_ZERO 0 #define GL_ONE 1 #define GL_SRC_COLOR 0x0300 #define GL_ONE_MINUS_SRC_COLOR 0x0301 #define GL_SRC_ALPHA 0x0302 #define GL_ONE_MINUS_SRC_ALPHA 0x0303 #define GL_DST_ALPHA 0x0304 #define GL_ONE_MINUS_DST_ALPHA 0x0305 /* BlendingFactorSrc */ /* GL_ZERO */ /* GL_ONE */ #define GL_DST_COLOR 0x0306 #define GL_ONE_MINUS_DST_COLOR 0x0307 #define GL_SRC_ALPHA_SATURATE 0x0308 /* GL_SRC_ALPHA */ /* GL_ONE_MINUS_SRC_ALPHA */ /* GL_DST_ALPHA */ /* GL_ONE_MINUS_DST_ALPHA */ /* ClipPlaneName */ #define GL_CLIP_PLANE0 0x3000 #define GL_CLIP_PLANE1 0x3001 #define GL_CLIP_PLANE2 0x3002 #define GL_CLIP_PLANE3 0x3003 #define GL_CLIP_PLANE4 0x3004 #define GL_CLIP_PLANE5 0x3005 /* ColorMaterialFace */ /* GL_FRONT_AND_BACK */ /* ColorMaterialParameter */ /* GL_AMBIENT_AND_DIFFUSE */ /* ColorPointerType */ /* GL_UNSIGNED_BYTE */ /* GL_FLOAT */ /* GL_FIXED */ /* CullFaceMode */ #define GL_FRONT 0x0404 #define GL_BACK 0x0405 #define GL_FRONT_AND_BACK 0x0408 /* DepthFunction */ /* GL_NEVER */ /* GL_LESS */ /* GL_EQUAL */ /* GL_LEQUAL */ /* GL_GREATER */ /* GL_NOTEQUAL */ /* GL_GEQUAL */ /* GL_ALWAYS */ /* EnableCap */ #define GL_FOG 0x0B60 #define GL_LIGHTING 0x0B50 #define GL_TEXTURE_2D 0x0DE1 #define GL_CULL_FACE 0x0B44 #define GL_ALPHA_TEST 0x0BC0 #define GL_BLEND 0x0BE2 #define GL_COLOR_LOGIC_OP 0x0BF2 #define GL_DITHER 0x0BD0 #define GL_STENCIL_TEST 0x0B90 #define GL_DEPTH_TEST 0x0B71 /* GL_LIGHT0 */ /* GL_LIGHT1 */ /* GL_LIGHT2 */ /* GL_LIGHT3 */ /* GL_LIGHT4 */ /* GL_LIGHT5 */ /* GL_LIGHT6 */ /* GL_LIGHT7 */ #define GL_POINT_SMOOTH 0x0B10 #define GL_LINE_SMOOTH 0x0B20 #define GL_SCISSOR_TEST 0x0C11 #define GL_COLOR_MATERIAL 0x0B57 #define GL_NORMALIZE 0x0BA1 #define GL_RESCALE_NORMAL 0x803A #define GL_POLYGON_OFFSET_FILL 0x8037 #define GL_VERTEX_ARRAY 0x8074 #define GL_NORMAL_ARRAY 0x8075 #define GL_COLOR_ARRAY 0x8076 #define GL_TEXTURE_COORD_ARRAY 0x8078 #define GL_MULTISAMPLE 0x809D #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E #define GL_SAMPLE_ALPHA_TO_ONE 0x809F #define GL_SAMPLE_COVERAGE 0x80A0 /* ErrorCode */ #define GL_NO_ERROR 0 #define GL_INVALID_ENUM 0x0500 #define GL_INVALID_VALUE 0x0501 #define GL_INVALID_OPERATION 0x0502 #define GL_STACK_OVERFLOW 0x0503 #define GL_STACK_UNDERFLOW 0x0504 #define GL_OUT_OF_MEMORY 0x0505 /* FogMode */ /* GL_LINEAR */ #define GL_EXP 0x0800 #define GL_EXP2 0x0801 /* FogParameter */ #define GL_FOG_DENSITY 0x0B62 #define GL_FOG_START 0x0B63 #define GL_FOG_END 0x0B64 #define GL_FOG_MODE 0x0B65 #define GL_FOG_COLOR 0x0B66 /* FrontFaceDirection */ #define GL_CW 0x0900 #define GL_CCW 0x0901 /* GetPName */ #define GL_CURRENT_COLOR 0x0B00 #define GL_CURRENT_NORMAL 0x0B02 #define GL_CURRENT_TEXTURE_COORDS 0x0B03 #define GL_POINT_SIZE 0x0B11 #define GL_POINT_SIZE_MIN 0x8126 #define GL_POINT_SIZE_MAX 0x8127 #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 #define GL_POINT_DISTANCE_ATTENUATION 0x8129 #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 #define GL_LINE_WIDTH 0x0B21 #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E #define GL_CULL_FACE_MODE 0x0B45 #define GL_FRONT_FACE 0x0B46 #define GL_SHADE_MODEL 0x0B54 #define GL_DEPTH_RANGE 0x0B70 #define GL_DEPTH_WRITEMASK 0x0B72 #define GL_DEPTH_CLEAR_VALUE 0x0B73 #define GL_DEPTH_FUNC 0x0B74 #define GL_STENCIL_CLEAR_VALUE 0x0B91 #define GL_STENCIL_FUNC 0x0B92 #define GL_STENCIL_VALUE_MASK 0x0B93 #define GL_STENCIL_FAIL 0x0B94 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 #define GL_STENCIL_REF 0x0B97 #define GL_STENCIL_WRITEMASK 0x0B98 #define GL_MATRIX_MODE 0x0BA0 #define GL_VIEWPORT 0x0BA2 #define GL_MODELVIEW_STACK_DEPTH 0x0BA3 #define GL_PROJECTION_STACK_DEPTH 0x0BA4 #define GL_TEXTURE_STACK_DEPTH 0x0BA5 #define GL_MODELVIEW_MATRIX 0x0BA6 #define GL_PROJECTION_MATRIX 0x0BA7 #define GL_TEXTURE_MATRIX 0x0BA8 #define GL_ALPHA_TEST_FUNC 0x0BC1 #define GL_ALPHA_TEST_REF 0x0BC2 #define GL_BLEND_DST 0x0BE0 #define GL_BLEND_SRC 0x0BE1 #define GL_LOGIC_OP_MODE 0x0BF0 #define GL_SCISSOR_BOX 0x0C10 #define GL_SCISSOR_TEST 0x0C11 #define GL_COLOR_CLEAR_VALUE 0x0C22 #define GL_COLOR_WRITEMASK 0x0C23 #define GL_UNPACK_ALIGNMENT 0x0CF5 #define GL_PACK_ALIGNMENT 0x0D05 #define GL_MAX_LIGHTS 0x0D31 #define GL_MAX_CLIP_PLANES 0x0D32 #define GL_MAX_TEXTURE_SIZE 0x0D33 #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 #define GL_MAX_VIEWPORT_DIMS 0x0D3A #define GL_MAX_TEXTURE_UNITS 0x84E2 #define GL_SUBPIXEL_BITS 0x0D50 #define GL_RED_BITS 0x0D52 #define GL_GREEN_BITS 0x0D53 #define GL_BLUE_BITS 0x0D54 #define GL_ALPHA_BITS 0x0D55 #define GL_DEPTH_BITS 0x0D56 #define GL_STENCIL_BITS 0x0D57 #define GL_POLYGON_OFFSET_UNITS 0x2A00 #define GL_POLYGON_OFFSET_FILL 0x8037 #define GL_POLYGON_OFFSET_FACTOR 0x8038 #define GL_TEXTURE_BINDING_2D 0x8069 #define GL_VERTEX_ARRAY_SIZE 0x807A #define GL_VERTEX_ARRAY_TYPE 0x807B #define GL_VERTEX_ARRAY_STRIDE 0x807C #define GL_NORMAL_ARRAY_TYPE 0x807E #define GL_NORMAL_ARRAY_STRIDE 0x807F #define GL_COLOR_ARRAY_SIZE 0x8081 #define GL_COLOR_ARRAY_TYPE 0x8082 #define GL_COLOR_ARRAY_STRIDE 0x8083 #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A #define GL_VERTEX_ARRAY_POINTER 0x808E #define GL_NORMAL_ARRAY_POINTER 0x808F #define GL_COLOR_ARRAY_POINTER 0x8090 #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 #define GL_SAMPLE_BUFFERS 0x80A8 #define GL_SAMPLES 0x80A9 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA #define GL_SAMPLE_COVERAGE_INVERT 0x80AB /* GetTextureParameter */ /* GL_TEXTURE_MAG_FILTER */ /* GL_TEXTURE_MIN_FILTER */ /* GL_TEXTURE_WRAP_S */ /* GL_TEXTURE_WRAP_T */ #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 /* HintMode */ #define GL_DONT_CARE 0x1100 #define GL_FASTEST 0x1101 #define GL_NICEST 0x1102 /* HintTarget */ #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 #define GL_POINT_SMOOTH_HINT 0x0C51 #define GL_LINE_SMOOTH_HINT 0x0C52 #define GL_FOG_HINT 0x0C54 #define GL_GENERATE_MIPMAP_HINT 0x8192 /* LightModelParameter */ #define GL_LIGHT_MODEL_AMBIENT 0x0B53 #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 /* LightParameter */ #define GL_AMBIENT 0x1200 #define GL_DIFFUSE 0x1201 #define GL_SPECULAR 0x1202 #define GL_POSITION 0x1203 #define GL_SPOT_DIRECTION 0x1204 #define GL_SPOT_EXPONENT 0x1205 #define GL_SPOT_CUTOFF 0x1206 #define GL_CONSTANT_ATTENUATION 0x1207 #define GL_LINEAR_ATTENUATION 0x1208 #define GL_QUADRATIC_ATTENUATION 0x1209 /* DataType */ #define GL_BYTE 0x1400 #define GL_UNSIGNED_BYTE 0x1401 #define GL_SHORT 0x1402 #define GL_UNSIGNED_SHORT 0x1403 #define GL_FLOAT 0x1406 #define GL_FIXED 0x140C /* LogicOp */ #define GL_CLEAR 0x1500 #define GL_AND 0x1501 #define GL_AND_REVERSE 0x1502 #define GL_COPY 0x1503 #define GL_AND_INVERTED 0x1504 #define GL_NOOP 0x1505 #define GL_XOR 0x1506 #define GL_OR 0x1507 #define GL_NOR 0x1508 #define GL_EQUIV 0x1509 #define GL_INVERT 0x150A #define GL_OR_REVERSE 0x150B #define GL_COPY_INVERTED 0x150C #define GL_OR_INVERTED 0x150D #define GL_NAND 0x150E #define GL_SET 0x150F /* MaterialFace */ /* GL_FRONT_AND_BACK */ /* MaterialParameter */ #define GL_EMISSION 0x1600 #define GL_SHININESS 0x1601 #define GL_AMBIENT_AND_DIFFUSE 0x1602 /* GL_AMBIENT */ /* GL_DIFFUSE */ /* GL_SPECULAR */ /* MatrixMode */ #define GL_MODELVIEW 0x1700 #define GL_PROJECTION 0x1701 #define GL_TEXTURE 0x1702 /* NormalPointerType */ /* GL_BYTE */ /* GL_SHORT */ /* GL_FLOAT */ /* GL_FIXED */ /* PixelFormat */ #define GL_ALPHA 0x1906 #define GL_RGB 0x1907 #define GL_RGBA 0x1908 #define GL_LUMINANCE 0x1909 #define GL_LUMINANCE_ALPHA 0x190A /* PixelStoreParameter */ #define GL_UNPACK_ALIGNMENT 0x0CF5 #define GL_PACK_ALIGNMENT 0x0D05 /* PixelType */ /* GL_UNSIGNED_BYTE */ #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 #define GL_UNSIGNED_SHORT_5_6_5 0x8363 /* ShadingModel */ #define GL_FLAT 0x1D00 #define GL_SMOOTH 0x1D01 /* StencilFunction */ /* GL_NEVER */ /* GL_LESS */ /* GL_EQUAL */ /* GL_LEQUAL */ /* GL_GREATER */ /* GL_NOTEQUAL */ /* GL_GEQUAL */ /* GL_ALWAYS */ /* StencilOp */ /* GL_ZERO */ #define GL_KEEP 0x1E00 #define GL_REPLACE 0x1E01 #define GL_INCR 0x1E02 #define GL_DECR 0x1E03 /* GL_INVERT */ /* StringName */ #define GL_VENDOR 0x1F00 #define GL_RENDERER 0x1F01 #define GL_VERSION 0x1F02 #define GL_EXTENSIONS 0x1F03 /* TexCoordPointerType */ /* GL_SHORT */ /* GL_FLOAT */ /* GL_FIXED */ /* GL_BYTE */ /* TextureEnvMode */ #define GL_MODULATE 0x2100 #define GL_DECAL 0x2101 /* GL_BLEND */ #define GL_ADD 0x0104 /* GL_REPLACE */ /* TextureEnvParameter */ #define GL_TEXTURE_ENV_MODE 0x2200 #define GL_TEXTURE_ENV_COLOR 0x2201 /* TextureEnvTarget */ #define GL_TEXTURE_ENV 0x2300 /* TextureMagFilter */ #define GL_NEAREST 0x2600 #define GL_LINEAR 0x2601 /* TextureMinFilter */ /* GL_NEAREST */ /* GL_LINEAR */ #define GL_NEAREST_MIPMAP_NEAREST 0x2700 #define GL_LINEAR_MIPMAP_NEAREST 0x2701 #define GL_NEAREST_MIPMAP_LINEAR 0x2702 #define GL_LINEAR_MIPMAP_LINEAR 0x2703 /* TextureParameterName */ #define GL_TEXTURE_MAG_FILTER 0x2800 #define GL_TEXTURE_MIN_FILTER 0x2801 #define GL_TEXTURE_WRAP_S 0x2802 #define GL_TEXTURE_WRAP_T 0x2803 #define GL_GENERATE_MIPMAP 0x8191 /* TextureTarget */ /* GL_TEXTURE_2D */ /* TextureUnit */ #define GL_TEXTURE0 0x84C0 #define GL_TEXTURE1 0x84C1 #define GL_TEXTURE2 0x84C2 #define GL_TEXTURE3 0x84C3 #define GL_TEXTURE4 0x84C4 #define GL_TEXTURE5 0x84C5 #define GL_TEXTURE6 0x84C6 #define GL_TEXTURE7 0x84C7 #define GL_TEXTURE8 0x84C8 #define GL_TEXTURE9 0x84C9 #define GL_TEXTURE10 0x84CA #define GL_TEXTURE11 0x84CB #define GL_TEXTURE12 0x84CC #define GL_TEXTURE13 0x84CD #define GL_TEXTURE14 0x84CE #define GL_TEXTURE15 0x84CF #define GL_TEXTURE16 0x84D0 #define GL_TEXTURE17 0x84D1 #define GL_TEXTURE18 0x84D2 #define GL_TEXTURE19 0x84D3 #define GL_TEXTURE20 0x84D4 #define GL_TEXTURE21 0x84D5 #define GL_TEXTURE22 0x84D6 #define GL_TEXTURE23 0x84D7 #define GL_TEXTURE24 0x84D8 #define GL_TEXTURE25 0x84D9 #define GL_TEXTURE26 0x84DA #define GL_TEXTURE27 0x84DB #define GL_TEXTURE28 0x84DC #define GL_TEXTURE29 0x84DD #define GL_TEXTURE30 0x84DE #define GL_TEXTURE31 0x84DF #define GL_ACTIVE_TEXTURE 0x84E0 #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 /* TextureWrapMode */ #define GL_REPEAT 0x2901 #define GL_CLAMP_TO_EDGE 0x812F /* VertexPointerType */ /* GL_SHORT */ /* GL_FLOAT */ /* GL_FIXED */ /* GL_BYTE */ /* LightName */ #define GL_LIGHT0 0x4000 #define GL_LIGHT1 0x4001 #define GL_LIGHT2 0x4002 #define GL_LIGHT3 0x4003 #define GL_LIGHT4 0x4004 #define GL_LIGHT5 0x4005 #define GL_LIGHT6 0x4006 #define GL_LIGHT7 0x4007 /* Buffer Objects */ #define GL_ARRAY_BUFFER 0x8892 #define GL_ELEMENT_ARRAY_BUFFER 0x8893 #define GL_ARRAY_BUFFER_BINDING 0x8894 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A #define GL_STATIC_DRAW 0x88E4 #define GL_DYNAMIC_DRAW 0x88E8 #define GL_BUFFER_SIZE 0x8764 #define GL_BUFFER_USAGE 0x8765 /* Texture combine + dot3 */ #define GL_SUBTRACT 0x84E7 #define GL_COMBINE 0x8570 #define GL_COMBINE_RGB 0x8571 #define GL_COMBINE_ALPHA 0x8572 #define GL_RGB_SCALE 0x8573 #define GL_ADD_SIGNED 0x8574 #define GL_INTERPOLATE 0x8575 #define GL_CONSTANT 0x8576 #define GL_PRIMARY_COLOR 0x8577 #define GL_PREVIOUS 0x8578 #define GL_OPERAND0_RGB 0x8590 #define GL_OPERAND1_RGB 0x8591 #define GL_OPERAND2_RGB 0x8592 #define GL_OPERAND0_ALPHA 0x8598 #define GL_OPERAND1_ALPHA 0x8599 #define GL_OPERAND2_ALPHA 0x859A #define GL_ALPHA_SCALE 0x0D1C #define GL_SRC0_RGB 0x8580 #define GL_SRC1_RGB 0x8581 #define GL_SRC2_RGB 0x8582 #define GL_SRC0_ALPHA 0x8588 #define GL_SRC1_ALPHA 0x8589 #define GL_SRC2_ALPHA 0x858A #define GL_DOT3_RGB 0x86AE #define GL_DOT3_RGBA 0x86AF /*------------------------------------------------------------------------* * required OES extension tokens *------------------------------------------------------------------------*/ /* OES_read_format */ #ifndef GL_OES_read_format #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B #endif /* GL_OES_compressed_paletted_texture */ #ifndef GL_OES_compressed_paletted_texture #define GL_PALETTE4_RGB8_OES 0x8B90 #define GL_PALETTE4_RGBA8_OES 0x8B91 #define GL_PALETTE4_R5_G6_B5_OES 0x8B92 #define GL_PALETTE4_RGBA4_OES 0x8B93 #define GL_PALETTE4_RGB5_A1_OES 0x8B94 #define GL_PALETTE8_RGB8_OES 0x8B95 #define GL_PALETTE8_RGBA8_OES 0x8B96 #define GL_PALETTE8_R5_G6_B5_OES 0x8B97 #define GL_PALETTE8_RGBA4_OES 0x8B98 #define GL_PALETTE8_RGB5_A1_OES 0x8B99 #endif /* OES_point_size_array */ #ifndef GL_OES_point_size_array #define GL_POINT_SIZE_ARRAY_OES 0x8B9C #define GL_POINT_SIZE_ARRAY_TYPE_OES 0x898A #define GL_POINT_SIZE_ARRAY_STRIDE_OES 0x898B #define GL_POINT_SIZE_ARRAY_POINTER_OES 0x898C #define GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES 0x8B9F #endif /* GL_OES_point_sprite */ #ifndef GL_OES_point_sprite #define GL_POINT_SPRITE_OES 0x8861 #define GL_COORD_REPLACE_OES 0x8862 #endif /*************************************************************/ /* Available only in Common profile */ GL_API void GL_APIENTRY glAlphaFunc (GLenum func, GLclampf ref); GL_API void GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); GL_API void GL_APIENTRY glClearDepthf (GLclampf depth); GL_API void GL_APIENTRY glClipPlanef (GLenum plane, const GLfloat *equation); GL_API void GL_APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); GL_API void GL_APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar); GL_API void GL_APIENTRY glFogf (GLenum pname, GLfloat param); GL_API void GL_APIENTRY glFogfv (GLenum pname, const GLfloat *params); GL_API void GL_APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); GL_API void GL_APIENTRY glGetClipPlanef (GLenum pname, GLfloat eqn[4]); GL_API void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat *params); GL_API void GL_APIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params); GL_API void GL_APIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params); GL_API void GL_APIENTRY glGetTexEnvfv (GLenum env, GLenum pname, GLfloat *params); GL_API void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); GL_API void GL_APIENTRY glLightModelf (GLenum pname, GLfloat param); GL_API void GL_APIENTRY glLightModelfv (GLenum pname, const GLfloat *params); GL_API void GL_APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param); GL_API void GL_APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params); GL_API void GL_APIENTRY glLineWidth (GLfloat width); GL_API void GL_APIENTRY glLoadMatrixf (const GLfloat *m); GL_API void GL_APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param); GL_API void GL_APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params); GL_API void GL_APIENTRY glMultMatrixf (const GLfloat *m); GL_API void GL_APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); GL_API void GL_APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz); GL_API void GL_APIENTRY glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); GL_API void GL_APIENTRY glPointParameterf (GLenum pname, GLfloat param); GL_API void GL_APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params); GL_API void GL_APIENTRY glPointSize (GLfloat size); GL_API void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units); GL_API void GL_APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); GL_API void GL_APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z); GL_API void GL_APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param); GL_API void GL_APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); GL_API void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); GL_API void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); GL_API void GL_APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z); /* Available in both Common and Common-Lite profiles */ GL_API void GL_APIENTRY glActiveTexture (GLenum texture); GL_API void GL_APIENTRY glAlphaFuncx (GLenum func, GLclampx ref); GL_API void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer); GL_API void GL_APIENTRY glBindTexture (GLenum target, GLuint texture); GL_API void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); GL_API void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); GL_API void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); GL_API void GL_APIENTRY glClear (GLbitfield mask); GL_API void GL_APIENTRY glClearColorx (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha); GL_API void GL_APIENTRY glClearDepthx (GLclampx depth); GL_API void GL_APIENTRY glClearStencil (GLint s); GL_API void GL_APIENTRY glClientActiveTexture (GLenum texture); GL_API void GL_APIENTRY glClipPlanex (GLenum plane, const GLfixed *equation); GL_API void GL_APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); GL_API void GL_APIENTRY glColor4x (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); GL_API void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); GL_API void GL_APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); GL_API void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); GL_API void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); GL_API void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); GL_API void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); GL_API void GL_APIENTRY glCullFace (GLenum mode); GL_API void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers); GL_API void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); GL_API void GL_APIENTRY glDepthFunc (GLenum func); GL_API void GL_APIENTRY glDepthMask (GLboolean flag); GL_API void GL_APIENTRY glDepthRangex (GLclampx zNear, GLclampx zFar); GL_API void GL_APIENTRY glDisable (GLenum cap); GL_API void GL_APIENTRY glDisableClientState (GLenum array); GL_API void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); GL_API void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); GL_API void GL_APIENTRY glEnable (GLenum cap); GL_API void GL_APIENTRY glEnableClientState (GLenum array); GL_API void GL_APIENTRY glFinish (void); GL_API void GL_APIENTRY glFlush (void); GL_API void GL_APIENTRY glFogx (GLenum pname, GLfixed param); GL_API void GL_APIENTRY glFogxv (GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glFrontFace (GLenum mode); GL_API void GL_APIENTRY glFrustumx (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); GL_API void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean *params); GL_API void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params); GL_API void GL_APIENTRY glGetClipPlanex (GLenum pname, GLfixed eqn[4]); GL_API void GL_APIENTRY glGenBuffers (GLsizei n, GLuint *buffers); GL_API void GL_APIENTRY glGenTextures (GLsizei n, GLuint *textures); GL_API GLenum GL_APIENTRY glGetError (void); GL_API void GL_APIENTRY glGetFixedv (GLenum pname, GLfixed *params); GL_API void GL_APIENTRY glGetIntegerv (GLenum pname, GLint *params); GL_API void GL_APIENTRY glGetLightxv (GLenum light, GLenum pname, GLfixed *params); GL_API void GL_APIENTRY glGetMaterialxv (GLenum face, GLenum pname, GLfixed *params); GL_API void GL_APIENTRY glGetPointerv (GLenum pname, GLvoid **params); GL_API const GLubyte * GL_APIENTRY glGetString (GLenum name); GL_API void GL_APIENTRY glGetTexEnviv (GLenum env, GLenum pname, GLint *params); GL_API void GL_APIENTRY glGetTexEnvxv (GLenum env, GLenum pname, GLfixed *params); GL_API void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); GL_API void GL_APIENTRY glGetTexParameterxv (GLenum target, GLenum pname, GLfixed *params); GL_API void GL_APIENTRY glHint (GLenum target, GLenum mode); GL_API GLboolean GL_APIENTRY glIsBuffer (GLuint buffer); GL_API GLboolean GL_APIENTRY glIsEnabled (GLenum cap); GL_API GLboolean GL_APIENTRY glIsTexture (GLuint texture); GL_API void GL_APIENTRY glLightModelx (GLenum pname, GLfixed param); GL_API void GL_APIENTRY glLightModelxv (GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glLightx (GLenum light, GLenum pname, GLfixed param); GL_API void GL_APIENTRY glLightxv (GLenum light, GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glLineWidthx (GLfixed width); GL_API void GL_APIENTRY glLoadIdentity (void); GL_API void GL_APIENTRY glLoadMatrixx (const GLfixed *m); GL_API void GL_APIENTRY glLogicOp (GLenum opcode); GL_API void GL_APIENTRY glMaterialx (GLenum face, GLenum pname, GLfixed param); GL_API void GL_APIENTRY glMaterialxv (GLenum face, GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glMatrixMode (GLenum mode); GL_API void GL_APIENTRY glMultMatrixx (const GLfixed *m); GL_API void GL_APIENTRY glMultiTexCoord4x (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q); GL_API void GL_APIENTRY glNormal3x (GLfixed nx, GLfixed ny, GLfixed nz); GL_API void GL_APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); GL_API void GL_APIENTRY glOrthox (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); GL_API void GL_APIENTRY glPixelStorei (GLenum pname, GLint param); GL_API void GL_APIENTRY glPointParameterx (GLenum pname, GLfixed param); GL_API void GL_APIENTRY glPointParameterxv (GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glPointSizex (GLfixed size); GL_API void GL_APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units); GL_API void GL_APIENTRY glPopMatrix (void); GL_API void GL_APIENTRY glPushMatrix (void); GL_API void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); GL_API void GL_APIENTRY glRotatex (GLfixed angle, GLfixed x, GLfixed y, GLfixed z); GL_API void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert); GL_API void GL_APIENTRY glSampleCoveragex (GLclampx value, GLboolean invert); GL_API void GL_APIENTRY glScalex (GLfixed x, GLfixed y, GLfixed z); GL_API void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); GL_API void GL_APIENTRY glShadeModel (GLenum mode); GL_API void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); GL_API void GL_APIENTRY glStencilMask (GLuint mask); GL_API void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); GL_API void GL_APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); GL_API void GL_APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param); GL_API void GL_APIENTRY glTexEnvx (GLenum target, GLenum pname, GLfixed param); GL_API void GL_APIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params); GL_API void GL_APIENTRY glTexEnvxv (GLenum target, GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); GL_API void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); GL_API void GL_APIENTRY glTexParameterx (GLenum target, GLenum pname, GLfixed param); GL_API void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); GL_API void GL_APIENTRY glTexParameterxv (GLenum target, GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); GL_API void GL_APIENTRY glTranslatex (GLfixed x, GLfixed y, GLfixed z); GL_API void GL_APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); GL_API void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); /*------------------------------------------------------------------------* * Required OES extension functions *------------------------------------------------------------------------*/ /* GL_OES_read_format */ #ifndef GL_OES_read_format #define GL_OES_read_format 1 #endif /* GL_OES_compressed_paletted_texture */ #ifndef GL_OES_compressed_paletted_texture #define GL_OES_compressed_paletted_texture 1 #endif /* GL_OES_point_size_array */ #ifndef GL_OES_point_size_array #define GL_OES_point_size_array 1 GL_API void GL_APIENTRY glPointSizePointerOES (GLenum type, GLsizei stride, const GLvoid *pointer); #endif /* GL_OES_point_sprite */ #ifndef GL_OES_point_sprite #define GL_OES_point_sprite 1 #endif #ifdef __cplusplus } #endif #pragma GCC diagnostic pop #endif /* __gl_h_ */
34,439
C++
.h
691
48.709117
194
0.622664
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
17,814
glext.h
anbox_anbox/external/android-emugl/host/include/GLES/glext.h
#ifndef __glext_h_ #define __glext_h_ /* $Revision: 13240 $ on $Date:: 2010-12-17 15:16:00 -0800 #$ */ #ifdef __cplusplus extern "C" { #endif /* * This document is licensed under the SGI Free Software B License Version * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . */ #ifndef GL_APIENTRYP # define GL_APIENTRYP GL_APIENTRY* #endif /*------------------------------------------------------------------------* * OES extension tokens *------------------------------------------------------------------------*/ /* GL_OES_blend_equation_separate */ #ifndef GL_OES_blend_equation_separate /* BLEND_EQUATION_RGB_OES same as BLEND_EQUATION_OES */ #define GL_BLEND_EQUATION_RGB_OES 0x8009 #define GL_BLEND_EQUATION_ALPHA_OES 0x883D #endif /* GL_OES_blend_func_separate */ #ifndef GL_OES_blend_func_separate #define GL_BLEND_DST_RGB_OES 0x80C8 #define GL_BLEND_SRC_RGB_OES 0x80C9 #define GL_BLEND_DST_ALPHA_OES 0x80CA #define GL_BLEND_SRC_ALPHA_OES 0x80CB #endif /* GL_OES_blend_subtract */ #ifndef GL_OES_blend_subtract #define GL_BLEND_EQUATION_OES 0x8009 #define GL_FUNC_ADD_OES 0x8006 #define GL_FUNC_SUBTRACT_OES 0x800A #define GL_FUNC_REVERSE_SUBTRACT_OES 0x800B #endif /* GL_OES_compressed_ETC1_RGB8_texture */ #ifndef GL_OES_compressed_ETC1_RGB8_texture #define GL_ETC1_RGB8_OES 0x8D64 #endif /* GL_OES_depth24 */ #ifndef GL_OES_depth24 #define GL_DEPTH_COMPONENT24_OES 0x81A6 #endif /* GL_OES_depth32 */ #ifndef GL_OES_depth32 #define GL_DEPTH_COMPONENT32_OES 0x81A7 #endif /* GL_OES_draw_texture */ #ifndef GL_OES_draw_texture #define GL_TEXTURE_CROP_RECT_OES 0x8B9D #endif /* GL_OES_EGL_image */ #ifndef GL_OES_EGL_image typedef void* GLeglImageOES; #endif /* GL_OES_EGL_image_external */ #ifndef GL_OES_EGL_image_external /* GLeglImageOES defined in GL_OES_EGL_image already. */ #define GL_TEXTURE_EXTERNAL_OES 0x8D65 #define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67 #define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68 #endif /* GL_OES_element_index_uint */ #ifndef GL_OES_element_index_uint #define GL_UNSIGNED_INT 0x1405 #endif /* GL_OES_fixed_point */ #ifndef GL_OES_fixed_point #define GL_FIXED_OES 0x140C #endif /* GL_OES_framebuffer_object */ #ifndef GL_OES_framebuffer_object #define GL_NONE_OES 0 #define GL_FRAMEBUFFER_OES 0x8D40 #define GL_RENDERBUFFER_OES 0x8D41 #define GL_RGBA4_OES 0x8056 #define GL_RGB5_A1_OES 0x8057 #define GL_RGB565_OES 0x8D62 #define GL_DEPTH_COMPONENT16_OES 0x81A5 #define GL_RENDERBUFFER_WIDTH_OES 0x8D42 #define GL_RENDERBUFFER_HEIGHT_OES 0x8D43 #define GL_RENDERBUFFER_INTERNAL_FORMAT_OES 0x8D44 #define GL_RENDERBUFFER_RED_SIZE_OES 0x8D50 #define GL_RENDERBUFFER_GREEN_SIZE_OES 0x8D51 #define GL_RENDERBUFFER_BLUE_SIZE_OES 0x8D52 #define GL_RENDERBUFFER_ALPHA_SIZE_OES 0x8D53 #define GL_RENDERBUFFER_DEPTH_SIZE_OES 0x8D54 #define GL_RENDERBUFFER_STENCIL_SIZE_OES 0x8D55 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES 0x8CD0 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES 0x8CD1 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES 0x8CD2 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES 0x8CD3 #define GL_COLOR_ATTACHMENT0_OES 0x8CE0 #define GL_DEPTH_ATTACHMENT_OES 0x8D00 #define GL_STENCIL_ATTACHMENT_OES 0x8D20 #define GL_FRAMEBUFFER_COMPLETE_OES 0x8CD5 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES 0x8CD6 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES 0x8CD7 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_OES 0x8CD9 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_OES 0x8CDA #define GL_FRAMEBUFFER_UNSUPPORTED_OES 0x8CDD #define GL_FRAMEBUFFER_BINDING_OES 0x8CA6 #define GL_RENDERBUFFER_BINDING_OES 0x8CA7 #define GL_MAX_RENDERBUFFER_SIZE_OES 0x84E8 #define GL_INVALID_FRAMEBUFFER_OPERATION_OES 0x0506 #endif /* GL_OES_mapbuffer */ #ifndef GL_OES_mapbuffer #define GL_WRITE_ONLY_OES 0x88B9 #define GL_BUFFER_ACCESS_OES 0x88BB #define GL_BUFFER_MAPPED_OES 0x88BC #define GL_BUFFER_MAP_POINTER_OES 0x88BD #endif /* GL_OES_matrix_get */ #ifndef GL_OES_matrix_get #define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES 0x898D #define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES 0x898E #define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES 0x898F #endif /* GL_OES_matrix_palette */ #ifndef GL_OES_matrix_palette #define GL_MAX_VERTEX_UNITS_OES 0x86A4 #define GL_MAX_PALETTE_MATRICES_OES 0x8842 #define GL_MATRIX_PALETTE_OES 0x8840 #define GL_MATRIX_INDEX_ARRAY_OES 0x8844 #define GL_WEIGHT_ARRAY_OES 0x86AD #define GL_CURRENT_PALETTE_MATRIX_OES 0x8843 #define GL_MATRIX_INDEX_ARRAY_SIZE_OES 0x8846 #define GL_MATRIX_INDEX_ARRAY_TYPE_OES 0x8847 #define GL_MATRIX_INDEX_ARRAY_STRIDE_OES 0x8848 #define GL_MATRIX_INDEX_ARRAY_POINTER_OES 0x8849 #define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES 0x8B9E #define GL_WEIGHT_ARRAY_SIZE_OES 0x86AB #define GL_WEIGHT_ARRAY_TYPE_OES 0x86A9 #define GL_WEIGHT_ARRAY_STRIDE_OES 0x86AA #define GL_WEIGHT_ARRAY_POINTER_OES 0x86AC #define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES 0x889E #endif /* GL_OES_packed_depth_stencil */ #ifndef GL_OES_packed_depth_stencil #define GL_DEPTH_STENCIL_OES 0x84F9 #define GL_UNSIGNED_INT_24_8_OES 0x84FA #define GL_DEPTH24_STENCIL8_OES 0x88F0 #endif /* GL_OES_rgb8_rgba8 */ #ifndef GL_OES_rgb8_rgba8 #define GL_RGB8_OES 0x8051 #define GL_RGBA8_OES 0x8058 #endif /* GL_OES_stencil1 */ #ifndef GL_OES_stencil1 #define GL_STENCIL_INDEX1_OES 0x8D46 #endif /* GL_OES_stencil4 */ #ifndef GL_OES_stencil4 #define GL_STENCIL_INDEX4_OES 0x8D47 #endif /* GL_OES_stencil8 */ #ifndef GL_OES_stencil8 #define GL_STENCIL_INDEX8_OES 0x8D48 #endif /* GL_OES_stencil_wrap */ #ifndef GL_OES_stencil_wrap #define GL_INCR_WRAP_OES 0x8507 #define GL_DECR_WRAP_OES 0x8508 #endif /* GL_OES_texture_cube_map */ #ifndef GL_OES_texture_cube_map #define GL_NORMAL_MAP_OES 0x8511 #define GL_REFLECTION_MAP_OES 0x8512 #define GL_TEXTURE_CUBE_MAP_OES 0x8513 #define GL_TEXTURE_BINDING_CUBE_MAP_OES 0x8514 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES 0x8515 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES 0x8516 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES 0x8517 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES 0x8518 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES 0x8519 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES 0x851A #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_OES 0x851C #define GL_TEXTURE_GEN_MODE_OES 0x2500 #define GL_TEXTURE_GEN_STR_OES 0x8D60 #endif /* GL_OES_texture_mirrored_repeat */ #ifndef GL_OES_texture_mirrored_repeat #define GL_MIRRORED_REPEAT_OES 0x8370 #endif /* GL_OES_vertex_array_object */ #ifndef GL_OES_vertex_array_object #define GL_VERTEX_ARRAY_BINDING_OES 0x85B5 #endif /*------------------------------------------------------------------------* * AMD extension tokens *------------------------------------------------------------------------*/ /* GL_AMD_compressed_3DC_texture */ #ifndef GL_AMD_compressed_3DC_texture #define GL_3DC_X_AMD 0x87F9 #define GL_3DC_XY_AMD 0x87FA #endif /* GL_AMD_compressed_ATC_texture */ #ifndef GL_AMD_compressed_ATC_texture #define GL_ATC_RGB_AMD 0x8C92 #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93 #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE #endif /*------------------------------------------------------------------------* * APPLE extension tokens *------------------------------------------------------------------------*/ /* GL_APPLE_texture_2D_limited_npot */ /* No new tokens introduced by this extension. */ /* GL_APPLE_framebuffer_multisample */ #ifndef GL_APPLE_framebuffer_multisample #define GL_RENDERBUFFER_SAMPLES_APPLE 0x8CAB #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE 0x8D56 #define GL_MAX_SAMPLES_APPLE 0x8D57 #define GL_READ_FRAMEBUFFER_APPLE 0x8CA8 #define GL_DRAW_FRAMEBUFFER_APPLE 0x8CA9 #define GL_DRAW_FRAMEBUFFER_BINDING_APPLE 0x8CA6 #define GL_READ_FRAMEBUFFER_BINDING_APPLE 0x8CAA #endif /* GL_APPLE_texture_format_BGRA8888 */ #ifndef GL_APPLE_texture_format_BGRA8888 #define GL_BGRA_EXT 0x80E1 #endif /* GL_APPLE_texture_max_level */ #ifndef GL_APPLE_texture_max_level #define GL_TEXTURE_MAX_LEVEL_APPLE 0x813D #endif /*------------------------------------------------------------------------* * ARM extension tokens *------------------------------------------------------------------------*/ /* GL_ARM_rgba8 */ /* No new tokens introduced by this extension. */ /*------------------------------------------------------------------------* * EXT extension tokens *------------------------------------------------------------------------*/ /* GL_EXT_blend_minmax */ #ifndef GL_EXT_blend_minmax #define GL_MIN_EXT 0x8007 #define GL_MAX_EXT 0x8008 #endif /* GL_EXT_discard_framebuffer */ #ifndef GL_EXT_discard_framebuffer #define GL_COLOR_EXT 0x1800 #define GL_DEPTH_EXT 0x1801 #define GL_STENCIL_EXT 0x1802 #endif /* GL_EXT_multi_draw_arrays */ /* No new tokens introduced by this extension. */ /* GL_EXT_read_format_bgra */ #ifndef GL_EXT_read_format_bgra #define GL_BGRA_EXT 0x80E1 #define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT 0x8365 #define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT 0x8366 #endif /* GL_EXT_texture_filter_anisotropic */ #ifndef GL_EXT_texture_filter_anisotropic #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF #endif /* GL_EXT_texture_format_BGRA8888 */ #ifndef GL_EXT_texture_format_BGRA8888 #define GL_BGRA_EXT 0x80E1 #endif /* GL_EXT_texture_lod_bias */ #ifndef GL_EXT_texture_lod_bias #define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD #define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500 #define GL_TEXTURE_LOD_BIAS_EXT 0x8501 #endif /*------------------------------------------------------------------------* * IMG extension tokens *------------------------------------------------------------------------*/ /* GL_IMG_read_format */ #ifndef GL_IMG_read_format #define GL_BGRA_IMG 0x80E1 #define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365 #endif /* GL_IMG_texture_compression_pvrtc */ #ifndef GL_IMG_texture_compression_pvrtc #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00 #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01 #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02 #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03 #endif /* GL_IMG_texture_env_enhanced_fixed_function */ #ifndef GL_IMG_texture_env_enhanced_fixed_function #define GL_MODULATE_COLOR_IMG 0x8C04 #define GL_RECIP_ADD_SIGNED_ALPHA_IMG 0x8C05 #define GL_TEXTURE_ALPHA_MODULATE_IMG 0x8C06 #define GL_FACTOR_ALPHA_MODULATE_IMG 0x8C07 #define GL_FRAGMENT_ALPHA_MODULATE_IMG 0x8C08 #define GL_ADD_BLEND_IMG 0x8C09 #define GL_DOT3_RGBA_IMG 0x86AF #endif /* GL_IMG_user_clip_plane */ #ifndef GL_IMG_user_clip_plane #define GL_CLIP_PLANE0_IMG 0x3000 #define GL_CLIP_PLANE1_IMG 0x3001 #define GL_CLIP_PLANE2_IMG 0x3002 #define GL_CLIP_PLANE3_IMG 0x3003 #define GL_CLIP_PLANE4_IMG 0x3004 #define GL_CLIP_PLANE5_IMG 0x3005 #define GL_MAX_CLIP_PLANES_IMG 0x0D32 #endif /* GL_IMG_multisampled_render_to_texture */ #ifndef GL_IMG_multisampled_render_to_texture #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 #define GL_MAX_SAMPLES_IMG 0x9135 #define GL_TEXTURE_SAMPLES_IMG 0x9136 #endif /*------------------------------------------------------------------------* * NV extension tokens *------------------------------------------------------------------------*/ /* GL_NV_fence */ #ifndef GL_NV_fence #define GL_ALL_COMPLETED_NV 0x84F2 #define GL_FENCE_STATUS_NV 0x84F3 #define GL_FENCE_CONDITION_NV 0x84F4 #endif /*------------------------------------------------------------------------* * QCOM extension tokens *------------------------------------------------------------------------*/ /* GL_QCOM_driver_control */ /* No new tokens introduced by this extension. */ /* GL_QCOM_extended_get */ #ifndef GL_QCOM_extended_get #define GL_TEXTURE_WIDTH_QCOM 0x8BD2 #define GL_TEXTURE_HEIGHT_QCOM 0x8BD3 #define GL_TEXTURE_DEPTH_QCOM 0x8BD4 #define GL_TEXTURE_INTERNAL_FORMAT_QCOM 0x8BD5 #define GL_TEXTURE_FORMAT_QCOM 0x8BD6 #define GL_TEXTURE_TYPE_QCOM 0x8BD7 #define GL_TEXTURE_IMAGE_VALID_QCOM 0x8BD8 #define GL_TEXTURE_NUM_LEVELS_QCOM 0x8BD9 #define GL_TEXTURE_TARGET_QCOM 0x8BDA #define GL_TEXTURE_OBJECT_VALID_QCOM 0x8BDB #define GL_STATE_RESTORE 0x8BDC #endif /* GL_QCOM_extended_get2 */ /* No new tokens introduced by this extension. */ /* GL_QCOM_perfmon_global_mode */ #ifndef GL_QCOM_perfmon_global_mode #define GL_PERFMON_GLOBAL_MODE_QCOM 0x8FA0 #endif /* GL_QCOM_writeonly_rendering */ #ifndef GL_QCOM_writeonly_rendering #define GL_WRITEONLY_RENDERING_QCOM 0x8823 #endif /* GL_QCOM_tiled_rendering */ #ifndef GL_QCOM_tiled_rendering #define GL_COLOR_BUFFER_BIT0_QCOM 0x00000001 #define GL_COLOR_BUFFER_BIT1_QCOM 0x00000002 #define GL_COLOR_BUFFER_BIT2_QCOM 0x00000004 #define GL_COLOR_BUFFER_BIT3_QCOM 0x00000008 #define GL_COLOR_BUFFER_BIT4_QCOM 0x00000010 #define GL_COLOR_BUFFER_BIT5_QCOM 0x00000020 #define GL_COLOR_BUFFER_BIT6_QCOM 0x00000040 #define GL_COLOR_BUFFER_BIT7_QCOM 0x00000080 #define GL_DEPTH_BUFFER_BIT0_QCOM 0x00000100 #define GL_DEPTH_BUFFER_BIT1_QCOM 0x00000200 #define GL_DEPTH_BUFFER_BIT2_QCOM 0x00000400 #define GL_DEPTH_BUFFER_BIT3_QCOM 0x00000800 #define GL_DEPTH_BUFFER_BIT4_QCOM 0x00001000 #define GL_DEPTH_BUFFER_BIT5_QCOM 0x00002000 #define GL_DEPTH_BUFFER_BIT6_QCOM 0x00004000 #define GL_DEPTH_BUFFER_BIT7_QCOM 0x00008000 #define GL_STENCIL_BUFFER_BIT0_QCOM 0x00010000 #define GL_STENCIL_BUFFER_BIT1_QCOM 0x00020000 #define GL_STENCIL_BUFFER_BIT2_QCOM 0x00040000 #define GL_STENCIL_BUFFER_BIT3_QCOM 0x00080000 #define GL_STENCIL_BUFFER_BIT4_QCOM 0x00100000 #define GL_STENCIL_BUFFER_BIT5_QCOM 0x00200000 #define GL_STENCIL_BUFFER_BIT6_QCOM 0x00400000 #define GL_STENCIL_BUFFER_BIT7_QCOM 0x00800000 #define GL_MULTISAMPLE_BUFFER_BIT0_QCOM 0x01000000 #define GL_MULTISAMPLE_BUFFER_BIT1_QCOM 0x02000000 #define GL_MULTISAMPLE_BUFFER_BIT2_QCOM 0x04000000 #define GL_MULTISAMPLE_BUFFER_BIT3_QCOM 0x08000000 #define GL_MULTISAMPLE_BUFFER_BIT4_QCOM 0x10000000 #define GL_MULTISAMPLE_BUFFER_BIT5_QCOM 0x20000000 #define GL_MULTISAMPLE_BUFFER_BIT6_QCOM 0x40000000 #define GL_MULTISAMPLE_BUFFER_BIT7_QCOM 0x80000000 #endif /*------------------------------------------------------------------------* * End of extension tokens, start of corresponding extension functions *------------------------------------------------------------------------*/ /*------------------------------------------------------------------------* * OES extension functions *------------------------------------------------------------------------*/ /* GL_OES_blend_equation_separate */ #ifndef GL_OES_blend_equation_separate #define GL_OES_blend_equation_separate 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glBlendEquationSeparateOES (GLenum modeRGB, GLenum modeAlpha); #endif typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEOESPROC) (GLenum modeRGB, GLenum modeAlpha); #endif /* GL_OES_blend_func_separate */ #ifndef GL_OES_blend_func_separate #define GL_OES_blend_func_separate 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glBlendFuncSeparateOES (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); #endif typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEOESPROC) (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); #endif /* GL_OES_blend_subtract */ #ifndef GL_OES_blend_subtract #define GL_OES_blend_subtract 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glBlendEquationOES (GLenum mode); #endif typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONOESPROC) (GLenum mode); #endif /* GL_OES_byte_coordinates */ #ifndef GL_OES_byte_coordinates #define GL_OES_byte_coordinates 1 #endif /* GL_OES_compressed_ETC1_RGB8_texture */ #ifndef GL_OES_compressed_ETC1_RGB8_texture #define GL_OES_compressed_ETC1_RGB8_texture 1 #endif /* GL_OES_depth24 */ #ifndef GL_OES_depth24 #define GL_OES_depth24 1 #endif /* GL_OES_depth32 */ #ifndef GL_OES_depth32 #define GL_OES_depth32 1 #endif /* GL_OES_draw_texture */ #ifndef GL_OES_draw_texture #define GL_OES_draw_texture 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glDrawTexsOES (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height); GL_API void GL_APIENTRY glDrawTexiOES (GLint x, GLint y, GLint z, GLint width, GLint height); GL_API void GL_APIENTRY glDrawTexxOES (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height); GL_API void GL_APIENTRY glDrawTexsvOES (const GLshort *coords); GL_API void GL_APIENTRY glDrawTexivOES (const GLint *coords); GL_API void GL_APIENTRY glDrawTexxvOES (const GLfixed *coords); GL_API void GL_APIENTRY glDrawTexfOES (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height); GL_API void GL_APIENTRY glDrawTexfvOES (const GLfloat *coords); #endif typedef void (GL_APIENTRYP PFNGLDRAWTEXSOESPROC) (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height); typedef void (GL_APIENTRYP PFNGLDRAWTEXIOESPROC) (GLint x, GLint y, GLint z, GLint width, GLint height); typedef void (GL_APIENTRYP PFNGLDRAWTEXXOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height); typedef void (GL_APIENTRYP PFNGLDRAWTEXSVOESPROC) (const GLshort *coords); typedef void (GL_APIENTRYP PFNGLDRAWTEXIVOESPROC) (const GLint *coords); typedef void (GL_APIENTRYP PFNGLDRAWTEXXVOESPROC) (const GLfixed *coords); typedef void (GL_APIENTRYP PFNGLDRAWTEXFOESPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height); typedef void (GL_APIENTRYP PFNGLDRAWTEXFVOESPROC) (const GLfloat *coords); #endif /* GL_OES_EGL_image */ #ifndef GL_OES_EGL_image #define GL_OES_EGL_image 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image); GL_API void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image); #endif typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image); typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image); #endif /* GL_OES_EGL_image_external */ #ifndef GL_OES_EGL_image_external #define GL_OES_EGL_image_external 1 /* glEGLImageTargetTexture2DOES defined in GL_OES_EGL_image already. */ #endif /* GL_OES_element_index_uint */ #ifndef GL_OES_element_index_uint #define GL_OES_element_index_uint 1 #endif /* GL_OES_extended_matrix_palette */ #ifndef GL_OES_extended_matrix_palette #define GL_OES_extended_matrix_palette 1 #endif /* GL_OES_fbo_render_mipmap */ #ifndef GL_OES_fbo_render_mipmap #define GL_OES_fbo_render_mipmap 1 #endif /* GL_OES_fixed_point */ #ifndef GL_OES_fixed_point #define GL_OES_fixed_point 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glAlphaFuncxOES (GLenum func, GLclampx ref); GL_API void GL_APIENTRY glClearColorxOES (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha); GL_API void GL_APIENTRY glClearDepthxOES (GLclampx depth); GL_API void GL_APIENTRY glClipPlanexOES (GLenum plane, const GLfixed *equation); GL_API void GL_APIENTRY glColor4xOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); GL_API void GL_APIENTRY glDepthRangexOES (GLclampx zNear, GLclampx zFar); GL_API void GL_APIENTRY glFogxOES (GLenum pname, GLfixed param); GL_API void GL_APIENTRY glFogxvOES (GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glFrustumxOES (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); GL_API void GL_APIENTRY glGetClipPlanexOES (GLenum pname, GLfixed eqn[4]); GL_API void GL_APIENTRY glGetFixedvOES (GLenum pname, GLfixed *params); GL_API void GL_APIENTRY glGetLightxvOES (GLenum light, GLenum pname, GLfixed *params); GL_API void GL_APIENTRY glGetMaterialxvOES (GLenum face, GLenum pname, GLfixed *params); GL_API void GL_APIENTRY glGetTexEnvxvOES (GLenum env, GLenum pname, GLfixed *params); GL_API void GL_APIENTRY glGetTexParameterxvOES (GLenum target, GLenum pname, GLfixed *params); GL_API void GL_APIENTRY glLightModelxOES (GLenum pname, GLfixed param); GL_API void GL_APIENTRY glLightModelxvOES (GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glLightxOES (GLenum light, GLenum pname, GLfixed param); GL_API void GL_APIENTRY glLightxvOES (GLenum light, GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glLineWidthxOES (GLfixed width); GL_API void GL_APIENTRY glLoadMatrixxOES (const GLfixed *m); GL_API void GL_APIENTRY glMaterialxOES (GLenum face, GLenum pname, GLfixed param); GL_API void GL_APIENTRY glMaterialxvOES (GLenum face, GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glMultMatrixxOES (const GLfixed *m); GL_API void GL_APIENTRY glMultiTexCoord4xOES (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q); GL_API void GL_APIENTRY glNormal3xOES (GLfixed nx, GLfixed ny, GLfixed nz); GL_API void GL_APIENTRY glOrthoxOES (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); GL_API void GL_APIENTRY glPointParameterxOES (GLenum pname, GLfixed param); GL_API void GL_APIENTRY glPointParameterxvOES (GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glPointSizexOES (GLfixed size); GL_API void GL_APIENTRY glPolygonOffsetxOES (GLfixed factor, GLfixed units); GL_API void GL_APIENTRY glRotatexOES (GLfixed angle, GLfixed x, GLfixed y, GLfixed z); GL_API void GL_APIENTRY glSampleCoveragexOES (GLclampx value, GLboolean invert); GL_API void GL_APIENTRY glScalexOES (GLfixed x, GLfixed y, GLfixed z); GL_API void GL_APIENTRY glTexEnvxOES (GLenum target, GLenum pname, GLfixed param); GL_API void GL_APIENTRY glTexEnvxvOES (GLenum target, GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glTexParameterxOES (GLenum target, GLenum pname, GLfixed param); GL_API void GL_APIENTRY glTexParameterxvOES (GLenum target, GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glTranslatexOES (GLfixed x, GLfixed y, GLfixed z); #endif typedef void (GL_APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLclampx ref); typedef void (GL_APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha); typedef void (GL_APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLclampx depth); typedef void (GL_APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane, const GLfixed *equation); typedef void (GL_APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); typedef void (GL_APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLclampx zNear, GLclampx zFar); typedef void (GL_APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param); typedef void (GL_APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname, const GLfixed *params); typedef void (GL_APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum pname, GLfixed eqn[4]); typedef void (GL_APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed *params); typedef void (GL_APIENTRYP PFNGLGETLIGHTXVOESPROC) (GLenum light, GLenum pname, GLfixed *params); typedef void (GL_APIENTRYP PFNGLGETMATERIALXVOESPROC) (GLenum face, GLenum pname, GLfixed *params); typedef void (GL_APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum env, GLenum pname, GLfixed *params); typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params); typedef void (GL_APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param); typedef void (GL_APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname, const GLfixed *params); typedef void (GL_APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param); typedef void (GL_APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname, const GLfixed *params); typedef void (GL_APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width); typedef void (GL_APIENTRYP PFNGLLOADMATRIXXOESPROC) (const GLfixed *m); typedef void (GL_APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param); typedef void (GL_APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname, const GLfixed *params); typedef void (GL_APIENTRYP PFNGLMULTMATRIXXOESPROC) (const GLfixed *m); typedef void (GL_APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q); typedef void (GL_APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz); typedef void (GL_APIENTRYP PFNGLORTHOXOESPROC) (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXOESPROC) (GLenum pname, GLfixed param); typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname, const GLfixed *params); typedef void (GL_APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size); typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units); typedef void (GL_APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z); typedef void (GL_APIENTRYP PFNGLSAMPLECOVERAGEXOESPROC) (GLclampx value, GLboolean invert); typedef void (GL_APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z); typedef void (GL_APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param); typedef void (GL_APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params); typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param); typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params); typedef void (GL_APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z); #endif /* GL_OES_framebuffer_object */ #ifndef GL_OES_framebuffer_object #define GL_OES_framebuffer_object 1 #ifdef GL_GLEXT_PROTOTYPES GL_API GLboolean GL_APIENTRY glIsRenderbufferOES (GLuint renderbuffer); GL_API void GL_APIENTRY glBindRenderbufferOES (GLenum target, GLuint renderbuffer); GL_API void GL_APIENTRY glDeleteRenderbuffersOES (GLsizei n, const GLuint* renderbuffers); GL_API void GL_APIENTRY glGenRenderbuffersOES (GLsizei n, GLuint* renderbuffers); GL_API void GL_APIENTRY glRenderbufferStorageOES (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); GL_API void GL_APIENTRY glGetRenderbufferParameterivOES (GLenum target, GLenum pname, GLint* params); GL_API GLboolean GL_APIENTRY glIsFramebufferOES (GLuint framebuffer); GL_API void GL_APIENTRY glBindFramebufferOES (GLenum target, GLuint framebuffer); GL_API void GL_APIENTRY glDeleteFramebuffersOES (GLsizei n, const GLuint* framebuffers); GL_API void GL_APIENTRY glGenFramebuffersOES (GLsizei n, GLuint* framebuffers); GL_API GLenum GL_APIENTRY glCheckFramebufferStatusOES (GLenum target); GL_API void GL_APIENTRY glFramebufferRenderbufferOES (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); GL_API void GL_APIENTRY glFramebufferTexture2DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); GL_API void GL_APIENTRY glGetFramebufferAttachmentParameterivOES (GLenum target, GLenum attachment, GLenum pname, GLint* params); GL_API void GL_APIENTRY glGenerateMipmapOES (GLenum target); #endif typedef GLboolean (GL_APIENTRYP PFNGLISRENDERBUFFEROESPROC) (GLuint renderbuffer); typedef void (GL_APIENTRYP PFNGLBINDRENDERBUFFEROESPROC) (GLenum target, GLuint renderbuffer); typedef void (GL_APIENTRYP PFNGLDELETERENDERBUFFERSOESPROC) (GLsizei n, const GLuint* renderbuffers); typedef void (GL_APIENTRYP PFNGLGENRENDERBUFFERSOESPROC) (GLsizei n, GLuint* renderbuffers); typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); typedef void (GL_APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVOESPROC) (GLenum target, GLenum pname, GLint* params); typedef GLboolean (GL_APIENTRYP PFNGLISFRAMEBUFFEROESPROC) (GLuint framebuffer); typedef void (GL_APIENTRYP PFNGLBINDFRAMEBUFFEROESPROC) (GLenum target, GLuint framebuffer); typedef void (GL_APIENTRYP PFNGLDELETEFRAMEBUFFERSOESPROC) (GLsizei n, const GLuint* framebuffers); typedef void (GL_APIENTRYP PFNGLGENFRAMEBUFFERSOESPROC) (GLsizei n, GLuint* framebuffers); typedef GLenum (GL_APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSOESPROC) (GLenum target); typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEROESPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); typedef void (GL_APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params); typedef void (GL_APIENTRYP PFNGLGENERATEMIPMAPOESPROC) (GLenum target); #endif /* GL_OES_mapbuffer */ #ifndef GL_OES_mapbuffer #define GL_OES_mapbuffer 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access); GL_API GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target); GL_API void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, GLvoid ** params); #endif typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access); typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target); typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, GLvoid ** params); #endif /* GL_OES_matrix_get */ #ifndef GL_OES_matrix_get #define GL_OES_matrix_get 1 #endif /* GL_OES_matrix_palette */ #ifndef GL_OES_matrix_palette #define GL_OES_matrix_palette 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glCurrentPaletteMatrixOES (GLuint matrixpaletteindex); GL_API void GL_APIENTRY glLoadPaletteFromModelViewMatrixOES (void); GL_API void GL_APIENTRY glMatrixIndexPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); GL_API void GL_APIENTRY glWeightPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); #endif typedef void (GL_APIENTRYP PFNGLCURRENTPALETTEMATRIXOESPROC) (GLuint matrixpaletteindex); typedef void (GL_APIENTRYP PFNGLLOADPALETTEFROMMODELVIEWMATRIXOESPROC) (void); typedef void (GL_APIENTRYP PFNGLMATRIXINDEXPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (GL_APIENTRYP PFNGLWEIGHTPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); #endif /* GL_OES_packed_depth_stencil */ #ifndef GL_OES_packed_depth_stencil #define GL_OES_packed_depth_stencil 1 #endif /* GL_OES_query_matrix */ #ifndef GL_OES_query_matrix #define GL_OES_query_matrix 1 #ifdef GL_GLEXT_PROTOTYPES GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES (GLfixed mantissa[16], GLint exponent[16]); #endif typedef GLbitfield (GL_APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed mantissa[16], GLint exponent[16]); #endif /* GL_OES_rgb8_rgba8 */ #ifndef GL_OES_rgb8_rgba8 #define GL_OES_rgb8_rgba8 1 #endif /* GL_OES_single_precision */ #ifndef GL_OES_single_precision #define GL_OES_single_precision 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glDepthRangefOES (GLclampf zNear, GLclampf zFar); GL_API void GL_APIENTRY glFrustumfOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); GL_API void GL_APIENTRY glOrthofOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); GL_API void GL_APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation); GL_API void GL_APIENTRY glGetClipPlanefOES (GLenum pname, GLfloat eqn[4]); GL_API void GL_APIENTRY glClearDepthfOES (GLclampf depth); #endif typedef void (GL_APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf zNear, GLclampf zFar); typedef void (GL_APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); typedef void (GL_APIENTRYP PFNGLORTHOFOESPROC) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); typedef void (GL_APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat *equation); typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum pname, GLfloat eqn[4]); typedef void (GL_APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampf depth); #endif /* GL_OES_stencil1 */ #ifndef GL_OES_stencil1 #define GL_OES_stencil1 1 #endif /* GL_OES_stencil4 */ #ifndef GL_OES_stencil4 #define GL_OES_stencil4 1 #endif /* GL_OES_stencil8 */ #ifndef GL_OES_stencil8 #define GL_OES_stencil8 1 #endif /* GL_OES_stencil_wrap */ #ifndef GL_OES_stencil_wrap #define GL_OES_stencil_wrap 1 #endif /* GL_OES_texture_cube_map */ #ifndef GL_OES_texture_cube_map #define GL_OES_texture_cube_map 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glTexGenfOES (GLenum coord, GLenum pname, GLfloat param); GL_API void GL_APIENTRY glTexGenfvOES (GLenum coord, GLenum pname, const GLfloat *params); GL_API void GL_APIENTRY glTexGeniOES (GLenum coord, GLenum pname, GLint param); GL_API void GL_APIENTRY glTexGenivOES (GLenum coord, GLenum pname, const GLint *params); GL_API void GL_APIENTRY glTexGenxOES (GLenum coord, GLenum pname, GLfixed param); GL_API void GL_APIENTRY glTexGenxvOES (GLenum coord, GLenum pname, const GLfixed *params); GL_API void GL_APIENTRY glGetTexGenfvOES (GLenum coord, GLenum pname, GLfloat *params); GL_API void GL_APIENTRY glGetTexGenivOES (GLenum coord, GLenum pname, GLint *params); GL_API void GL_APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *params); #endif typedef void (GL_APIENTRYP PFNGLTEXGENFOESPROC) (GLenum coord, GLenum pname, GLfloat param); typedef void (GL_APIENTRYP PFNGLTEXGENFVOESPROC) (GLenum coord, GLenum pname, const GLfloat *params); typedef void (GL_APIENTRYP PFNGLTEXGENIOESPROC) (GLenum coord, GLenum pname, GLint param); typedef void (GL_APIENTRYP PFNGLTEXGENIVOESPROC) (GLenum coord, GLenum pname, const GLint *params); typedef void (GL_APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param); typedef void (GL_APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed *params); typedef void (GL_APIENTRYP PFNGLGETTEXGENFVOESPROC) (GLenum coord, GLenum pname, GLfloat *params); typedef void (GL_APIENTRYP PFNGLGETTEXGENIVOESPROC) (GLenum coord, GLenum pname, GLint *params); typedef void (GL_APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed *params); #endif /* GL_OES_texture_env_crossbar */ #ifndef GL_OES_texture_env_crossbar #define GL_OES_texture_env_crossbar 1 #endif /* GL_OES_texture_mirrored_repeat */ #ifndef GL_OES_texture_mirrored_repeat #define GL_OES_texture_mirrored_repeat 1 #endif /* GL_OES_vertex_array_object */ #ifndef GL_OES_vertex_array_object #define GL_OES_vertex_array_object 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glBindVertexArrayOES (GLuint array); GL_API void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays); GL_API void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays); GL_API GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array); #endif typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array); typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays); typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays); typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array); #endif /*------------------------------------------------------------------------* * AMD extension functions *------------------------------------------------------------------------*/ /* GL_AMD_compressed_3DC_texture */ #ifndef GL_AMD_compressed_3DC_texture #define GL_AMD_compressed_3DC_texture 1 #endif /* GL_AMD_compressed_ATC_texture */ #ifndef GL_AMD_compressed_ATC_texture #define GL_AMD_compressed_ATC_texture 1 #endif /*------------------------------------------------------------------------* * APPLE extension functions *------------------------------------------------------------------------*/ /* GL_APPLE_texture_2D_limited_npot */ #ifndef GL_APPLE_texture_2D_limited_npot #define GL_APPLE_texture_2D_limited_npot 1 #endif /* GL_APPLE_framebuffer_multisample */ #ifndef GL_APPLE_framebuffer_multisample #define GL_APPLE_framebuffer_multisample 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum, GLsizei, GLenum, GLsizei, GLsizei); GL_API void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void); #endif /* GL_GLEXT_PROTOTYPES */ typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void); #endif /* GL_APPLE_texture_format_BGRA8888 */ #ifndef GL_APPLE_texture_format_BGRA8888 #define GL_APPLE_texture_format_BGRA8888 1 #endif /* GL_APPLE_texture_max_level */ #ifndef GL_APPLE_texture_max_level #define GL_APPLE_texture_max_level 1 #endif /*------------------------------------------------------------------------* * ARM extension functions *------------------------------------------------------------------------*/ /* GL_ARM_rgba8 */ #ifndef GL_ARM_rgba8 #define GL_ARM_rgba8 1 #endif /*------------------------------------------------------------------------* * EXT extension functions *------------------------------------------------------------------------*/ /* GL_EXT_blend_minmax */ #ifndef GL_EXT_blend_minmax #define GL_EXT_blend_minmax 1 #endif /* GL_EXT_discard_framebuffer */ #ifndef GL_EXT_discard_framebuffer #define GL_EXT_discard_framebuffer 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments); #endif typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments); #endif /* GL_EXT_multi_draw_arrays */ #ifndef GL_EXT_multi_draw_arrays #define GL_EXT_multi_draw_arrays 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei); GL_API void GL_APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei); #endif /* GL_GLEXT_PROTOTYPES */ typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); #endif /* GL_EXT_read_format_bgra */ #ifndef GL_EXT_read_format_bgra #define GL_EXT_read_format_bgra 1 #endif /* GL_EXT_texture_filter_anisotropic */ #ifndef GL_EXT_texture_filter_anisotropic #define GL_EXT_texture_filter_anisotropic 1 #endif /* GL_EXT_texture_format_BGRA8888 */ #ifndef GL_EXT_texture_format_BGRA8888 #define GL_EXT_texture_format_BGRA8888 1 #endif /* GL_EXT_texture_lod_bias */ #ifndef GL_EXT_texture_lod_bias #define GL_EXT_texture_lod_bias 1 #endif /*------------------------------------------------------------------------* * IMG extension functions *------------------------------------------------------------------------*/ /* GL_IMG_read_format */ #ifndef GL_IMG_read_format #define GL_IMG_read_format 1 #endif /* GL_IMG_texture_compression_pvrtc */ #ifndef GL_IMG_texture_compression_pvrtc #define GL_IMG_texture_compression_pvrtc 1 #endif /* GL_IMG_texture_env_enhanced_fixed_function */ #ifndef GL_IMG_texture_env_enhanced_fixed_function #define GL_IMG_texture_env_enhanced_fixed_function 1 #endif /* GL_IMG_user_clip_plane */ #ifndef GL_IMG_user_clip_plane #define GL_IMG_user_clip_plane 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glClipPlanefIMG (GLenum, const GLfloat *); GL_API void GL_APIENTRY glClipPlanexIMG (GLenum, const GLfixed *); #endif typedef void (GL_APIENTRYP PFNGLCLIPPLANEFIMGPROC) (GLenum p, const GLfloat *eqn); typedef void (GL_APIENTRYP PFNGLCLIPPLANEXIMGPROC) (GLenum p, const GLfixed *eqn); #endif /* GL_IMG_multisampled_render_to_texture */ #ifndef GL_IMG_multisampled_render_to_texture #define GL_IMG_multisampled_render_to_texture 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum, GLsizei, GLenum, GLsizei, GLsizei); GL_API void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei); #endif typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMG) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples); #endif /*------------------------------------------------------------------------* * NV extension functions *------------------------------------------------------------------------*/ /* NV_fence */ #ifndef GL_NV_fence #define GL_NV_fence 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glDeleteFencesNV (GLsizei, const GLuint *); GL_API void GL_APIENTRY glGenFencesNV (GLsizei, GLuint *); GL_API GLboolean GL_APIENTRY glIsFenceNV (GLuint); GL_API GLboolean GL_APIENTRY glTestFenceNV (GLuint); GL_API void GL_APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *); GL_API void GL_APIENTRY glFinishFenceNV (GLuint); GL_API void GL_APIENTRY glSetFenceNV (GLuint, GLenum); #endif typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences); typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences); typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence); typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence); typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params); typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence); typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); #endif /*------------------------------------------------------------------------* * QCOM extension functions *------------------------------------------------------------------------*/ /* GL_QCOM_driver_control */ #ifndef GL_QCOM_driver_control #define GL_QCOM_driver_control 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls); GL_API void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString); GL_API void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl); GL_API void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl); #endif typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls); typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString); typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl); typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl); #endif /* GL_QCOM_extended_get */ #ifndef GL_QCOM_extended_get #define GL_QCOM_extended_get 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures); GL_API void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers); GL_API void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers); GL_API void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers); GL_API void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params); GL_API void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param); GL_API void GL_APIENTRY glExtGetTexSubImageQCOM (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels); GL_API void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, GLvoid **params); #endif typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures); typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers); typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers); typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers); typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params); typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param); typedef void (GL_APIENTRYP PFNGLEXTGETTEXSUBIMAGEQCOMPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels); typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, GLvoid **params); #endif /* GL_QCOM_extended_get2 */ #ifndef GL_QCOM_extended_get2 #define GL_QCOM_extended_get2 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders); GL_API void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms); GL_API GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program); GL_API void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length); #endif typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders); typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms); typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program); typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length); #endif /* GL_QCOM_perfmon_global_mode */ #ifndef GL_QCOM_perfmon_global_mode #define GL_QCOM_perfmon_global_mode 1 #endif /* GL_QCOM_writeonly_rendering */ #ifndef GL_QCOM_writeonly_rendering #define GL_QCOM_writeonly_rendering 1 #endif /* GL_QCOM_tiled_rendering */ #ifndef GL_QCOM_tiled_rendering #define GL_QCOM_tiled_rendering 1 #ifdef GL_GLEXT_PROTOTYPES GL_API void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask); GL_API void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask); #endif typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask); typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask); #endif #ifdef __cplusplus } #endif #endif /* __glext_h_ */
52,514
C++
.h
943
54.511135
223
0.679322
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
true
true
false
false
false
false
false
false
17,815
glplatform.h
anbox_anbox/external/android-emugl/host/include/GLES/glplatform.h
#ifndef __glplatform_h_ #define __glplatform_h_ /* $Revision: 10601 $ on $Date:: 2010-03-04 22:15:27 -0800 #$ */ /* * This document is licensed under the SGI Free Software B License Version * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . */ /* Platform-specific types and definitions for OpenGL ES 1.X gl.h * * Adopters may modify khrplatform.h and this file to suit their platform. * You are encouraged to submit all modifications to the Khronos group so that * they can be included in future versions of this file. Please submit changes * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) * by filing a bug against product "OpenGL-ES" component "Registry". */ #include <KHR/khrplatform.h> #ifndef GL_API #define GL_API KHRONOS_APICALL #endif #ifndef GL_APIENTRY #define GL_APIENTRY KHRONOS_APIENTRY #endif #endif /* __glplatform_h_ */
901
C++
.h
23
37.434783
79
0.746269
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
true
true
false
false
false
false
false
false
17,816
gldefs.h
anbox_anbox/external/android-emugl/host/include/OpenGLESDispatch/gldefs.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once typedef double GLclampd; /* double precision float in [0,1] */ typedef double GLdouble; /* double precision float */ typedef void* GLeglImageOES; #define GL_S 0x2000 #define GL_T 0x2001 #define GL_R 0x2002 #define GL_Q 0x2003 #define GL_TEXTURE_GEN_S 0x0C60 #define GL_TEXTURE_GEN_T 0x0C61 #define GL_TEXTURE_GEN_R 0x0C62 #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 #define GL_TRANSFORM_BIT 0x00001000 #define GL_INT 0x1404 #define GL_HALF_FLOAT_NV 0x140B #define GL_HALF_FLOAT 0x140B #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 #define GL_POINT_SPRITE 0x8861 #define GL_FRAMEBUFFER_EXT 0x8D40 #define GL_TEXTURE_WIDTH 0x1000 #define GL_TEXTURE_HEIGHT 0x1001 #define GL_TEXTURE_RED_SIZE 0x805C #define GL_TEXTURE_GREEN_SIZE 0x805D #define GL_TEXTURE_BLUE_SIZE 0x805E #define GL_TEXTURE_ALPHA_SIZE 0x805F #define GL_TEXTURE_DEPTH_SIZE 0x884A #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
1,713
C++
.h
42
39.714286
74
0.700839
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
17,817
gles_functions.h
anbox_anbox/external/android-emugl/host/include/OpenGLESDispatch/gles_functions.h
// Copyright 2016 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #pragma once #include "OpenGLESDispatch/gles_common_functions.h" #include "OpenGLESDispatch/gles_extensions_functions.h" #include "OpenGLESDispatch/gles1_only_functions.h" #include "OpenGLESDispatch/gles1_extensions_functions.h" #include "OpenGLESDispatch/gles2_only_functions.h" #include "OpenGLESDispatch/gles2_extensions_functions.h" #include "OpenGLESDispatch/gles3_only_functions.h" // As a special case, LIST_GLES3_ONLY_FUNCTIONS below uses the Y parameter // instead of the X one, meaning that the corresponding functions are // optional extensions. This is only because currently, the only GLESv3 // API we support is glGetStringi(), which is not always provided by // host desktop GL drivers (though most do). #define LIST_GLES_FUNCTIONS(X,Y) \ LIST_GLES_COMMON_FUNCTIONS(X) \ LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \ LIST_GLES1_ONLY_FUNCTIONS(X) \ LIST_GLES1_EXTENSIONS_FUNCTIONS(Y) \ LIST_GLES2_ONLY_FUNCTIONS(X) \ LIST_GLES2_EXTENSIONS_FUNCTIONS(Y) \ LIST_GLES3_ONLY_FUNCTIONS(Y) \ #define LIST_GLES1_FUNCTIONS(X, Y) \ LIST_GLES_COMMON_FUNCTIONS(X) \ LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \ LIST_GLES1_ONLY_FUNCTIONS(X) \ LIST_GLES1_EXTENSIONS_FUNCTIONS(Y) \ #define LIST_GLES2_FUNCTIONS(X, Y) \ LIST_GLES_COMMON_FUNCTIONS(X) \ LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \ LIST_GLES2_ONLY_FUNCTIONS(X) \ LIST_GLES2_EXTENSIONS_FUNCTIONS(Y) \
2,005
C++
.h
44
43.068182
75
0.765217
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,818
GLESv2Dispatch.h
anbox_anbox/external/android-emugl/host/include/OpenGLESDispatch/GLESv2Dispatch.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include "OpenGLESDispatch/gldefs.h" #include "OpenGLESDispatch/gles_functions.h" #include "KHR/khrplatform.h" // Define function pointer types. #define GLES2_DISPATCH_DEFINE_TYPE(return_type,func_name,signature,callargs) \ typedef return_type (KHRONOS_APIENTRY * func_name ## _t) signature; LIST_GLES2_FUNCTIONS(GLES2_DISPATCH_DEFINE_TYPE,GLES2_DISPATCH_DEFINE_TYPE) struct GLESv2Dispatch { bool initialized = false; #define GLES2_DISPATCH_DECLARE_POINTER(return_type,func_name,signature,callargs) \ func_name ## _t func_name; LIST_GLES2_FUNCTIONS(GLES2_DISPATCH_DECLARE_POINTER, GLES2_DISPATCH_DECLARE_POINTER) }; #undef GLES2_DISPATCH_DECLARE_POINTER #undef GLES2_DISPATCH_DEFINE_TYPE bool gles2_dispatch_init(const char *path, GLESv2Dispatch* dispatch_table); // Used to initialize the decoder. void* gles2_dispatch_get_proc_func(const char* name, void* userData);
1,535
C++
.h
35
41.371429
82
0.77495
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,819
GLESv1Dispatch.h
anbox_anbox/external/android-emugl/host/include/OpenGLESDispatch/GLESv1Dispatch.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include "OpenGLESDispatch/gldefs.h" #include "OpenGLESDispatch/gles_functions.h" #include "KHR/khrplatform.h" // Define function pointer types. #define GLES1_DISPATCH_DEFINE_TYPE(return_type,func_name,signature,callargs) \ typedef return_type (KHRONOS_APIENTRY * func_name ## _t) signature; LIST_GLES1_FUNCTIONS(GLES1_DISPATCH_DEFINE_TYPE,GLES1_DISPATCH_DEFINE_TYPE) struct GLESv1Dispatch { bool initialized = false; #define GLES1_DISPATCH_DECLARE_POINTER(return_type,func_name,signature,callargs) \ func_name ## _t func_name; LIST_GLES1_FUNCTIONS(GLES1_DISPATCH_DECLARE_POINTER, GLES1_DISPATCH_DECLARE_POINTER) }; #undef GLES1_DISPATCH_DECLARE_POINTER #undef GLES1_DISPATCH_DEFINE_TYPE bool gles1_dispatch_init(const char *path, GLESv1Dispatch* dispatch_table); // Used to initialize the decoder. void* gles1_dispatch_get_proc_func(const char* name, void* userData);
1,535
C++
.h
35
41.371429
82
0.77495
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,820
EGLDispatch.h
anbox_anbox/external/android-emugl/host/include/OpenGLESDispatch/EGLDispatch.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include "OpenGLESDispatch/RenderEGL_functions.h" #include "OpenGLESDispatch/RenderEGL_extensions_functions.h" // This header is used to define the EGLDispatch structure that contains // pointers to the EGL shared library used by libOpenglRender. Normally, // this will be our own libEGL_translator, but one could imagine a // vendor-specific being used instead. // There is a single global instance of this structure, named |s_egl|, // which must be initialized by calling init_egl_dispatch() before use. // Note that our code requires the implementation of misc EGL extensions // including eglSetSwapRectangleANDROID(), see RenderEGL_extensions_functions.h // for a full list. #define RENDER_EGL_DEFINE_TYPE(return_type, function_name, signature) \ typedef return_type (EGLAPIENTRY *function_name ## _t) signature; #define RENDER_EGL_DECLARE_MEMBER(return_type, function_name, signature) \ function_name ## _t function_name; // Define function typedefs. LIST_RENDER_EGL_FUNCTIONS(RENDER_EGL_DEFINE_TYPE) LIST_RENDER_EGL_EXTENSIONS_FUNCTIONS(RENDER_EGL_DEFINE_TYPE) // Define EGLDispatch structure. struct EGLDispatch { bool initialized = false; LIST_RENDER_EGL_FUNCTIONS(RENDER_EGL_DECLARE_MEMBER) LIST_RENDER_EGL_EXTENSIONS_FUNCTIONS(RENDER_EGL_DECLARE_MEMBER) }; // Initialize EGLDispatch function. Return true on success, false on failure. bool init_egl_dispatch(const char *path); // Global EGLDispatch instance. Call init_egl_dispatch() before using it. extern EGLDispatch s_egl;
2,131
C++
.h
44
46.75
79
0.790082
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,822
etc1.h
anbox_anbox/external/android-emugl/host/include/ETC1/etc1.h
// Copyright 2009 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef __etc1_h__ #define __etc1_h__ #define ETC1_ENCODED_BLOCK_SIZE 8 #define ETC1_DECODED_BLOCK_SIZE 48 #ifndef ETC1_RGB8_OES #define ETC1_RGB8_OES 0x8D64 #endif typedef unsigned char etc1_byte; typedef int etc1_bool; typedef unsigned int etc1_uint32; #ifdef __cplusplus extern "C" { #endif // Encode a block of pixels. // // pIn is a pointer to a ETC_DECODED_BLOCK_SIZE array of bytes that represent a // 4 x 4 square of 3-byte pixels in form R, G, B. Byte (3 * (x + 4 * y) is the R // value of pixel (x, y). // // validPixelMask is a 16-bit mask where bit (1 << (x + y * 4)) indicates whether // the corresponding (x,y) pixel is valid. Invalid pixel color values are ignored when compressing. // // pOut is an ETC1 compressed version of the data. void etc1_encode_block(const etc1_byte* pIn, etc1_uint32 validPixelMask, etc1_byte* pOut); // Decode a block of pixels. // // pIn is an ETC1 compressed version of the data. // // pOut is a pointer to a ETC_DECODED_BLOCK_SIZE array of bytes that represent a // 4 x 4 square of 3-byte pixels in form R, G, B. Byte (3 * (x + 4 * y) is the R // value of pixel (x, y). void etc1_decode_block(const etc1_byte* pIn, etc1_byte* pOut); // Return the size of the encoded image data (does not include size of PKM header). etc1_uint32 etc1_get_encoded_data_size(etc1_uint32 width, etc1_uint32 height); // Encode an entire image. // pIn - pointer to the image data. Formatted such that // pixel (x,y) is at pIn + pixelSize * x + stride * y; // pOut - pointer to encoded data. Must be large enough to store entire encoded image. // pixelSize can be 2 or 3. 2 is an GL_UNSIGNED_SHORT_5_6_5 image, 3 is a GL_BYTE RGB image. // returns non-zero if there is an error. int etc1_encode_image(const etc1_byte* pIn, etc1_uint32 width, etc1_uint32 height, etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte* pOut); // Decode an entire image. // pIn - pointer to encoded data. // pOut - pointer to the image data. Will be written such that // pixel (x,y) is at pIn + pixelSize * x + stride * y. Must be // large enough to store entire image. // pixelSize can be 2 or 3. 2 is an GL_UNSIGNED_SHORT_5_6_5 image, 3 is a GL_BYTE RGB image. // returns non-zero if there is an error. int etc1_decode_image(const etc1_byte* pIn, etc1_byte* pOut, etc1_uint32 width, etc1_uint32 height, etc1_uint32 pixelSize, etc1_uint32 stride); // Size of a PKM header, in bytes. #define ETC_PKM_HEADER_SIZE 16 // Format a PKM header void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height); // Check if a PKM header is correctly formatted. etc1_bool etc1_pkm_is_valid(const etc1_byte* pHeader); // Read the image width from a PKM header etc1_uint32 etc1_pkm_get_width(const etc1_byte* pHeader); // Read the image height from a PKM header etc1_uint32 etc1_pkm_get_height(const etc1_byte* pHeader); #ifdef __cplusplus } #endif #endif
3,528
C++
.h
79
43.012658
99
0.731444
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
true
true
false
false
false
false
false
false
17,824
gles1_types.h
anbox_anbox/external/android-emugl/host/libs/GLESv1_dec/gles1_types.h
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __GLES1_TYPES__H #define __GLES1_TYPES__H #include "gl_base_types.h" #endif // __GLES1_TYPES__H
708
C++
.h
19
36.157895
74
0.765648
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,826
connection.h
anbox_anbox/external/process-cpp-minimal/include/core/connection.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef COM_UBUNTU_CONNECTION_H_ #define COM_UBUNTU_CONNECTION_H_ #include <functional> #include <memory> #include <mutex> namespace core { class ScopedConnection; /** * @brief The Connection class models a signal-slot connection. */ class Connection { public: typedef std::function<void(const std::function<void()>&)> Dispatcher; /** * @brief Checks if this instance corresponds to an active signal-slot connection. * @return true iff the instance corresponds to an active signal-slot connection. */ inline bool is_connected() const { if (!d) return false; return (d->disconnector ? true : false); } /** * @brief End a signal-slot connection. */ inline void disconnect() { if (d) d->disconnect(); } /** * @brief Installs a dispatcher for this signal-slot connection. * @param dispatcher The dispatcher to be used for signal emissions. */ inline void dispatch_via(const Dispatcher& dispatcher) { if (d && d->dispatcher_installer) d->dispatcher_installer(dispatcher); } private: friend class ScopedConnection; typedef std::function<void()> Disconnector; typedef std::function<void(const Dispatcher&)> DispatcherInstaller; template<typename ... Arguments> friend class Signal; inline Connection(const Disconnector& disconnector, const DispatcherInstaller& installer) : d(std::make_shared<Private>(disconnector, installer)) { } inline bool operator<(const Connection& rhs) const { return d < rhs.d; } inline void reset() { if (d) d->reset(); } struct Private { Private(const Connection::Disconnector& disconnector, const Connection::DispatcherInstaller& dispatcher_installer) : disconnector(disconnector), dispatcher_installer(dispatcher_installer) { } inline void reset() { std::lock_guard<std::mutex> lg(guard); reset_locked(); } inline void reset_locked() { static const Connection::Disconnector empty_disconnector{}; static const Connection::DispatcherInstaller empty_dispatcher_installer{}; disconnector = empty_disconnector; dispatcher_installer = empty_dispatcher_installer; } inline void disconnect() { static const Connection::Disconnector empty_disconnector{}; std::lock_guard<std::mutex> lg(guard); if (disconnector) disconnector(); reset_locked(); } std::mutex guard; Connection::Disconnector disconnector; Connection::DispatcherInstaller dispatcher_installer; }; // The whole class is implicitly shared and we thus forward our complete // shared state to a private structure that is lifetime-managed by a shared_ptr. std::shared_ptr<Private> d; }; /** * @brief Scoped helper class to map signal-slot connection mgmt. to RAII. */ class ScopedConnection { public: /** * @brief Constructs an instance for an existing signal-slot connection. * @param c The existing signal-slot connection. */ inline ScopedConnection(const Connection& c) : connection(c) { } inline ScopedConnection(ScopedConnection&& rhs) : connection(std::move(rhs.connection)) { } ScopedConnection(const ScopedConnection&) = delete; /** * @brief Disconnects the signal-slot connection. */ inline ~ScopedConnection() noexcept(true) { try { connection.disconnect(); } catch(...) { } } inline ScopedConnection& operator=(ScopedConnection&& rhs) { connection = std::move(rhs.connection); return *this; } ScopedConnection& operator=(const ScopedConnection&) = delete; bool operator==(const ScopedConnection&) = delete; inline bool operator<(const ScopedConnection& rhs) const { return connection < rhs.connection; } private: Connection connection; }; } #endif // COM_UBUNTU_CONNECTION_H_
4,982
C++
.h
159
25.08805
91
0.658873
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,827
signal.h
anbox_anbox/external/process-cpp-minimal/include/core/signal.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef COM_UBUNTU_SIGNAL_H_ #define COM_UBUNTU_SIGNAL_H_ #include <core/connection.h> #include <functional> #include <iostream> #include <list> #include <mutex> #include <set> namespace core { /** * @brief A signal class that observers can subscribe to. * @tparam Arguments List of argument types passed on to observers when the signal is emitted. */ template<typename ...Arguments> class Signal { public: /** * @brief Slot is the function type that observers have to provide to connect to this signal. */ typedef std::function<void(Arguments...)> Slot; private: struct SlotWrapper { void operator()(Arguments... args) { dispatcher(std::bind(slot, args...)); } Slot slot; Connection::Dispatcher dispatcher; Connection connection; }; public: /** * @brief Signal constructs a new instance. Never throws. */ inline Signal() noexcept(true) : d(new Private()) { } inline ~Signal() { std::lock_guard<std::mutex> lg(d->guard); for (auto slot : d->slot_list) slot.connection.reset(); } // Copy construction, assignment and equality comparison are disabled. Signal(const Signal&) = delete; Signal& operator=(const Signal&) = delete; bool operator==(const Signal&) const = delete; /** * @brief Connects the provided slot to this signal instance. * * Calling this method is thread-safe and synchronized with any * other connect, signal emission or disconnect calls. * * @param slot The function to be called when the signal is emitted. * @return A connection object corresponding to the signal-slot connection. */ inline Connection connect(const Slot& slot) const { // Helpers to initialize an invalid connection. static const Connection::Disconnector empty_disconnector{}; static const Connection::DispatcherInstaller empty_dispatcher_installer{}; // The default dispatcher immediately executes the function object // provided as argument on whatever thread is currently running. static const Connection::Dispatcher default_dispatcher = [](const std::function<void()>& handler) { handler(); }; Connection conn{empty_disconnector, empty_dispatcher_installer}; std::lock_guard<std::mutex> lg(d->guard); auto result = d->slot_list.insert( d->slot_list.end(), SlotWrapper{slot, default_dispatcher, conn}); // We implicitly share our internal state with the connection here // by passing in our private bits contained in 'd' to the std::bind call. // This admittedly uncommon approach allows us to cleanly manage connection // and signal lifetimes without the need to mark everything as mutable. conn.d->disconnector = std::bind( &Private::disconnect_slot_for_iterator, d, result); conn.d->dispatcher_installer = std::bind( &Private::install_dispatcher_for_iterator, d, std::placeholders::_1, result); return conn; } /** * @brief operator () emits the signal with the provided parameters. * * Please note that signal emissions might not be delivered immediately to * registered slots, depending on whether the respective connection is dispatched * via a queueing dispatcher. For that reason, the lifetime of the arguments has to * exceed the scope of the call to this operator and its surrounding scope. * * @param args The arguments to be passed on to registered slots. */ inline void operator()(Arguments... args) { std::lock_guard<std::mutex> lg(d->guard); for(auto slot : d->slot_list) { slot(args...); } } private: struct Private { typedef std::list<SlotWrapper> SlotList; inline void disconnect_slot_for_iterator(typename SlotList::iterator it) { std::lock_guard<std::mutex> lg(guard); slot_list.erase(it); } inline void install_dispatcher_for_iterator(const Connection::Dispatcher& dispatcher, typename SlotList::iterator it) { std::lock_guard<std::mutex> lg(guard); it->dispatcher = dispatcher; } std::mutex guard; SlotList slot_list; }; std::shared_ptr<Private> d; }; /** * @brief A signal class that observers can subscribe to, * template specialization for signals without arguments. */ template<> class Signal<void> { public: /** * @brief Slot is the function type that observers have to provide to connect to this signal. */ typedef std::function<void()> Slot; private: struct SlotWrapper { void operator()() { dispatcher(slot); } Slot slot; Connection::Dispatcher dispatcher; Connection connection; }; public: /** * @brief Signal constructs a new instance. Never throws. */ inline Signal() noexcept(true) : d(new Private()) { } inline ~Signal() { std::lock_guard<std::mutex> lg(d->guard); for (auto slot : d->slot_list) slot.connection.reset(); } // Copy construction, assignment and equality comparison are disabled. Signal(const Signal&) = delete; Signal& operator=(const Signal&) = delete; bool operator==(const Signal&) const = delete; /** * @brief Connects the provided slot to this signal instance. * * Calling this method is thread-safe and synchronized with any * other connect, signal emission or disconnect calls. * * @param slot The function to be called when the signal is emitted. * @return A connection object corresponding to the signal-slot connection. */ inline Connection connect(const Slot& slot) const { // Helpers to initialize an invalid connection. static const Connection::Disconnector empty_disconnector{}; static const Connection::DispatcherInstaller empty_dispatcher_installer{}; // The default dispatcher immediately executes the function object // provided as argument on whatever thread is currently running. static const Connection::Dispatcher default_dispatcher = [](const std::function<void()>& handler) { handler(); }; Connection conn{empty_disconnector, empty_dispatcher_installer}; std::lock_guard<std::mutex> lg(d->guard); auto result = d->slot_list.insert( d->slot_list.end(), SlotWrapper{slot, default_dispatcher, conn}); // We implicitly share our internal state with the connection here // by passing in our private bits contained in 'd' to the std::bind call. // This admittedly uncommon approach allows us to cleanly manage connection // and signal lifetimes without the need to mark everything as mutable. conn.d->disconnector = std::bind( &Private::disconnect_slot_for_iterator, d, result); conn.d->dispatcher_installer = std::bind( &Private::install_dispatcher_for_iterator, d, std::placeholders::_1, result); return conn; } /** * @brief operator () emits the signal. * * Please note that signal emissions might not be delivered immediately to * registered slots, depending on whether the respective connection is dispatched * via a queueing dispatcher. */ inline void operator()() { std::lock_guard<std::mutex> lg(d->guard); for(auto slot : d->slot_list) { slot(); } } private: struct Private { typedef std::list<SlotWrapper> SlotList; inline void disconnect_slot_for_iterator(typename SlotList::iterator it) { std::lock_guard<std::mutex> lg(guard); slot_list.erase(it); } inline void install_dispatcher_for_iterator(const Connection::Dispatcher& dispatcher, typename SlotList::iterator it) { std::lock_guard<std::mutex> lg(guard); it->dispatcher = dispatcher; } std::mutex guard; SlotList slot_list; }; std::shared_ptr<Private> d; }; } #endif // COM_UBUNTU_SIGNAL_H_
9,443
C++
.h
258
28.864341
97
0.634186
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,828
visibility.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/visibility.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_VISIBILITY_H_ #define CORE_POSIX_VISIBILITY_H_ #if __GNUC__ >= 4 #define CORE_POSIX_DLL_PUBLIC __attribute__ ((visibility ("default"))) #define CORE_POSIX_DLL_LOCAL __attribute__ ((visibility ("hidden"))) #else #define CORE_POSIX_DLL_PUBLIC #define CORE_POSIX_DLL_LOCAL #endif #endif // CORE_POSIX_VISIBILITY_H_
1,043
C++
.h
27
36.851852
75
0.75272
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,829
signalable.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/signalable.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_SIGNALABLE_H_ #define CORE_POSIX_SIGNALABLE_H_ #include <core/posix/signal.h> #include <core/posix/visibility.h> #include <memory> #include <system_error> namespace core { namespace posix { /** * @brief The Signalable class abstracts the ability of an entity to be delivered a posix signal. */ class CORE_POSIX_DLL_PUBLIC Signalable { public: virtual ~Signalable() { } /** * @brief Sends a signal to this signalable object. * @throws std::system_error in case of problems. * @param [in] signal The signal to be sent to the process. */ virtual void send_signal_or_throw(Signal signal); /** * @brief Sends a signal to this signalable object. * @param [in] signal The signal to be sent to the process. * @param [out] e Set to contain an error if an issue arises. */ virtual void send_signal(Signal signal, std::error_code& e) noexcept(true); protected: CORE_POSIX_DLL_LOCAL explicit Signalable(pid_t pid); private: struct CORE_POSIX_DLL_LOCAL Private; std::shared_ptr<Private> d; }; } } #endif // CORE_POSIX_SIGNALABLE_H_
1,829
C++
.h
55
30.418182
97
0.730573
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,830
standard_stream.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/standard_stream.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_STANDARD_STREAM_H_ #define CORE_POSIX_STANDARD_STREAM_H_ #include <core/posix/visibility.h> #include <cstdint> namespace core { namespace posix { /** * @brief The StandardStream enum wraps the POSIX standard streams. */ enum class StandardStream : std::uint8_t { empty = 0, stdin = 1 << 0, stdout = 1 << 1, stderr = 1 << 2 }; CORE_POSIX_DLL_PUBLIC StandardStream operator|(StandardStream l, StandardStream r); CORE_POSIX_DLL_PUBLIC StandardStream operator&(StandardStream l, StandardStream r); } } #endif // CORE_POSIX_STANDARD_STREAM_H_
1,289
C++
.h
40
30.175
83
0.753425
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,831
child_process.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/child_process.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_CHILD_PROCESS_H_ #define CORE_POSIX_CHILD_PROCESS_H_ #include <core/posix/process.h> #include <core/posix/standard_stream.h> #include <core/posix/visibility.h> #include <core/signal.h> #include <iosfwd> #include <functional> namespace core { namespace posix { /** * @brief The Process class models a child process of this process. * * In addition to the functionality offered by the Process class, an instance * of ChildProcess offers functionality to wait for status changes of the child * process and to access the child process's standard streams if they have been * redirected when forking or exec'ing. */ class CORE_POSIX_DLL_PUBLIC ChildProcess : public Process { public: /** * @brief The DeathObserver class observes child process' states and emits a signal when a monitored child has died. * * Please note that the name of this class is morbid for a reason: Listening * for SIGCHLD is not enough to catch all dying children. Whenever a SIGCHLD is * received, we have to wait for all the children of this process and reap all * monitored ones. We are thus changing state and potentially race with other * wait operations on children. * */ class DeathObserver { public: /** * @brief Creates the unique instance of class DeathObserver. * @throw std::logic_error if the given SignalTrap instance does not trap Signal::sig_chld. * @throw std::runtime_error if there already is an instance of the death observer. */ static std::unique_ptr<DeathObserver> create_once_with_signal_trap( std::shared_ptr<SignalTrap> trap); DeathObserver(const DeathObserver&) = delete; virtual ~DeathObserver() = default; DeathObserver& operator=(const DeathObserver&) = delete; bool operator==(const DeathObserver&) const = delete; /** * @brief add adds the specified child to the list of observed child processes. * @param child The child to be observed. * @return true iff the child has been added to the list of observed child processes. */ virtual bool add(const ChildProcess& child) = 0; /** * @brief has checks whether the specified child is observed. * @param child The child to check for. * @return true iff the specified child is observed for state changes. */ virtual bool has(const ChildProcess& child) const = 0; /** * @brief child_died is emitted whenever an observed child ceases to exist. */ virtual const core::Signal<ChildProcess>& child_died() const = 0; /** * @brief Checks and reaps all child processes registered with the observer instance. */ virtual void on_sig_child() = 0; protected: DeathObserver() = default; }; /** * @brief Creates an invalid ChildProcess. * @return An invalid ChildProcess instance. */ static ChildProcess invalid(); ~ChildProcess(); /** * @brief Wait for the child process to change state. * @param [in] flags Alters the behavior of the wait operation. * @return Result of the wait operation, as well as information about the * reasons for a child process's state change. */ wait::Result wait_for(const wait::Flags& flags); /** * @brief Mark the child process to not to be killed when the ChildProcess * instance goes away. */ void dont_kill_on_cleanup(); #ifndef ANDROID /** * @brief Access this process's stderr. */ std::istream& cerr(); /** * @brief Access this process's stdin. */ std::ostream& cin(); /** * @brief Access this process's stdout. */ std::istream& cout(); #endif private: friend ChildProcess fork(const std::function<posix::exit::Status()>&, const StandardStream&); friend ChildProcess vfork(const std::function<posix::exit::Status()>&, const StandardStream&); class CORE_POSIX_DLL_LOCAL Pipe { public: static Pipe invalid(); Pipe(); Pipe(const Pipe& rhs); ~Pipe(); Pipe& operator=(const Pipe& rhs); int read_fd() const; void close_read_fd(); int write_fd() const; void close_write_fd(); private: Pipe(int fds[2]); int fds[2]; }; CORE_POSIX_DLL_LOCAL ChildProcess(pid_t pid, const Pipe& stdin, const Pipe& stdout, const Pipe& stderr); struct CORE_POSIX_DLL_LOCAL Private; std::shared_ptr<Private> d; }; } } #endif // CORE_POSIX_CHILD_PROCESS_H_
5,475
C++
.h
148
30.810811
120
0.662198
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,832
exec.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/exec.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_EXEC_H_ #define CORE_POSIX_EXEC_H_ #include <core/posix/child_process.h> #include <core/posix/visibility.h> #include <functional> #include <map> #include <string> #include <vector> namespace core { namespace posix { enum class RedirectFlags; /** * @brief exec execve's the executable with the provided arguments and environment. * @throws std::system_error in case of errors. * @param fn The executable to run. * @param argv Vector of command line arguments * @param env Environment that the new process should run under * @param flags Specifies which standard streams should be redirected. * @return An instance of ChildProcess corresponding to the newly exec'd process. */ CORE_POSIX_DLL_PUBLIC ChildProcess exec(const std::string& fn, const std::vector<std::string>& argv, const std::map<std::string, std::string>& env, const StandardStream& flags); /** * @brief exec execve's the executable with the provided arguments and environment. * @throws std::system_error in case of errors. * @param fn The executable to run. * @param argv Vector of command line arguments * @param env Environment that the new process should run under * @param flags Specifies which standard streams should be redirected. * @param child_setup Function to run in the child just before exec(). * @return An instance of ChildProcess corresponding to the newly exec'd process. */ CORE_POSIX_DLL_PUBLIC ChildProcess exec(const std::string& fn, const std::vector<std::string>& argv, const std::map<std::string, std::string>& env, const StandardStream& flags, const std::function<void()>& child_setup); } } #endif // CORE_POSIX_EXEC_H_
2,486
C++
.h
61
37
83
0.727649
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,833
process.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/process.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_PROCESS_H_ #define CORE_POSIX_PROCESS_H_ #include <core/posix/process_group.h> #include <core/posix/signalable.h> #include <core/posix/this_process.h> #include <core/posix/visibility.h> #include <core/posix/wait.h> #include <memory> #include <system_error> namespace core { namespace posix { enum class Signal; class Self; class WaitFlags; /** * @brief The Process class models a process and possible operations on it. * * The process class is implicitly shared. */ class CORE_POSIX_DLL_PUBLIC Process : public Signalable { public: /** * @brief Creates a process instance wrapping an existing process. * @throw Throw std::system_error if pid is invalid, i.e., pid < 0. * @param pid The process identifier of the existing process. */ explicit Process(pid_t pid); /** * @brief Returns an invalid instance for testing purposes. * @return An invalid instance. */ static Process invalid(); /** * @brief Frees resources associated with the process. */ virtual ~Process() noexcept; /** * @brief Query the pid of the process. * @return The pid of the process. */ virtual pid_t pid() const; /** * @brief Queries the id of the process group this process belongs to. * @throw std::system_error in case of errors. * @return The id of the process group this process belongs to. */ virtual ProcessGroup process_group_or_throw() const; /** * @brief Queries the id of the process group this process belongs to. * * @return A tuple with the first element being the id of the process group * this process belongs to and the second element a boolean flag indicating * an error if true. */ virtual ProcessGroup process_group(std::error_code& se) const noexcept(true); private: struct CORE_POSIX_DLL_LOCAL Private; std::shared_ptr<Private> d; }; } } #endif // CORE_POSIX_PROCESS_H_
2,669
C++
.h
82
29.121951
81
0.714452
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,834
fork.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/fork.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_FORK_H_ #define CORE_POSIX_FORK_H_ #include <core/posix/child_process.h> #include <core/posix/standard_stream.h> #include <core/posix/visibility.h> #include <functional> namespace core { namespace posix { /** * @brief fork forks a new process and executes the provided main function in the newly forked process. * @throws std::system_error in case of errors. * @param [in] main The main function of the newly forked process. * @param [in] flags Specify which standard streams should be redirected to the parent process. * @return An instance of ChildProcess in case of success. */ CORE_POSIX_DLL_PUBLIC ChildProcess fork(const std::function<posix::exit::Status()>& main, const StandardStream& flags); /** * @brief fork vforks a new process and executes the provided main function in the newly forked process. * @throws std::system_error in case of errors. * @param [in] main The main function of the newly forked process. * @param [in] flags Specify which standard streams should be redirected to the parent process. * @return An instance of ChildProcess in case of success. */ CORE_POSIX_DLL_PUBLIC ChildProcess vfork(const std::function<posix::exit::Status()>& main, const StandardStream& flags); } } #endif // CORE_POSIX_FORK_H_
2,031
C++
.h
48
39.4375
104
0.74481
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,835
signal.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/signal.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_SIGNAL_H_ #define CORE_POSIX_SIGNAL_H_ #include <core/posix/visibility.h> #include <core/signal.h> #include <signal.h> #include <initializer_list> #include <memory> namespace core { namespace posix { /** * @brief The Signal enum collects the most common POSIX signals. */ enum class Signal { unknown = 0, sig_hup = SIGHUP, sig_int = SIGINT, sig_quit = SIGQUIT, sig_ill = SIGILL, sig_abrt = SIGABRT, sig_fpe = SIGFPE, sig_kill = SIGKILL, sig_segv = SIGSEGV, sig_pipe = SIGPIPE, sig_alrm = SIGALRM, sig_term = SIGTERM, sig_usr1 = SIGUSR1, sig_usr2 = SIGUSR2, sig_chld = SIGCHLD, sig_cont = SIGCONT, sig_stop = SIGSTOP, sig_tstp = SIGTSTP, sig_ttin = SIGTTIN, sig_ttou = SIGTTOU }; /** * @brief The SignalTrap class encapsulates functionality to trap and handle signals. */ class CORE_POSIX_DLL_PUBLIC SignalTrap { public: SignalTrap(const SignalTrap&) = delete; virtual ~SignalTrap() = default; SignalTrap& operator=(const SignalTrap&) = delete; bool operator==(const SignalTrap&) const = delete; /** * @brief Returns true if the given signal is trapped by this instance. */ virtual bool has(Signal signal) = 0; /** * @brief Starts observation of incoming signals, relaying them via * signal_raised(). The call blocks until stop is called. */ virtual void run() = 0; /** * @brief Stops execution of the signal trap. */ virtual void stop() = 0; /** * @brief Emitted whenever a trapped signal is raised by the operating system. */ virtual core::Signal<Signal>& signal_raised() = 0; protected: SignalTrap() = default; }; /** * @brief Traps the specified signals for the entire process. */ CORE_POSIX_DLL_PUBLIC std::shared_ptr<SignalTrap> trap_signals_for_process( std::initializer_list<core::posix::Signal> blocked_signals); /** * @brief Traps the specified signals for the current thread, and inherits * the respective signal mask to all child-threads. */ CORE_POSIX_DLL_PUBLIC std::shared_ptr<SignalTrap> trap_signals_for_all_subsequent_threads( std::initializer_list<core::posix::Signal> blocked_signals); } } #endif
2,967
C++
.h
100
26.25
85
0.705407
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,836
process_group.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/process_group.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_PROCESS_GROUP_H_ #define CORE_POSIX_PROCESS_GROUP_H_ #include <core/posix/signalable.h> #include <core/posix/visibility.h> #include <memory> namespace core { namespace posix { class Process; /** * @brief The ProcessGroup class models a signalable group of process. * * Summary from http://en.wikipedia.org/wiki/Process_group: * * In POSIX-conformant operating systems, a process group denotes a collection * of one or more processes. Process groups are used to control the distribution * of signals. A signal directed to a process group is delivered individually to * all of the processes that are members of the group. */ class CORE_POSIX_DLL_PUBLIC ProcessGroup : public Signalable { public: /** * @brief Accesses the id of this process group. * @return The id of this process group. */ virtual pid_t id() const; static ProcessGroup invalid(); protected: friend class Process; CORE_POSIX_DLL_LOCAL ProcessGroup(pid_t id); private: struct CORE_POSIX_DLL_LOCAL Private; std::shared_ptr<Private> d; }; } } #endif // CORE_POSIX_PROCESS_GROUP_H_
1,831
C++
.h
56
30.285714
80
0.753968
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,837
this_process.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/this_process.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_THIS_PROCESS_H_ #define CORE_POSIX_THIS_PROCESS_H_ #include <core/posix/visibility.h> #include <functional> #include <iosfwd> #include <string> #include <system_error> namespace core { namespace posix { class Process; namespace this_process { namespace env { /** * @brief for_each invokes a functor for every key-value pair in the environment. * @param [in] functor Invoked for every key-value pair. */ CORE_POSIX_DLL_PUBLIC void for_each( const std::function<void(const std::string&, const std::string&)>& functor) noexcept(true); /** * @brief get queries the value of an environment variable. * @throw std::runtime_error if there is no variable with the given key defined in the env. * @param [in] key Name of the variable to query the value for. * @return Contents of the variable. */ CORE_POSIX_DLL_PUBLIC std::string get_or_throw(const std::string& key); /** * @brief get queries the value of an environment variable. * @param [in] key Name of the variable to query the value for. * @param [in] default_value Default value to return when key is not present in the environment. * @return Contents of the variable or an empty string if the variable is not defined. */ CORE_POSIX_DLL_PUBLIC std::string get( const std::string& key, const std::string& default_value = std::string()) noexcept(true); /** * @brief unset_or_throw removes the variable with name key from the environment. * @throw std::system_error in case of errors. * @param [in] key Name of the variable to unset. */ CORE_POSIX_DLL_PUBLIC void unset_or_throw(const std::string& key); /** * @brief unset removes the variable with name key from the environment. * @return false in case of errors, true otherwise. * @param [in] key Name of the variable to unset. * @param [out] se Receives error details if unset returns false. */ CORE_POSIX_DLL_PUBLIC bool unset(const std::string& key, std::error_code& se) noexcept(true); /** * @brief set_or_throw will adjust the contents of the variable identified by key to the provided value. * @throw std::system_error in case of errors. * @param [in] key Name of the variable to set the value for. * @param [in] value New contents of the variable. */ CORE_POSIX_DLL_PUBLIC void set_or_throw(const std::string& key, const std::string& value); /** * @brief set will adjust the contents of the variable identified by key to the provided value. * @return false in case of errors, true otherwise. * @param [in] key Name of the variable to set the value for. * @param [in] value New contents of the variable. * @param [out] se Receives the details in case of errors. */ CORE_POSIX_DLL_PUBLIC bool set(const std::string &key, const std::string &value, std::error_code& se) noexcept(true); } /** * @brief Returns a Process instance corresponding to this process. */ CORE_POSIX_DLL_PUBLIC Process instance() noexcept(true); /** * @brief Query the parent of the process. * @return The parent of the process. */ CORE_POSIX_DLL_PUBLIC Process parent() noexcept(true); /** * @brief Access this process's stdin. */ CORE_POSIX_DLL_PUBLIC std::istream& cin() noexcept(true); /** * @brief Access this process's stdout. */ CORE_POSIX_DLL_PUBLIC std::ostream& cout() noexcept(true); /** * @brief Access this process's stderr. */ CORE_POSIX_DLL_PUBLIC std::ostream& cerr() noexcept(true); } } } #endif // CORE_POSIX_THIS_PROCESS_H_
4,244
C++
.h
113
34.628319
104
0.719251
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,838
exit.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/exit.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_EXIT_H_ #define CORE_POSIX_EXIT_H_ #include <cstdlib> namespace core { namespace posix { namespace exit { /** * @brief The Status enum wrap's the posix exit status. */ enum class Status { success = EXIT_SUCCESS, failure = EXIT_FAILURE }; } } } #endif // CORE_POSIX_EXIT_H_
1,046
C++
.h
38
24.842105
75
0.726547
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,839
wait.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/wait.h
/* * Copyright © 2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_WAIT_H_ #define CORE_POSIX_WAIT_H_ #include <core/posix/exit.h> #include <core/posix/signal.h> #include <core/posix/visibility.h> #include <bitset> #include <cstdint> #include <sys/wait.h> namespace core { namespace posix { namespace wait { /** * @brief Flags enumerates different behavior when waiting for a child process to change state. */ enum class Flags : std::uint8_t { continued = WCONTINUED, ///< Also wait for a child to continue after having been stopped. untraced = WUNTRACED, ///< Also wait for state changes in untraced children. no_hang = WNOHANG ///< Do not block if a child process hasn't changed state. }; CORE_POSIX_DLL_PUBLIC Flags operator|(Flags l, Flags r); /** * @brief The Result struct encapsulates the result of waiting for a process state change. */ struct CORE_POSIX_DLL_PUBLIC Result { /** * @brief The status of the process/wait operation. */ enum class Status { undefined, ///< Marks an undefined state. no_state_change, ///< No state change occured. exited, ///< The process exited normally. signaled, ///< The process was signalled and terminated. stopped, ///< The process was signalled and stopped. continued ///< The process resumed operation. } status = Status::undefined; /** * @brief Union of result-specific details. */ union { /** * Contains the exit status of the process if status == Status::exited. */ struct { exit::Status status; ///< Exit status of the process. } if_exited; /** * Contains the signal that caused the process to terminate if status == Status::signaled. */ struct { Signal signal; ///< Signal that caused the process to terminate. bool core_dumped; ///< true if the process termination resulted in a core dump. } if_signaled; /** * Contains the signal that caused the process to terminate if status == Status::stopped. */ struct { Signal signal; ///< Signal that caused the process to terminate. } if_stopped; } detail; }; } } } #endif // CORE_POSIX_WAIT_H_
2,975
C++
.h
91
27.901099
98
0.670268
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,840
oom_adj.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/linux/proc/process/oom_adj.h
/* * Copyright © 2012-2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_LINUX_PROC_PROCESS_OOM_ADJ_H_ #define CORE_POSIX_LINUX_PROC_PROCESS_OOM_ADJ_H_ #include <core/posix/visibility.h> namespace core { namespace posix { class Process; namespace linux { namespace proc { namespace process { /** * This file can be used to adjust the score used to select which process * should be killed in an out-of-memory (OOM) situation. The kernel uses this * value for a bit-shift operation of the process's oom_score value: valid * values are in the range -16 to +15, plus the special value -17, which disables * OOM-killing altogether for this process. A positive score increases the * likelihood of this process being killed by the OOM-killer; a negative score * decreases the likelihood. * * The default value for this file is 0; a new process inherits its parent's * oom_adj setting. A process must be privileged (CAP_SYS_RESOURCE) to update * this file. * * Since Linux 2.6.36, use of this file is deprecated in favor of * /proc/[pid]/oom_score_adj. */ struct CORE_POSIX_DLL_PUBLIC OomAdj { /** * @brief Returns the value that makes a process "invisible" to the oom killer. * @return Returns the value that makes a process "invisible" to the oom killer. */ static int disable_value(); /** * @brief Returns the minimum valid value. * @return The minimum valid value that the OomAdj can be set to. */ static int min_value(); /** * @brief Returns the maximum valid value. * @return The maximum valid value that the OomAdj can be set to. */ static int max_value(); /** * @brief is_valid checks whether the contained value is within the predefined bounds. * @return true iff min_value() <= value <= max_value(). */ inline bool is_valid() const { return (disable_value() <= value) && (value <= max_value()); } /** * @brief Current value. */ int value; }; /** * \brief Read the OomAdj value for a process instance. * \throws std::runtime_error in case of errors. * \param [in] process The process to read the score for. * \param [out] adj The destination to store the value in. */ CORE_POSIX_DLL_PUBLIC const posix::Process& operator>>(const posix::Process& process, OomAdj& adj); /** * \brief Write the OomAdj value for a process instance. * \throw std::runtime_error in case of errors and std::logic_error if score_adj.is_valid() returns false. * \param [in] process The process to write the score for. * \param [in] adj The new value to store. */ CORE_POSIX_DLL_PUBLIC const posix::Process& operator<<(const posix::Process& process, const OomAdj& adj); } } } } } #endif // CORE_POSIX_LINUX_PROC_PROCESS_OOM_ADJ_H_
3,456
C++
.h
98
32.122449
106
0.710275
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,841
stat.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/linux/proc/process/stat.h
/* * Copyright © 2012-2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_LINUX_PROC_PROCESS_STAT_H_ #define CORE_POSIX_LINUX_PROC_PROCESS_STAT_H_ #include <core/posix/linux/proc/process/state.h> #include <core/posix/visibility.h> #include <string> namespace core { namespace posix { class Process; namespace linux { namespace proc { namespace process { /** * @brief The Stat struct encapsulates status information about a process. */ struct CORE_POSIX_DLL_PUBLIC Stat { pid_t pid = 1; ///< The process ID std::string executable; ///< The filename of the executable, in parentheses. State state = State::undefined; ///< State of the process. pid_t parent = -1; ///< The PID of the parent. pid_t process_group = -1; ///< The process group ID of the process. int session_id = -1; ///< The session ID of the process. int tty_nr = -1; ///< The controlling terminal of the process. int controlling_process_group = -1; ///< The ID of the foreground process group of the controlling terminal of the process. unsigned int kernel_flags = 0; ///< The kernel flags word of the process. long unsigned int minor_faults_count = 0; ///< The number of minor faults the process has made which have not required loading a memory page from disk. long unsigned int minor_faults_count_by_children = 0; ///< The number of minor faults that the process's waited-for children have made. long unsigned int major_faults_count = 0; ///< The number of major faults the process has made which have required loading a memory page from disk. long unsigned int major_faults_count_by_children = 0; ///< The number of major faults that the process's waited-for children have made. struct { long unsigned int user = 0; ///< Amount of time that this process has been scheduled in user mode, [clock ticks]. long unsigned int system = 0; ///< Amount of time that this process has been scheduled in kernel mode, [clock ticks]. long unsigned int user_for_children = 0; ///< Amount of time that this process's waited-for children have been scheduled in user mode, [clock ticks]. long unsigned int system_for_children = 0; ///< Amount of time that this process's waited-for children have been scheduled in kernel mode, [clock ticks]. } time; /** * (Explanation for Linux 2.6) For processes running a real-time scheduling * policy (policy below; see sched_setscheduler(2)), this is the negated * scheduling priority, minus one; that is, a number in the range -2 to * -100, corresponding to real-time priorities 1 to 99. For processes running * under a non-real-time scheduling policy, this is the raw nice value * (setpriority(2)) as represented in the kernel. The kernel stores nice * values as numbers in the range 0 (high) to 39 (low), corresponding to * the user-visible nice range of -20 to 19. * *Before Linux 2.6, this was a scaled value based on the scheduler *weighting given to this process. */ long int priority = 0; long int nice = 0; ///< The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority). long int thread_count = 0; ///< Number of threads in this process (since Linux 2.6). long int time_before_next_sig_alarm = 0; ///< The time in jiffies before the next SIGALRM is sent to the process due to an interval timer. Since kernel 2.6.17, this field is no longer maintained, and is hard coded as 0. long int start_time = 0; ///< The time the process started after system boot. In kernels before Linux 2.6, this value was expressed in jiffies. Since Linux 2.6, the value is expressed in clock ticks (divide by sysconf(_SC_CLK_TCK)). struct { long unsigned int virt = 0; ///< Virtual memory size in bytes. long unsigned int resident_set = 0; ///< Resident Set Size: number of pages the process has in real memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out. long unsigned int resident_set_limit = 0; ///< Current soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS in getrlimit(2). } size; struct { long unsigned int start_code = 0; ///< The address above which program text can run. long unsigned int end_code = 0; ///< The address below which program text can run. long unsigned int start_stack = 0; ///< The address of the start (i.e., bottom) of the stack. long unsigned int stack_pointer = 0; ///< The current value of ESP (stack pointer), as found in the kernel stack page for the process. long unsigned int instruction_pointer = 0; ///< The current EIP (instruction pointer). } addresses; struct { long unsigned int pending = 0; ///< The bitmap of pending signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead. long unsigned int blocked = 0; ///< The bitmap of blocked signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead. long unsigned int ignored = 0; ///< The bitmap of ignored signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead. long unsigned int caught = 0; ///< The bitmap of caught signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead. } signals; long unsigned int channel = 0; ///< This is the "channel" in which the process is waiting. It is the address of a system call, and can be looked up in a namelist if you need a textual name. (If you have an up-to-date /etc/psdatabase, then try ps -l to see the WCHAN field in action.) long unsigned int swap_count = 0; ///< Number of pages swapped (not maintained). long unsigned int swap_count_children = 0; ///< Cumulative nswap for child processes (not maintained). int exit_signal = -1; ///< Signal to be sent to parent when we die. int cpu_count = -1; ///< CPU number last executed on. unsigned int realtime_priority = 0; ///< Real-time scheduling priority, a number in the range 1 to 99 for processes scheduled under a real-time policy, or 0, for non-real-time processes (see sched_setscheduler(2)). unsigned int scheduling_policy = 0; ///< Scheduling policy (see sched_setscheduler(2)). Decode using the SCHED_* constants in linux/sched.h. long long unsigned int aggregated_block_io_delays = 0; ///< Aggregated block I/O delays, measured in clock ticks (centiseconds). long unsigned int guest_time = 0; ///< Guest time of the process (time spent running a virtual CPU for a guest operating system), measured in clock ticks. long unsigned int guest_time_children = 0; ///< Guest time of the process's children, measured in clock ticks. }; CORE_POSIX_DLL_PUBLIC const posix::Process& operator>>(const posix::Process& process, Stat& stat); } } } } } #endif // CORE_POSIX_LINUX_PROC_PROCESS_STAT_H_
7,922
C++
.h
115
64.608696
288
0.716026
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,842
state.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/linux/proc/process/state.h
/* * Copyright © 2012-2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_LINUX_PROC_PROCESS_STATE_H_ #define CORE_POSIX_LINUX_PROC_PROCESS_STATE_H_ #include <core/posix/visibility.h> #include <iosfwd> namespace core { namespace posix { namespace linux { namespace proc { namespace process { enum class State { undefined = -1, running = 'R', sleeping = 'S', disk_sleep = 'D', zombie = 'Z', traced_or_stopped = 'T', paging = 'W' }; } } } } } #endif // CORE_POSIX_LINUX_PROC_PROCESS_STATE_H_
1,180
C++
.h
47
23.042553
75
0.734694
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,843
oom_score_adj.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/linux/proc/process/oom_score_adj.h
/* * Copyright © 2012-2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_LINUX_PROC_PROCESS_OOM_SCORE_ADJ_H_ #define CORE_POSIX_LINUX_PROC_PROCESS_OOM_SCORE_ADJ_H_ #include <core/posix/visibility.h> namespace core { namespace posix { class Process; namespace linux { namespace proc { namespace process { /** * This file can be used to adjust the badness heuristic used to select which * process gets killed in out-of-memory conditions. * * The badness heuristic assigns a value to each candidate task ranging from 0 * (never kill) to 1000 (always kill) to determine which process is targeted. * The units are roughly a proportion along that range of allowed memory the * process may allocate from, based on an estimation of its current memory and * swap use. For example, if a task is using all allowed memory, its badness * score will be 1000. If it is using half of its allowed memory, its score * will be 500. * * There is an additional factor included in the badness score: root processes are * given 3% extra memory over other tasks. * * The amount of "allowed" memory depends on the context in which the * OOM-killer was called. If it is due to the memory assigned to the allocating * task's cpuset being exhausted, the allowed memory represents the set of mems * assigned to that cpuset (see cpuset(7)). If it is due to a mempolicy's node(s) * being exhausted, the allowed memory represents the set of mempolicy nodes. If * it is due to a memory limit (or swap limit) being reached, the allowed memory * is that configured limit. Finally, if it is due to the entire system being out * of memory, the allowed memory represents all allocatable resources. * * The value of oom_score_adj is added to the badness score before it is used * to determine which task to kill. Acceptable values range from -1000 * (OOM_SCORE_ADJ_MIN) to +1000 (OOM_SCORE_ADJ_MAX). This allows user space to * control the preference for OOM-killing, ranging from always preferring a * certain task or completely disabling it from OOM- killing. The lowest possible * value, -1000, is equivalent to disabling OOM-killing entirely for that task, * since it will always report a badness score of 0. * * Consequently, it is very simple for user space to define the amount of * memory to consider for each task. Setting a oom_score_adj value of +500, for * example, is roughly equivalent to allowing the remainder of tasks sharing * the same system, cpuset, mempolicy, or memory controller resources to use at * least 50% more memory. A value of -500, on the other hand, would be roughly * equivalent to discounting 50% of the task's allowed memory from being * considered as scoring against the task. * * For backward compatibility with previous kernels, /proc/[pid]/oom_adj can * still be used to tune the badness score. Its value is scaled linearly with * oom_score_adj. * * Writing to /proc/[pid]/oom_score_adj or /proc/[pid]/oom_adj will change the * other with its scaled value. */ struct CORE_POSIX_DLL_PUBLIC OomScoreAdj { /** * @brief Returns the minimum valid value. * @return The minimum valid value that the Oom Score Adj can be set to. */ static int min_value(); /** * @brief Returns the maximum valid value. * @return The maximum valid value that the Oom Score Adj can be set to. */ static int max_value(); /** * @brief is_valid checks whether the contained value is within the predefined bounds. * @return true iff min_value() <= value <= max_value(). */ inline bool is_valid() const { return (min_value() <= value) && (value <= max_value()); } /** * @brief Current value. */ int value; }; /** * @brief Read the OomScoreAdj value for a process instance. * @throw std::runtime_error in case of errors. * @param [in] process The process to read the score for. * @param [out] score_adj The destination to store the value in. */ CORE_POSIX_DLL_PUBLIC const posix::Process& operator>>(const posix::Process& process, OomScoreAdj& score_adj); /** * @brief Write the OomScoreAdj value for a process instance. * @throw std::runtime_error in case of errors and std::logic_error if score_adj.is_valid() returns false. * @param [in] process The process to write the score for. * @param [in] score_adj The new value to store. */ CORE_POSIX_DLL_PUBLIC const posix::Process& operator<<(const posix::Process& process, const OomScoreAdj& score_adj); } } } } } #endif // CORE_POSIX_LINUX_PROC_PROCESS_OOM_SCORE_ADJ_H_
5,246
C++
.h
124
39.556452
110
0.736358
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
17,844
oom_score.h
anbox_anbox/external/process-cpp-minimal/include/core/posix/linux/proc/process/oom_score.h
/* * Copyright © 2012-2013 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Authored by: Thomas Voß <thomas.voss@canonical.com> */ #ifndef CORE_POSIX_LINUX_PROC_PROCESS_OOM_SCORE_H_ #define CORE_POSIX_LINUX_PROC_PROCESS_OOM_SCORE_H_ #include <core/posix/visibility.h> namespace core { namespace posix { class Process; namespace linux { namespace proc { namespace process { /** * This file displays the current score that the kernel gives to this process * for the purpose of selecting a process for the OOM-killer. A higher score * means that the process is more likely to be selected by the OOM-killer. The * basis for this score is the amount of memory used by the process, with * increases (+) or decreases (-) for factors including: * * - whether the process creates a lot of children using fork(2) (+); * - whether the process has been running a long time, or has used a lot of CPU time (-); * - whether the process has a low nice value (i.e., > 0) (+); * - whether the process is privileged (-); and * - whether the process is making direct hardware access (-). * * The oom_score also reflects the adjustment specified by the oom_score_adj or * oom_adj setting for the process. */ struct CORE_POSIX_DLL_PUBLIC OomScore { int value = 0; ///< Current OomScore as calculated by the kernel. }; /** * \brief Read the OomScore for a process instance. * \throws std::runtime_error in case of errors. * \param [in] process The process to read the score for. * \param [out] score The destination to store the value in. */ CORE_POSIX_DLL_PUBLIC const posix::Process& operator>>(const posix::Process& process, OomScore& score); } } } } } #endif // CORE_POSIX_LINUX_PROC_PROCESS_OOM_SCORE_H_
2,305
C++
.h
64
34.3125
103
0.742844
anbox/anbox
8,865
1,152
381
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false