*: Fix spelling mistakes found by codespell
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1410
This commit is contained in:
parent
5962ee7939
commit
5ec9bde64f
26
NEWS
26
NEWS
@ -572,7 +572,7 @@ Contributors:
|
||||
3.31.92
|
||||
=======
|
||||
* Fix flicker of apps that use multiple SHM buffers [Jonas Å.; #199]
|
||||
* Don't disable page flips after temporary failues [Jonas Å.; #460]
|
||||
* Don't disable page flips after temporary failures [Jonas Å.; #460]
|
||||
* Improve redraw performance [Carlos; !196]
|
||||
* Add cursor-mode support to window screencasting [Jonas Å.; !413]
|
||||
* Add back support for system-wide monitor configurations [Jonas Å.; !253]
|
||||
@ -984,7 +984,7 @@ Translations:
|
||||
=======
|
||||
* Reduce memory use of suspended instances [Jonas; #786299]
|
||||
* Make supported scales determination saner [Rui; #786474]
|
||||
* Fix crash on inhibit-shortcuts dialog reponse [Jonas; #786385]
|
||||
* Fix crash on inhibit-shortcuts dialog response [Jonas; #786385]
|
||||
* Support libinput's tag-and-drag setting [freeroot; #775755]
|
||||
* Avoid overlapping keybindings with multiple layouts [Jonas; #786408]
|
||||
* Fix non-transformed cursor on rotated monitors [Jonas; #786023]
|
||||
@ -1303,7 +1303,7 @@ Translations:
|
||||
* Consider XDG_SESSION_TYPE when determining session type [Jouke; #759388]
|
||||
* Re-add support for edge scrolling on some touchpads [Bastien; #768245]
|
||||
* Support mouse and trackball acceleration profile [Jonas; #769179]
|
||||
* Draw monitor contentn to individual framebuffer [Jonas; #768976]
|
||||
* Draw monitor content to individual framebuffer [Jonas; #768976]
|
||||
* Support virtual input devices [Jonas, Carlos; #765009]
|
||||
* Set correct output scale on hotplug [Jonas; #769505]
|
||||
* Misc. bug fixes and cleanups [Florian, Jonas, Thomas, Bastien, Carlos;
|
||||
@ -2128,7 +2128,7 @@ Translations:
|
||||
* Ignore skip-taskbar hints on parentless dialogs [Giovanni; #673399]
|
||||
* Don't save pixbuf data in user data [Tim; #706777]
|
||||
* Don't queue redraws for obscured regions [Adel; #703332]
|
||||
* Suppor the opaque region hints for wayland clients [Jasper; #707019]
|
||||
* Support the opaque region hints for wayland clients [Jasper; #707019]
|
||||
* Turn blending off when drawing entirely opaque regions [Jasper; #707019]
|
||||
* Check event timestamps before reconfiguring [Giovanni; #706735]
|
||||
* Merge the DBus API for display configuration in the wayland branch [Giovanni]
|
||||
@ -2613,7 +2613,7 @@ Translations:
|
||||
======
|
||||
* Automaximize large windows on map [Adel; #671677]
|
||||
* When unmaximizing windows, make sure the unminimized size
|
||||
is signficantly less than the maximized size [Adel; #671677]
|
||||
is significantly less than the maximized size [Adel; #671677]
|
||||
* Don't offer maximize option for windows larger than the screen
|
||||
[Jasper; #643606]
|
||||
* Always focus the window immediately underneath without restacking
|
||||
@ -2713,7 +2713,7 @@ Translations:
|
||||
* Move from GConf to GSettings for preferences [Florian; #635378]
|
||||
* Add meta_display_add_keybinding()/meta_display_remove_keybinding()
|
||||
to allow creating new keybindings at runtime [Florian; #663428]
|
||||
* Add suport for new _NET_WM_STATE_FOCUSED atom in _NET_WM_STATE
|
||||
* Add support for new _NET_WM_STATE_FOCUSED atom in _NET_WM_STATE
|
||||
to allow applications to draw unfocused windows differently
|
||||
[Rui; #661427]
|
||||
* Add meta_window_move_resize_frame() to allow specifying the
|
||||
@ -2825,7 +2825,7 @@ Contributors:
|
||||
for easy resizing with thin borders. (New draggable_border_width GConf key
|
||||
controls the total width of visible and invisible borders.)
|
||||
[Jasper; #644930]
|
||||
* Draw rounded window corners with antialising [Jasper; #628195]
|
||||
* Draw rounded window corners with antialiasing [Jasper; #628195]
|
||||
* Unredirect override-redirect fullscreen windows, such as full-screen
|
||||
3D games to avoid any performance impact [Adel; #597014]
|
||||
* Add :resizable and :above properties to MetaWindow. [Tim; #653858]
|
||||
@ -2918,7 +2918,7 @@ Translations:
|
||||
3.0.2.1
|
||||
=======
|
||||
* When saving the session, use the "program name" rather than
|
||||
harcoding mutter, fixing session saving for gnome-shell [Matthias]
|
||||
hardcoding mutter, fixing session saving for gnome-shell [Matthias]
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=648828
|
||||
|
||||
Contributors:
|
||||
@ -3236,7 +3236,7 @@ Bugs fixed:
|
||||
634779 MetaWindowGroup: further optimize paints by using current scissor
|
||||
634833 Draw the root window background
|
||||
592382 improve shadow effect
|
||||
628199 Add antialising to arc and line drawing operations
|
||||
628199 Add antialiasing to arc and line drawing operations
|
||||
633002 meta-actor-window: Use G_UNLIKELY for TFP check
|
||||
634771 MetaStackTracker: Avoid queueing resync for obvious no-ops
|
||||
635421 Fix crash in check_needs_shadow
|
||||
@ -3433,7 +3433,7 @@ Fixed Bugs:
|
||||
- Allow a theme to turn on title ellipsization
|
||||
* Performance enhancements:
|
||||
- Stream raw damage updates to ClutterX11TexturePixmap
|
||||
to enable partial stage updates when windos change [Robert]
|
||||
to enable partial stage updates when windows change [Robert]
|
||||
- Don't trap XErrors in meta_compositor_process_event [Adel]
|
||||
* Add meta_prefs_override_preference_location(); this allows
|
||||
a plugin like GNOME Shell to redirect preferences to a
|
||||
@ -3478,7 +3478,7 @@ Fixed Bugs:
|
||||
613136 - remove over-restrictive assert from meta_prefs_get_workspace_name()
|
||||
613398 - Don't trap XErrors in meta_compositor_process_event
|
||||
615586 - Allow redirecting preferences to a different GConf key
|
||||
615672 - cant' compile mutter error: dereferencing pointer ‘p’ does break
|
||||
615672 - can't compile mutter error: dereferencing pointer ‘p’ does break
|
||||
strict-aliasing rules
|
||||
616050 - alt-tab infrastructure patches
|
||||
616274 - mutter from git fails with gcc 4.5 (on new warning)
|
||||
@ -4424,7 +4424,7 @@ Arthur Taylor, Elijah Newren, Josselin Mouette, Havoc Pennington,
|
||||
Benjamin Berg, and Carlo Wood for improvements in this release.
|
||||
|
||||
- new icon for the force-quit dialog (Jaap) [#396655]
|
||||
- add configureable mouse click action abilities, and clean up lots of
|
||||
- add configurable mouse click action abilities, and clean up lots of
|
||||
related code (Linus) [#408899, #408902, others]
|
||||
- add schemeas for middle and right click titlebar actions (Charlie)
|
||||
[#408903]
|
||||
@ -4978,7 +4978,7 @@ this release.
|
||||
running with --disable-gconf. Make --disable-gconf actually work.
|
||||
(Elijah) [#326661]
|
||||
- fix some reading-from-free'd-data errors (Søren) [#327575]
|
||||
- fix an unitialized value problem when in raise-on-click mode
|
||||
- fix an uninitialized value problem when in raise-on-click mode
|
||||
(Søren) [#327572]
|
||||
- avoid flashing original-sized window when closing a maximized
|
||||
window (Elijah) [#317254]
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "cally-actor.h"
|
||||
|
||||
/*
|
||||
* Auxiliar define, in order to get the clutter actor from the AtkObject using
|
||||
* Auxiliary define, in order to get the clutter actor from the AtkObject using
|
||||
* AtkGObject methods
|
||||
*
|
||||
*/
|
||||
|
@ -1104,7 +1104,7 @@ cally_actor_add_action_full (CallyActor *cally_actor,
|
||||
*
|
||||
* Removes a action, using the @action_id returned by cally_actor_add_action()
|
||||
*
|
||||
* Return value: %TRUE if the operation was succesful, %FALSE otherwise
|
||||
* Return value: %TRUE if the operation was successful, %FALSE otherwise
|
||||
*
|
||||
* Since: 1.4
|
||||
*/
|
||||
@ -1138,7 +1138,7 @@ cally_actor_remove_action (CallyActor *cally_actor,
|
||||
* Removes an action, using the @action_name used when the action was added
|
||||
* with cally_actor_add_action()
|
||||
*
|
||||
* Return value: %TRUE if the operation was succesful, %FALSE otherwise
|
||||
* Return value: %TRUE if the operation was successful, %FALSE otherwise
|
||||
*
|
||||
* Since: 1.4
|
||||
*/
|
||||
|
@ -47,7 +47,7 @@ static AtkStateSet* cally_stage_ref_state_set (AtkObject *obj);
|
||||
/* AtkWindow */
|
||||
static void cally_stage_window_interface_init (AtkWindowIface *iface);
|
||||
|
||||
/* Auxiliar */
|
||||
/* Auxiliary */
|
||||
static void cally_stage_activate_cb (ClutterStage *stage,
|
||||
gpointer data);
|
||||
static void cally_stage_deactivate_cb (ClutterStage *stage,
|
||||
@ -222,7 +222,7 @@ cally_stage_window_interface_init (AtkWindowIface *iface)
|
||||
/* At this moment AtkWindow is just about signals */
|
||||
}
|
||||
|
||||
/* Auxiliar */
|
||||
/* Auxiliary */
|
||||
static void
|
||||
cally_stage_activate_cb (ClutterStage *stage,
|
||||
gpointer data)
|
||||
|
@ -1513,7 +1513,7 @@ cally_text_get_offset_at_point (AtkText *text,
|
||||
}
|
||||
|
||||
|
||||
/******** Auxiliar private methods ******/
|
||||
/******** Auxiliary private methods ******/
|
||||
|
||||
/* ClutterText only maintains the current cursor position and a extra selection
|
||||
bound, but this could be before or after the cursor. This method returns
|
||||
@ -1552,7 +1552,7 @@ _cally_text_delete_text_cb (ClutterText *clutter_text,
|
||||
|
||||
g_return_if_fail (CALLY_IS_TEXT (data));
|
||||
|
||||
/* Ignore zero lengh deletions */
|
||||
/* Ignore zero length deletions */
|
||||
if (end_pos - start_pos == 0)
|
||||
return;
|
||||
|
||||
@ -1653,7 +1653,7 @@ cally_text_insert_text (AtkEditableText *text,
|
||||
clutter_text_insert_text (CLUTTER_TEXT (actor),
|
||||
string, *position);
|
||||
|
||||
/* we suppose that the text insertion will be succesful,
|
||||
/* we suppose that the text insertion will be successful,
|
||||
clutter-text doesn't warn about it. A option would be search for
|
||||
the text, but it seems not really required */
|
||||
*position += length;
|
||||
|
@ -320,7 +320,7 @@ clutter_actor_box_get_area (const ClutterActorBox *box)
|
||||
* @y: Y coordinate of the point
|
||||
*
|
||||
* Checks whether a point with @x, @y coordinates is contained
|
||||
* withing @box
|
||||
* within @box
|
||||
*
|
||||
* Return value: %TRUE if the point is contained by the #ClutterActorBox
|
||||
*
|
||||
@ -554,7 +554,7 @@ _clutter_actor_box_enlarge_for_effects (ClutterActorBox *box)
|
||||
*
|
||||
* The reason this is important is because effects will use this
|
||||
* API to determine the size of offscreen framebuffers and so for
|
||||
* a fixed-size object that may be animated accross the screen we
|
||||
* a fixed-size object that may be animated across the screen we
|
||||
* want to make sure that the stage paint-box has an equally stable
|
||||
* size so that effects aren't made to continuously re-allocate
|
||||
* a corresponding fbo.
|
||||
@ -583,7 +583,7 @@ _clutter_actor_box_enlarge_for_effects (ClutterActorBox *box)
|
||||
|
||||
/* Now we redefine the top-left relative to the bottom right based on the
|
||||
* rounded width/height determined above + a constant so that the overall
|
||||
* size of the box will be stable and not dependant on the box's
|
||||
* size of the box will be stable and not dependent on the box's
|
||||
* position.
|
||||
*
|
||||
* Adding 3px to the width/height will ensure we cover the maximum of
|
||||
|
@ -1636,7 +1636,7 @@ clutter_actor_real_map (ClutterActor *self)
|
||||
* and realizes its children if they are visible. Does nothing if the
|
||||
* actor is not visible.
|
||||
*
|
||||
* Calling this function is strongly disencouraged: the default
|
||||
* Calling this function is strongly discouraged: the default
|
||||
* implementation of #ClutterActorClass.map() will map all the children
|
||||
* of an actor when mapping its parent.
|
||||
*
|
||||
@ -9289,7 +9289,7 @@ clutter_actor_get_allocation_box (ClutterActor *self,
|
||||
clutter_stage_maybe_relayout (stage);
|
||||
}
|
||||
|
||||
/* commenting out the code above and just keeping this assigment
|
||||
/* commenting out the code above and just keeping this assignment
|
||||
* implements 3)
|
||||
*/
|
||||
*box = self->priv->allocation;
|
||||
@ -10940,7 +10940,7 @@ clutter_actor_set_scale_z (ClutterActor *self,
|
||||
/**
|
||||
* clutter_actor_get_scale:
|
||||
* @self: A #ClutterActor
|
||||
* @scale_x: (out) (allow-none): Location to store horizonal
|
||||
* @scale_x: (out) (allow-none): Location to store horizontal
|
||||
* scale factor, or %NULL.
|
||||
* @scale_y: (out) (allow-none): Location to store vertical
|
||||
* scale factor, or %NULL.
|
||||
@ -12239,7 +12239,7 @@ clutter_actor_get_parent (ClutterActor *self)
|
||||
*
|
||||
* This is by definition the same as %CLUTTER_ACTOR_IS_MAPPED.
|
||||
*
|
||||
* Return Value: %TRUE if the actor is visibile and will be painted.
|
||||
* Return Value: %TRUE if the actor is visible and will be painted.
|
||||
*
|
||||
* Since: 0.8
|
||||
*/
|
||||
@ -14444,7 +14444,7 @@ clutter_actor_create_pango_layout (ClutterActor *self,
|
||||
* Allows overriding the calculated paint opacity (as returned by
|
||||
* clutter_actor_get_paint_opacity()). This is used internally by
|
||||
* ClutterClone and ClutterOffscreenEffect, and should be used by
|
||||
* actors that need to mimick those.
|
||||
* actors that need to mimic those.
|
||||
*
|
||||
* In almost all cases this should not used by applications.
|
||||
*
|
||||
@ -16544,7 +16544,7 @@ clutter_actor_get_child_at_index (ClutterActor *self,
|
||||
|
||||
/*< private >
|
||||
* _clutter_actor_foreach_child:
|
||||
* @actor: The actor whos children you want to iterate
|
||||
* @actor: The actor whose children you want to iterate
|
||||
* @callback: The function to call for each child
|
||||
* @user_data: Private data to pass to @callback
|
||||
*
|
||||
@ -19560,7 +19560,7 @@ clutter_actor_has_mapped_clones (ClutterActor *self)
|
||||
|
||||
/* Clones will force-show their own source actor but not children of
|
||||
* it, so if we're hidden and an actor up the hierarchy has a clone,
|
||||
* we won't be visisble.
|
||||
* we won't be visible.
|
||||
*/
|
||||
if (!CLUTTER_ACTOR_IS_VISIBLE (actor))
|
||||
return FALSE;
|
||||
|
@ -259,7 +259,7 @@ clutter_matrix_init_identity (ClutterMatrix *matrix)
|
||||
* Initializes @matrix with the contents of a C array of floating point
|
||||
* values.
|
||||
*
|
||||
* Return value: (transfer none): the initialzed #ClutterMatrix
|
||||
* Return value: (transfer none): the initialized #ClutterMatrix
|
||||
*
|
||||
* Since: 1.12
|
||||
*/
|
||||
|
@ -35,7 +35,7 @@
|
||||
#undef CBZ_L2T_INTERPOLATION
|
||||
|
||||
/****************************************************************************
|
||||
* ClutterBezier -- represenation of a cubic bezier curve *
|
||||
* ClutterBezier -- representation of a cubic bezier curve *
|
||||
* (private; a building block for the public bspline object) *
|
||||
****************************************************************************/
|
||||
|
||||
@ -213,7 +213,7 @@ sqrti (int number)
|
||||
* algorithm does not calculate the square root, but its reciprocal ('y'
|
||||
* below), which is only at the end turned to the inverse value. In order
|
||||
* for the algorithm to produce satisfactory results, the reciprocal value
|
||||
* must be represented with sufficient precission; the 16.16 we use
|
||||
* must be represented with sufficient precision; the 16.16 we use
|
||||
* elsewhere in clutter is not good enough, and 10.22 is used instead.
|
||||
*/
|
||||
_FixedT x;
|
||||
@ -236,7 +236,7 @@ sqrti (int number)
|
||||
/* Now, we convert the float to 10.22 fixed. We exploit the mechanism
|
||||
* described at http://www.d6.com/users/checker/pdfs/gdmfp.pdf.
|
||||
*
|
||||
* We want 22 bit fraction; a single precission float uses 23 bit
|
||||
* We want 22 bit fraction; a single precision float uses 23 bit
|
||||
* mantisa, so we only need to add 2^(23-22) (no need for the 1.5
|
||||
* multiplier as we are only dealing with positive numbers).
|
||||
*
|
||||
@ -256,7 +256,7 @@ sqrti (int number)
|
||||
flt2.i = (flt2.i >> 11) * (y_1 >> 11);
|
||||
|
||||
/* If the original argument is less than 342, we do another
|
||||
* iteration to improve precission (for arguments >= 342, the single
|
||||
* iteration to improve precision (for arguments >= 342, the single
|
||||
* iteration produces generally better results).
|
||||
*/
|
||||
if (x < 171)
|
||||
|
@ -39,7 +39,7 @@
|
||||
* #ClutterActor:y-expand are set, the available size
|
||||
* - honours the #ClutterActor's #ClutterActor:x-align and #ClutterActor:y-align properties
|
||||
* to fill the available size
|
||||
* - if the #ClutterBoxLayout:homogeneous boolean propert is set, then all widgets will
|
||||
* - if the #ClutterBoxLayout:homogeneous boolean property is set, then all widgets will
|
||||
* get the same size, ignoring expand settings and the preferred sizes
|
||||
*
|
||||
* It is possible to control the spacing between children of a
|
||||
@ -719,7 +719,7 @@ clutter_box_layout_allocate (ClutterLayoutManager *layout,
|
||||
|
||||
if (priv->is_homogeneous)
|
||||
{
|
||||
/* If were homogenous we still need to run the above loop to get the
|
||||
/* If were homogeneous we still need to run the above loop to get the
|
||||
* minimum sizes for children that are not going to fill
|
||||
*/
|
||||
if (priv->orientation == CLUTTER_ORIENTATION_VERTICAL)
|
||||
@ -1218,7 +1218,7 @@ clutter_box_layout_get_homogeneous (ClutterBoxLayout *layout)
|
||||
* @pack_start: %TRUE if the @layout should pack children at the
|
||||
* beginning of the layout
|
||||
*
|
||||
* Sets whether children of @layout should be layed out by appending
|
||||
* Sets whether children of @layout should be laid out by appending
|
||||
* them or by prepending them
|
||||
*
|
||||
* Since: 1.2
|
||||
|
@ -199,7 +199,7 @@ clutter_clone_get_paint_volume (ClutterActor *actor,
|
||||
if (priv->clone_source == NULL)
|
||||
return TRUE;
|
||||
|
||||
/* query the volume of the source actor and simply masquarade it as
|
||||
/* query the volume of the source actor and simply masquerade it as
|
||||
* the clones volume... */
|
||||
source_volume = clutter_actor_get_paint_volume (priv->clone_source);
|
||||
if (source_volume == NULL)
|
||||
|
@ -611,7 +611,7 @@ parse_hsla (ClutterColor *color,
|
||||
/**
|
||||
* clutter_color_from_string:
|
||||
* @color: (out caller-allocates): return location for a #ClutterColor
|
||||
* @str: a string specifiying a color
|
||||
* @str: a string specifying a color
|
||||
*
|
||||
* Parses a string definition of a color, filling the #ClutterColor.red,
|
||||
* #ClutterColor.green, #ClutterColor.blue and #ClutterColor.alpha fields
|
||||
|
@ -74,7 +74,7 @@ typedef struct _ClutterContainerIface ClutterContainerIface;
|
||||
* fields in the instance and add the record to a data structure for
|
||||
* subsequent access for #ClutterContainerIface::get_child_meta
|
||||
* @destroy_child_meta: virtual function that gets called when a child is
|
||||
* removed; it shuld release all resources held by the record
|
||||
* removed; it should release all resources held by the record
|
||||
* @get_child_meta: return the record for a container child
|
||||
* @actor_added: class handler for #ClutterContainer::actor-added
|
||||
* @actor_removed: class handler for #ClutterContainer::actor-removed
|
||||
|
@ -28,7 +28,7 @@
|
||||
* @see_also: #ClutterEffect, #ClutterOffscreenEffect
|
||||
*
|
||||
* #ClutterDesaturateEffect is a sub-class of #ClutterEffect that
|
||||
* desaturates the color of an actor and its contents. The strenght
|
||||
* desaturates the color of an actor and its contents. The strength
|
||||
* of the desaturation effect is controllable and animatable through
|
||||
* the #ClutterDesaturateEffect:factor property.
|
||||
*
|
||||
|
@ -349,7 +349,7 @@ _clutter_effect_has_custom_paint_volume (ClutterEffect *effect)
|
||||
* the actor itself so the %CLUTTER_EFFECT_PAINT_ACTOR_DIRTY would still
|
||||
* not be set. The effect can detect this case by keeping track of the
|
||||
* last modelview matrix that was used to render the actor and
|
||||
* veryifying that it remains the same in the next paint.
|
||||
* verifying that it remains the same in the next paint.
|
||||
*
|
||||
* Any other effects that are layered on top of the passed in effect
|
||||
* will still be passed the %CLUTTER_EFFECT_PAINT_ACTOR_DIRTY flag. If
|
||||
|
@ -127,7 +127,7 @@ typedef enum /*< prefix=CLUTTER_REQUEST >*/
|
||||
* @CLUTTER_EASE_IN_OUT_QUAD: quadratic tweening, combininig
|
||||
* %CLUTTER_EASE_IN_QUAD and %CLUTTER_EASE_OUT_QUAD
|
||||
* @CLUTTER_EASE_IN_CUBIC: cubic tweening
|
||||
* @CLUTTER_EASE_OUT_CUBIC: cubic tweening, invers of
|
||||
* @CLUTTER_EASE_OUT_CUBIC: cubic tweening, inverse of
|
||||
* %CLUTTER_EASE_IN_CUBIC
|
||||
* @CLUTTER_EASE_IN_OUT_CUBIC: cubic tweening, combining
|
||||
* %CLUTTER_EASE_IN_CUBIC and %CLUTTER_EASE_OUT_CUBIC
|
||||
@ -513,7 +513,7 @@ typedef enum {
|
||||
* a toplevel, and all parents visible)
|
||||
* @CLUTTER_ACTOR_REALIZED: the resources associated to the actor have been
|
||||
* allocated
|
||||
* @CLUTTER_ACTOR_REACTIVE: the actor 'reacts' to mouse events emmitting event
|
||||
* @CLUTTER_ACTOR_REACTIVE: the actor 'reacts' to mouse events emitting event
|
||||
* signals
|
||||
* @CLUTTER_ACTOR_VISIBLE: the actor has been shown by the application program
|
||||
* @CLUTTER_ACTOR_NO_LAYOUT: the actor provides an explicit layout management
|
||||
@ -1196,7 +1196,7 @@ typedef enum /*< prefix=CLUTTER_TEXTURE >*/
|
||||
*
|
||||
* Since: 0.8
|
||||
*
|
||||
* Deprecated: 1.22: The #ClutterTexture class was the only used ot
|
||||
* Deprecated: 1.22: The #ClutterTexture class was the only user of
|
||||
* this API; use #ClutterImage and clutter_actor_set_content_scaling_filters()
|
||||
* instead.
|
||||
*/
|
||||
|
@ -913,7 +913,7 @@ clutter_flow_layout_class_init (ClutterFlowLayoutClass *klass)
|
||||
* ClutterFlowLayout:orientation:
|
||||
*
|
||||
* The orientation of the #ClutterFlowLayout. The children
|
||||
* of the layout will be layed out following the orientation.
|
||||
* of the layout will be laid out following the orientation.
|
||||
*
|
||||
* This property also controls the overflowing directions
|
||||
*
|
||||
|
@ -1651,7 +1651,7 @@ _clutter_input_device_remove_slave (ClutterInputDevice *master,
|
||||
* @device: a #ClutterInputDevice
|
||||
* @sequence: a #ClutterEventSequence
|
||||
*
|
||||
* Start tracking informations related to a touch point (position,
|
||||
* Start tracking information related to a touch point (position,
|
||||
* actor underneath the touch point).
|
||||
*/
|
||||
void
|
||||
@ -1676,7 +1676,7 @@ _clutter_input_device_add_event_sequence (ClutterInputDevice *device,
|
||||
* @device: a #ClutterInputDevice
|
||||
* @sequence: a #ClutterEventSequence
|
||||
*
|
||||
* Stop tracking informations related to a touch point.
|
||||
* Stop tracking information related to a touch point.
|
||||
*/
|
||||
void
|
||||
_clutter_input_device_remove_event_sequence (ClutterInputDevice *device,
|
||||
|
@ -1176,7 +1176,7 @@ clutter_interval_compute_value (ClutterInterval *interval,
|
||||
* g_object_set_property()
|
||||
*
|
||||
* Return value: (transfer none): a pointer to the computed value,
|
||||
* or %NULL if the computation was not successfull
|
||||
* or %NULL if the computation was not successful
|
||||
*
|
||||
* Since: 1.4
|
||||
*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
# Author : Simos Xenitellis <simos at gnome dot org>.
|
||||
# Authos : Bastien Nocera <hadess@hadess.net>
|
||||
# Author : Bastien Nocera <hadess@hadess.net>
|
||||
# Version : 1.2
|
||||
#
|
||||
# Notes : It downloads keysymdef.h from the Internet, if not found locally,
|
||||
|
@ -41,7 +41,7 @@
|
||||
* The implementation of a layout manager does not differ from the
|
||||
* implementation of the size requisition and allocation bits of
|
||||
* #ClutterActor, so you should read the relative documentation
|
||||
* forr subclassing #ClutterActor.
|
||||
* for subclassing #ClutterActor.
|
||||
*
|
||||
* The layout manager implementation can hold a back pointer to the
|
||||
* #ClutterContainer by implementing the #ClutterLayoutManagerClass.set_container()
|
||||
|
@ -84,7 +84,7 @@ struct _ClutterLayoutManager
|
||||
* in newly written code.
|
||||
* @end_animation: virtual function; override to end an animation started
|
||||
* by clutter_layout_manager_begin_animation(). This virtual function is
|
||||
* deprecated, and it should not be overriden in newly written code.
|
||||
* deprecated, and it should not be overridden in newly written code.
|
||||
* @get_animation_progress: virtual function; override to control the
|
||||
* progress of the animation of a #ClutterLayoutManager. This virtual
|
||||
* function is deprecated, and it should not be overridden in newly written
|
||||
|
@ -85,8 +85,8 @@ struct _ClutterPaintVolume
|
||||
* TRUE) */
|
||||
guint is_2d:1;
|
||||
|
||||
/* Set to TRUE initialy but cleared if the paint volume is
|
||||
* transfomed by a matrix. */
|
||||
/* Set to TRUE initially but cleared if the paint volume is
|
||||
* transformed by a matrix. */
|
||||
guint is_axis_aligned:1;
|
||||
|
||||
|
||||
|
@ -827,7 +827,7 @@ _clutter_paint_volume_project (ClutterPaintVolume *pv,
|
||||
}
|
||||
|
||||
/* All the vertices must be up to date, since after the projection
|
||||
* it wont be trivial to derive the other vertices. */
|
||||
* it won't be trivial to derive the other vertices. */
|
||||
_clutter_paint_volume_complete (pv);
|
||||
|
||||
/* Most actors are 2D so we only have to transform the front 4
|
||||
@ -866,7 +866,7 @@ _clutter_paint_volume_transform (ClutterPaintVolume *pv,
|
||||
}
|
||||
|
||||
/* All the vertices must be up to date, since after the transform
|
||||
* it wont be trivial to derive the other vertices. */
|
||||
* it won't be trivial to derive the other vertices. */
|
||||
_clutter_paint_volume_complete (pv);
|
||||
|
||||
/* Most actors are 2D so we only have to transform the front 4
|
||||
@ -1057,9 +1057,9 @@ clutter_paint_volume_set_from_allocation (ClutterPaintVolume *pv,
|
||||
}
|
||||
|
||||
/* Currently paint volumes are defined relative to a given actor, but
|
||||
* in some cases it is desireable to be able to change the actor that
|
||||
* in some cases it is desirable to be able to change the actor that
|
||||
* a volume relates too (For instance for ClutterClone actors where we
|
||||
* need to masquarade the source actors volume as the volume for the
|
||||
* need to masquerade the source actors volume as the volume for the
|
||||
* clone). */
|
||||
void
|
||||
_clutter_paint_volume_set_reference_actor (ClutterPaintVolume *pv,
|
||||
|
@ -314,7 +314,7 @@ clutter_path_add_node_full (ClutterPath *path,
|
||||
priv->nodes_dirty = TRUE;
|
||||
}
|
||||
|
||||
/* Helper function to make the rest of teh add_* functions shorter */
|
||||
/* Helper function to make the rest of the add_* functions shorter */
|
||||
static void
|
||||
clutter_path_add_node_helper (ClutterPath *path,
|
||||
ClutterPathNodeType type,
|
||||
|
@ -161,7 +161,7 @@ _clutter_script_get_type_from_class (const gchar *name)
|
||||
* The enumeration value can be an integer, the enumeration nick
|
||||
* or the enumeration name, as part of the #GEnumValue structure.
|
||||
*
|
||||
* Return value: %TRUE if the conversion was successfull.
|
||||
* Return value: %TRUE if the conversion was successful.
|
||||
*/
|
||||
gboolean
|
||||
_clutter_script_enum_from_string (GType type,
|
||||
|
@ -36,7 +36,7 @@
|
||||
* parse it and build all the objects defined into it. Each object must
|
||||
* have an "id" and a "type" properties defining the name to be used
|
||||
* to retrieve it from #ClutterScript with clutter_script_get_object(),
|
||||
* and the class type to be instanciated. Every other attribute will
|
||||
* and the class type to be instantiated. Every other attribute will
|
||||
* be mapped to the class properties.
|
||||
*
|
||||
* A #ClutterScript holds a reference on every object it creates from
|
||||
@ -852,7 +852,7 @@ clutter_script_default_connect (ClutterScript *script,
|
||||
}
|
||||
|
||||
CLUTTER_NOTE (SCRIPT,
|
||||
"connecting %s::%s to %s (afetr:%s, swapped:%s, object:%s)",
|
||||
"connecting %s::%s to %s (after:%s, swapped:%s, object:%s)",
|
||||
(connect_gobject ? G_OBJECT_TYPE_NAME (connect_gobject)
|
||||
: G_OBJECT_TYPE_NAME (gobject)),
|
||||
signal_name,
|
||||
|
@ -173,7 +173,7 @@ clutter_scroll_actor_class_init (ClutterScrollActorClass *klass)
|
||||
/**
|
||||
* ClutterScrollActor:scroll-mode:
|
||||
*
|
||||
* The scrollin direction.
|
||||
* The scrolling direction.
|
||||
*
|
||||
* Since: 1.12
|
||||
*/
|
||||
|
@ -32,7 +32,7 @@
|
||||
*
|
||||
* #ClutterShaderEffect creates an offscreen buffer and then applies the
|
||||
* GLSL shader (after checking whether the compilation and linking were
|
||||
* successfull) to the buffer before painting it on screen.
|
||||
* successful) to the buffer before painting it on screen.
|
||||
*
|
||||
* #ClutterShaderEffect is available since Clutter 1.4
|
||||
*
|
||||
@ -788,7 +788,7 @@ add_uniform:
|
||||
* values; and %CLUTTER_TYPE_SHADER_MATRIX, for a pointer to an array of
|
||||
* floating point values mapping a matrix
|
||||
*
|
||||
* The number of values interepreted is defined by the @n_value
|
||||
* The number of values interpreted is defined by the @n_value
|
||||
* argument, and by the @gtype argument. For instance, a uniform named
|
||||
* "sampler0" and containing a single integer value is set using:
|
||||
*
|
||||
|
@ -1580,7 +1580,7 @@ clutter_stage_real_apply_transform (ClutterActor *stage,
|
||||
{
|
||||
ClutterStagePrivate *priv = CLUTTER_STAGE (stage)->priv;
|
||||
|
||||
/* FIXME: we probably shouldn't be explicitly reseting the matrix
|
||||
/* FIXME: we probably shouldn't be explicitly resetting the matrix
|
||||
* here... */
|
||||
cogl_matrix_init_identity (matrix);
|
||||
cogl_matrix_multiply (matrix, matrix, &priv->view);
|
||||
@ -2270,9 +2270,9 @@ _clutter_stage_get_viewport (ClutterStage *stage,
|
||||
* @stage: A #ClutterStage
|
||||
* @x: x coordinate of the first pixel that is read from stage
|
||||
* @y: y coordinate of the first pixel that is read from stage
|
||||
* @width: Width dimention of pixels to be read, or -1 for the
|
||||
* @width: Width dimension of pixels to be read, or -1 for the
|
||||
* entire stage width
|
||||
* @height: Height dimention of pixels to be read, or -1 for the
|
||||
* @height: Height dimension of pixels to be read, or -1 for the
|
||||
* entire stage height
|
||||
*
|
||||
* Makes a screenshot of the stage in RGBA 8bit data, returns a
|
||||
@ -2634,7 +2634,7 @@ clutter_stage_ensure_viewport (ClutterStage *stage)
|
||||
* can never converge with the two corners of our triangle no
|
||||
* matter what size the triangle has.
|
||||
* - With a fov > 53° there is a trade off between maximizing the gap
|
||||
* size relative to the stage size but not loosing depth precision.
|
||||
* size relative to the stage size but not losing depth precision.
|
||||
* - Perhaps ideally we wouldn't just consider the fov on the y-axis
|
||||
* that is usually used to define a perspective, we would consider
|
||||
* the fov of the axis with the largest stage size so the gap would
|
||||
@ -3063,7 +3063,7 @@ _clutter_stage_paint_volume_stack_free_all (ClutterStage *stage)
|
||||
g_array_set_size (paint_volume_stack, 0);
|
||||
}
|
||||
|
||||
/* The is an out-of-band paramater available while painting that
|
||||
/* The is an out-of-band parameter available while painting that
|
||||
* can be used to cull actors. */
|
||||
const ClutterPlane *
|
||||
_clutter_stage_get_clip (ClutterStage *stage)
|
||||
|
@ -69,7 +69,7 @@ struct _ClutterTextBuffer
|
||||
/**
|
||||
* ClutterTextBufferClass:
|
||||
* @inserted_text: default handler for the #ClutterTextBuffer::inserted-text signal
|
||||
* @deleted_text: default hanlder for the #ClutterTextBuffer::deleted-text signal
|
||||
* @deleted_text: default handler for the #ClutterTextBuffer::deleted-text signal
|
||||
* @get_text: virtual function
|
||||
* @get_length: virtual function
|
||||
* @insert_text: virtual function
|
||||
|
@ -4124,7 +4124,7 @@ clutter_text_class_init (ClutterTextClass *klass)
|
||||
*
|
||||
* Whether the text includes Pango markup.
|
||||
*
|
||||
* For more informations about the Pango markup format, see
|
||||
* For more information about the Pango markup format, see
|
||||
* pango_layout_set_markup() in the Pango documentation.
|
||||
*
|
||||
* It is not possible to round-trip this property between
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* Have GLES 2.0 for rendering */
|
||||
#mesondefine HAVE_COGL_GLES2
|
||||
|
||||
/* Building with Sysprof profiling suport */
|
||||
/* Building with Sysprof profiling support */
|
||||
#mesondefine HAVE_TRACING
|
||||
|
||||
/* Enable unit tests */
|
||||
|
@ -531,7 +531,7 @@ _cogl_atlas_texture_convert_bitmap_for_upload (CoglAtlasTexture *atlas_tex,
|
||||
format specified when the texture was created. However we'll
|
||||
preserve the premult status of the internal format because the
|
||||
images are all stored in the original premult format of the
|
||||
orignal format so we do need to trigger the conversion */
|
||||
original format so we do need to trigger the conversion */
|
||||
|
||||
internal_format = (COGL_PIXEL_FORMAT_RGBA_8888 |
|
||||
(internal_format & COGL_PREMULT_BIT));
|
||||
|
@ -561,7 +561,7 @@ validate_layer_cb (CoglPipeline *pipeline,
|
||||
"with waste\n", layer_index);
|
||||
|
||||
/* XXX: maybe we can add a mechanism for users to forcibly use
|
||||
* textures with waste where it would be their responsability to use
|
||||
* textures with waste where it would be their responsibility to use
|
||||
* texture coords in the range [0,1] such that sampling outside isn't
|
||||
* required. We can then use a texture matrix (or a modification of
|
||||
* the users own matrix) to map 1 to the edge of the texture data.
|
||||
|
@ -139,12 +139,12 @@ GType cogl_attribute_get_gtype (void);
|
||||
* position may be comprised of 2 x and y @components. You should aim
|
||||
* to keep the number of components to a minimum as more components
|
||||
* means more data needs to be mapped into the GPU which can be a
|
||||
* bottlneck when dealing with a large number of vertices.
|
||||
* bottleneck when dealing with a large number of vertices.
|
||||
*
|
||||
* Finally you need to specify the component data type. Here you
|
||||
* should aim to use the smallest type that meets your precision
|
||||
* requirements. Again the larger the type then more data needs to be
|
||||
* mapped into the GPU which can be a bottlneck when dealing with
|
||||
* mapped into the GPU which can be a bottleneck when dealing with
|
||||
* a large number of vertices.
|
||||
*
|
||||
* Return value: (transfer full): A newly allocated #CoglAttribute
|
||||
|
@ -113,7 +113,7 @@ _cogl_bitmap_from_file (CoglContext *ctx,
|
||||
}
|
||||
|
||||
/* We just use the data directly from the pixbuf so that we don't
|
||||
have to copy to a seperate buffer. Note that Cogl is expected not
|
||||
have to copy to a separate buffer. Note that Cogl is expected not
|
||||
to read past the end of bpp*width on the last row even if the
|
||||
rowstride is much larger so we don't need to worry about
|
||||
GdkPixbuf's semantics that it may under-allocate the buffer. */
|
||||
|
@ -47,7 +47,7 @@
|
||||
_COGL_STATIC_ASSERT (sizeof (unsigned long) <= sizeof (void *),
|
||||
"This toolchain breaks Cogl's assumption that it can "
|
||||
"safely cast an unsigned long to a pointer without "
|
||||
"loosing data");
|
||||
"losing data");
|
||||
|
||||
#define ARRAY_INDEX(bit_num) \
|
||||
((bit_num) / (sizeof (unsigned long) * 8))
|
||||
|
@ -329,12 +329,12 @@ _cogl_buffer_unmap_for_fill_or_fallback (CoglBuffer *buffer)
|
||||
{
|
||||
/* Note: don't try to catch OOM errors here since the use cases
|
||||
* we currently have for this api (the journal and path stroke
|
||||
* tesselator) don't have anything particularly sensible they
|
||||
* tessellator) don't have anything particularly sensible they
|
||||
* can do in response to a failure anyway so it seems better to
|
||||
* simply abort instead.
|
||||
*
|
||||
* If we find this is a problem for real world applications
|
||||
* then in the path tesselation case we could potentially add an
|
||||
* then in the path tessellation case we could potentially add an
|
||||
* explicit cogl_path_tesselate_stroke() api that can throw an
|
||||
* error for the app to cache. For the journal we could
|
||||
* potentially flush the journal in smaller batches so we use
|
||||
|
@ -286,7 +286,7 @@ _cogl_context_get_winsys (CoglContext *context);
|
||||
|
||||
/* Query the GL extensions and lookup the corresponding function
|
||||
* pointers. Theoretically the list of extensions can change for
|
||||
* different GL contexts so it is the winsys backend's responsiblity
|
||||
* different GL contexts so it is the winsys backend's responsibility
|
||||
* to know when to re-query the GL extensions. The backend should also
|
||||
* check whether the GL context is supported by Cogl. If not it should
|
||||
* return FALSE and set @error */
|
||||
|
@ -80,14 +80,14 @@ G_BEGIN_DECLS
|
||||
* context.
|
||||
*
|
||||
* One a context has been destroyed then all directly or indirectly
|
||||
* dependant resources will be in an inconsistent state and should not
|
||||
* dependent resources will be in an inconsistent state and should not
|
||||
* be manipulated or queried in any way.
|
||||
*
|
||||
* For applications that rely on the operating system to clean up
|
||||
* resources this policy shouldn't affect them, but for applications
|
||||
* that need to carefully destroy and re-create Cogl contexts multiple
|
||||
* times throughout their lifetime (such as Android applications) they
|
||||
* should be careful to destroy all context dependant resources, such as
|
||||
* should be careful to destroy all context dependent resources, such as
|
||||
* framebuffers or textures etc before unrefing and destroying the
|
||||
* context.</para></note>
|
||||
*/
|
||||
|
@ -147,7 +147,7 @@ struct _CoglFramebuffer
|
||||
CoglStereoMode stereo_mode;
|
||||
|
||||
/* We journal the textured rectangles we want to submit to OpenGL so
|
||||
* we have an oppertunity to batch them together into less draw
|
||||
* we have an opportunity to batch them together into less draw
|
||||
* calls. */
|
||||
CoglJournal *journal;
|
||||
|
||||
|
@ -203,7 +203,7 @@ _cogl_framebuffer_get_winsys (CoglFramebuffer *framebuffer)
|
||||
|
||||
/* This version of cogl_clear can be used internally as an alternative
|
||||
* to avoid flushing the journal or the framebuffer state. This is
|
||||
* needed when doing operations that may be called whiling flushing
|
||||
* needed when doing operations that may be called while flushing
|
||||
* the journal */
|
||||
void
|
||||
_cogl_framebuffer_clear_without_flush4f (CoglFramebuffer *framebuffer,
|
||||
@ -1263,7 +1263,7 @@ cogl_framebuffer_read_pixels (CoglFramebuffer *framebuffer,
|
||||
pixels);
|
||||
|
||||
/* Note: we don't try and catch errors here since we created the
|
||||
* bitmap storage up-front and can assume we wont hit an
|
||||
* bitmap storage up-front and can assume we won't hit an
|
||||
* out-of-memory error which should be the only exception
|
||||
* this api throws.
|
||||
*/
|
||||
|
@ -435,7 +435,7 @@ cogl_framebuffer_set_modelview_matrix (CoglFramebuffer *framebuffer,
|
||||
*
|
||||
* <note>You should be careful not to have to great a @z_far / @z_near
|
||||
* ratio since that will reduce the effectiveness of depth testing
|
||||
* since there wont be enough precision to identify the depth of
|
||||
* since there won't be enough precision to identify the depth of
|
||||
* objects near to each other.</note>
|
||||
*
|
||||
* Since: 1.10
|
||||
@ -1388,7 +1388,7 @@ cogl_framebuffer_finish (CoglFramebuffer *framebuffer);
|
||||
* @framebuffer: A #CoglFramebuffer
|
||||
* @x: The x position to read from
|
||||
* @y: The y position to read from
|
||||
* @source: Identifies which auxillary buffer you want to read
|
||||
* @source: Identifies which auxiliary buffer you want to read
|
||||
* (only COGL_READ_PIXELS_COLOR_BUFFER supported currently)
|
||||
* @bitmap: The bitmap to store the results in.
|
||||
*
|
||||
|
@ -72,7 +72,7 @@ G_BEGIN_DECLS
|
||||
* For example, to describe a quadrilateral as 2 triangles for the GPU
|
||||
* you could either provide data with 6 vertices or instead with
|
||||
* indices you can provide vertex data for just 4 vertices and an
|
||||
* index buffer that specfies the 6 vertices by indexing the shared
|
||||
* index buffer that specifies the 6 vertices by indexing the shared
|
||||
* vertices multiple times.
|
||||
*
|
||||
* |[
|
||||
@ -94,7 +94,7 @@ G_BEGIN_DECLS
|
||||
* Something else to consider is that often indices can be defined
|
||||
* once and remain static while the vertex data may change for
|
||||
* animations perhaps. That means you may be able to ignore the
|
||||
* negligable cost of mapping your indices into the GPU if they don't
|
||||
* negligible cost of mapping your indices into the GPU if they don't
|
||||
* ever change.
|
||||
*
|
||||
* The above illustration is actually a good example of static indices
|
||||
|
@ -959,7 +959,7 @@ maybe_software_clip_entries (CoglJournalEntry *batch_start,
|
||||
entry in the journal. We store it in a separate buffer because
|
||||
it's expensive to calculate but at this point we still don't know
|
||||
whether we can clip all of the entries so we don't want to do the
|
||||
rest of the dependant calculations until we're sure we can. */
|
||||
rest of the dependent calculations until we're sure we can. */
|
||||
if (ctx->journal_clip_bounds == NULL)
|
||||
ctx->journal_clip_bounds = g_array_new (FALSE, FALSE, sizeof (ClipBounds));
|
||||
g_array_set_size (ctx->journal_clip_bounds, batch_len);
|
||||
@ -1700,7 +1700,7 @@ entry_to_screen_polygon (CoglFramebuffer *framebuffer,
|
||||
#define VIEWPORT_TRANSFORM_X(x, vp_origin_x, vp_width) \
|
||||
( ( ((x) + 1.0) * ((vp_width) / 2.0) ) + (vp_origin_x) )
|
||||
/* Note: for Y we first flip all coordinates around the X axis while in
|
||||
* normalized device coodinates */
|
||||
* normalized device coordinates */
|
||||
#define VIEWPORT_TRANSFORM_Y(y, vp_origin_y, vp_height) \
|
||||
( ( ((-(y)) + 1.0) * ((vp_height) / 2.0) ) + (vp_origin_y) )
|
||||
|
||||
|
@ -808,7 +808,7 @@ cogl_matrix_entry_equal (CoglMatrixEntry *entry0,
|
||||
CoglMatrixEntryTranslate *translate1 =
|
||||
(CoglMatrixEntryTranslate *)entry1;
|
||||
/* We could perhaps use an epsilon to compare here?
|
||||
* I expect the false negatives are probaly never going to
|
||||
* I expect the false negatives are probably never going to
|
||||
* be a problem and this is a bit cheaper. */
|
||||
if (!graphene_point3d_equal (&translate0->translate,
|
||||
&translate1->translate))
|
||||
|
@ -373,7 +373,7 @@ cogl_matrix_stack_frustum (CoglMatrixStack *stack,
|
||||
*
|
||||
* <note>You should be careful not to have too great a @z_far / @z_near
|
||||
* ratio since that will reduce the effectiveness of depth testing
|
||||
* since there wont be enough precision to identify the depth of
|
||||
* since there won't be enough precision to identify the depth of
|
||||
* objects near to each other.</note>
|
||||
*/
|
||||
COGL_EXPORT void
|
||||
|
@ -143,7 +143,7 @@ do { \
|
||||
*/
|
||||
#define MAT_FLAG_IDENTITY 0 /*< is an identity matrix flag.
|
||||
* (Not actually used - the identity
|
||||
* matrix is identified by the absense
|
||||
* matrix is identified by the absence
|
||||
* of all other flags.)
|
||||
*/
|
||||
#define MAT_FLAG_GENERAL 0x1 /*< is a general matrix flag */
|
||||
@ -1294,7 +1294,7 @@ _cogl_matrix_rotate (CoglMatrix *matrix,
|
||||
* ...etc. Because of those relations and the standard trigonometric
|
||||
* relations, it is pssible to reduce the transforms down to what
|
||||
* is used below. It may be that any primary axis chosen will give the
|
||||
* same results (modulo a sign convention) using thie method.
|
||||
* same results (modulo a sign convention) using this method.
|
||||
*
|
||||
* Particularly nice is to notice that all divisions that might
|
||||
* have caused trouble when parallel to certain planes or
|
||||
@ -1606,7 +1606,7 @@ cogl_matrix_init_identity (CoglMatrix *matrix)
|
||||
/*
|
||||
* Set a matrix to the (tx, ty, tz) translation matrix.
|
||||
*
|
||||
* @matix matrix.
|
||||
* @matrix matrix.
|
||||
* @tx x coordinate of the translation vector
|
||||
* @ty y coordinate of the translation vector
|
||||
* @tz z coordinate of the translation vector
|
||||
@ -1878,13 +1878,13 @@ cogl_matrix_equal (const void *v1, const void *v2)
|
||||
g_return_val_if_fail (v2 != NULL, FALSE);
|
||||
|
||||
/* We want to avoid having a fuzzy _equal() function (e.g. that uses
|
||||
* an arbitrary epsilon value) since this function noteably conforms
|
||||
* an arbitrary epsilon value) since this function notably conforms
|
||||
* to the prototype suitable for use with g_hash_table_new() and a
|
||||
* fuzzy hash function isn't really appropriate for comparing hash
|
||||
* table keys since it's possible that you could end up fetching
|
||||
* different values if you end up with multiple similar keys in use
|
||||
* at the same time. If you consider that fuzzyness allows cases
|
||||
* such as A == B == C but A != C then you could also end up loosing
|
||||
* such as A == B == C but A != C then you could also end up losing
|
||||
* values in a hash table.
|
||||
*
|
||||
* We do at least use the == operator to compare values though so
|
||||
|
@ -263,7 +263,7 @@ cogl_matrix_scale (CoglMatrix *matrix,
|
||||
* vector, which is normally simply (0, 1, 0) to map up to the
|
||||
* positive direction of the y axis.
|
||||
*
|
||||
* Because there is a lot of missleading documentation online for
|
||||
* Because there is a lot of misleading documentation online for
|
||||
* gluLookAt regarding the up vector we want to try and be a bit
|
||||
* clearer here.
|
||||
*
|
||||
@ -271,7 +271,7 @@ cogl_matrix_scale (CoglMatrix *matrix,
|
||||
* and does not need to change as you move the eye and object
|
||||
* positions. Many online sources may claim that the up vector needs
|
||||
* to be perpendicular to the vector between the eye and object
|
||||
* position (partly because the man page is somewhat missleading) but
|
||||
* position (partly because the man page is somewhat misleading) but
|
||||
* that is not necessary for this function.
|
||||
*
|
||||
* <note>You should never look directly along the world-up
|
||||
@ -336,7 +336,7 @@ cogl_matrix_frustum (CoglMatrix *matrix,
|
||||
*
|
||||
* <note>You should be careful not to have to great a @z_far / @z_near
|
||||
* ratio since that will reduce the effectiveness of depth testing
|
||||
* since there wont be enough precision to identify the depth of
|
||||
* since there won't be enough precision to identify the depth of
|
||||
* objects near to each other.</note>
|
||||
*/
|
||||
COGL_EXPORT void
|
||||
@ -563,7 +563,7 @@ cogl_matrix_get_inverse (const CoglMatrix *matrix,
|
||||
* @z: (inout): The Z component of your points position
|
||||
* @w: (inout): The W component of your points position
|
||||
*
|
||||
* Transforms a point whos position is given and returned as four float
|
||||
* Transforms a point whose position is given and returned as four float
|
||||
* components.
|
||||
*/
|
||||
COGL_EXPORT void
|
||||
@ -645,7 +645,7 @@ cogl_matrix_transform_points (const CoglMatrix *matrix,
|
||||
* Projects an array of input points and writes the result to another
|
||||
* array of output points. The input points can either have 2, 3 or 4
|
||||
* components each. The output points always have 4 components (known
|
||||
* as homogenous coordinates). The output array can simply point to
|
||||
* as homogeneous coordinates). The output array can simply point to
|
||||
* the input array to do the transform in-place.
|
||||
*
|
||||
* Here's an example with differing input/output strides:
|
||||
|
@ -44,9 +44,9 @@
|
||||
* rewind the entire stack back to the start. There is no
|
||||
* the concept of stack frames to allow partial rewinds.
|
||||
*
|
||||
* For example; we plan to use this in our tesselator which has to
|
||||
* For example; we plan to use this in our tessellator which has to
|
||||
* allocate lots of small vertex, edge and face structures because
|
||||
* when tesselation has been finished we just want to free the whole
|
||||
* when tessellation has been finished we just want to free the whole
|
||||
* lot in one go.
|
||||
*
|
||||
*
|
||||
|
@ -509,7 +509,7 @@ cogl_meta_texture_foreach_in_region (CoglMetaTexture *meta_texture,
|
||||
tx_2 *= width;
|
||||
ty_2 *= height;
|
||||
|
||||
/* XXX: at some point this wont be routed through the CoglTexture
|
||||
/* XXX: at some point this won't be routed through the CoglTexture
|
||||
* vtable, instead there will be a separate CoglMetaTexture
|
||||
* interface vtable. */
|
||||
|
||||
|
@ -42,7 +42,7 @@ typedef struct _CoglNode CoglNode;
|
||||
/* Pipelines and layers represent their state in a tree structure where
|
||||
* some of the state relating to a given pipeline or layer may actually
|
||||
* be owned by one if is ancestors in the tree. We have a common data
|
||||
* type to track the tree heirachy so we can share code... */
|
||||
* type to track the tree hierarchy so we can share code... */
|
||||
struct _CoglNode
|
||||
{
|
||||
/* the parent in terms of class hierarchy, so anything inheriting
|
||||
|
@ -38,7 +38,7 @@
|
||||
#include "cogl-object.h"
|
||||
#include "cogl-debug.h"
|
||||
|
||||
/* For compatability until all components have been converted */
|
||||
/* For compatibility until all components have been converted */
|
||||
typedef struct _CoglObjectClass CoglHandleClass;
|
||||
typedef struct _CoglObject CoglHandleObject;
|
||||
|
||||
@ -249,7 +249,7 @@ _cogl_is_##type_name (void *object) \
|
||||
#define COGL_OBJECT_INTERNAL_DEFINE(TypeName, type_name) \
|
||||
COGL_OBJECT_INTERNAL_DEFINE_WITH_CODE (TypeName, type_name, (void) 0)
|
||||
|
||||
/* For temporary compatability */
|
||||
/* For temporary compatibility */
|
||||
#define COGL_HANDLE_INTERNAL_DEFINE_WITH_CODE(TypeName, type_name, code) \
|
||||
\
|
||||
COGL_OBJECT_INTERNAL_DEFINE_WITH_CODE (TypeName, type_name, code) \
|
||||
|
@ -114,7 +114,7 @@ cogl_handle_get_type (void)
|
||||
{
|
||||
static GType our_type = 0;
|
||||
|
||||
/* XXX: We are keeping the "CoglHandle" name for now incase it would
|
||||
/* XXX: We are keeping the "CoglHandle" name for now in case it would
|
||||
* break bindings to change to "CoglObject" */
|
||||
if (G_UNLIKELY (our_type == 0))
|
||||
our_type = g_boxed_type_register_static (g_intern_static_string ("CoglHandle"),
|
||||
|
@ -129,8 +129,8 @@ typedef struct {
|
||||
|
||||
/**
|
||||
* CoglUserDataDestroyCallback:
|
||||
* @user_data: The data whos association with a #CoglObject has been
|
||||
* destoyed.
|
||||
* @user_data: The data whose association with a #CoglObject has been
|
||||
* destroyed.
|
||||
*
|
||||
* When associating private data with a #CoglObject a callback can be
|
||||
* given which will be called either if the object is destroyed or if
|
||||
|
@ -120,7 +120,7 @@ cogl_x11_onscreen_get_window_xid (CoglOnscreen *onscreen);
|
||||
* client API via cogl_wayland_onscreen_get_surface().
|
||||
*
|
||||
* <note>Since Cogl doesn't explicitly track the visibility status of
|
||||
* onscreen framebuffers it wont try to avoid redundant window system
|
||||
* onscreen framebuffers it won't try to avoid redundant window system
|
||||
* requests e.g. to show an already visible window. This also means
|
||||
* that it's acceptable to alternatively use native APIs to show and
|
||||
* hide windows without confusing Cogl.</note>
|
||||
@ -145,7 +145,7 @@ cogl_onscreen_show (CoglOnscreen *onscreen);
|
||||
* framebuffer before hiding it.
|
||||
*
|
||||
* <note>Since Cogl doesn't explicitly track the visibility status of
|
||||
* onscreen framebuffers it wont try to avoid redundant window system
|
||||
* onscreen framebuffers it won't try to avoid redundant window system
|
||||
* requests e.g. to show an already visible window. This also means
|
||||
* that it's acceptable to alternatively use native APIs to show and
|
||||
* hide windows without confusing Cogl.</note>
|
||||
@ -420,7 +420,7 @@ GType cogl_frame_closure_get_gtype (void);
|
||||
* ready for this application to render a new frame. In this case
|
||||
* %COGL_FRAME_EVENT_SYNC will be passed as the event argument to the
|
||||
* given @callback in addition to the #CoglFrameInfo corresponding to
|
||||
* the frame beeing acknowledged by the compositor.
|
||||
* the frame being acknowledged by the compositor.
|
||||
*
|
||||
* The @callback will also be called to notify when the frame has
|
||||
* ended. In this case %COGL_FRAME_EVENT_COMPLETE will be passed as
|
||||
@ -709,7 +709,7 @@ GType cogl_onscreen_dirty_closure_get_gtype (void);
|
||||
* been moved causing a region of the onscreen to be exposed.
|
||||
*
|
||||
* The @callback will be passed a #CoglOnscreenDirtyInfo struct which
|
||||
* decribes a rectangle containing the newly dirtied region. Note that
|
||||
* describes a rectangle containing the newly dirtied region. Note that
|
||||
* this may be called multiple times to describe a non-rectangular
|
||||
* region composed of multiple smaller rectangles.
|
||||
*
|
||||
|
@ -207,7 +207,7 @@ struct _CoglPipelineLayer
|
||||
/* Layers represent their state in a tree structure where some of
|
||||
* the state relating to a given pipeline or layer may actually be
|
||||
* owned by one if is ancestors in the tree. We have a common data
|
||||
* type to track the tree heirachy so we can share code... */
|
||||
* type to track the tree hierarchy so we can share code... */
|
||||
CoglNode _parent;
|
||||
|
||||
/* Some layers have a pipeline owner, which is to say that the layer
|
||||
|
@ -377,9 +377,9 @@ _cogl_pipeline_layer_pre_change_notify (CoglPipeline *required_owner,
|
||||
goto init_layer_state;
|
||||
}
|
||||
|
||||
/* Note: At this point we know there is only one pipeline dependant on
|
||||
/* Note: At this point we know there is only one pipeline dependent on
|
||||
* this layer (required_owner), and there are no other layers
|
||||
* dependant on this layer so it's ok to modify it. */
|
||||
* dependent on this layer so it's ok to modify it. */
|
||||
|
||||
/* NB: Although layers can have private state associated with them
|
||||
* by multiple backends we know that a layer can't be *changed* if
|
||||
@ -796,7 +796,7 @@ _cogl_pipeline_init_default_layers (void)
|
||||
/* Since we passed a newly allocated layer we don't expect that
|
||||
* _set_layer_unit() will have to allocate *another* layer. */
|
||||
|
||||
/* Finally we create a dummy dependant for ->default_layer_n which
|
||||
/* Finally we create a dummy dependent for ->default_layer_n which
|
||||
* effectively ensures that ->default_layer_n and ->default_layer_0
|
||||
* remain immutable.
|
||||
*/
|
||||
|
@ -272,7 +272,7 @@ struct _CoglPipeline
|
||||
/* Layers represent their state in a tree structure where some of
|
||||
* the state relating to a given pipeline or layer may actually be
|
||||
* owned by one if is ancestors in the tree. We have a common data
|
||||
* type to track the tree heirachy so we can share code... */
|
||||
* type to track the tree hierarchy so we can share code... */
|
||||
CoglNode _parent;
|
||||
|
||||
/* When weak pipelines are destroyed the user is notified via this
|
||||
@ -529,7 +529,7 @@ _cogl_pipeline_pre_paint_for_layer (CoglPipeline *pipeline,
|
||||
* supplied texture and need to be replaced with fallback textures. (1 =
|
||||
* fallback, and the least significant bit = layer 0)
|
||||
* @COGL_PIPELINE_FLUSH_DISABLE_MASK: The disable_layers member is set to
|
||||
* a uint32_t mask of the layers that you want to completly disable
|
||||
* a uint32_t mask of the layers that you want to completely disable
|
||||
* texturing for (1 = fallback, and the least significant bit = layer 0)
|
||||
* @COGL_PIPELINE_FLUSH_LAYER0_OVERRIDE: The layer0_override_texture member is
|
||||
* set to a GLuint OpenGL texture name to override the texture used for
|
||||
|
@ -229,7 +229,7 @@ cogl_pipeline_get_alpha_test_reference (CoglPipeline *pipeline);
|
||||
*
|
||||
* This is the list of source-names usable as blend factors:
|
||||
* <itemizedlist>
|
||||
* <listitem><para>SRC_COLOR: The color of the in comming fragment</para></listitem>
|
||||
* <listitem><para>SRC_COLOR: The color of the incoming fragment</para></listitem>
|
||||
* <listitem><para>DST_COLOR: The color of the framebuffer</para></listitem>
|
||||
* <listitem><para>CONSTANT: The constant set via cogl_pipeline_set_blend_constant()</para></listitem>
|
||||
* </itemizedlist>
|
||||
@ -363,7 +363,7 @@ cogl_pipeline_get_point_size (CoglPipeline *pipeline);
|
||||
*
|
||||
* Since: 2.0
|
||||
* Stability: Unstable
|
||||
* Return value: %TRUE if the change suceeded or %FALSE otherwise
|
||||
* Return value: %TRUE if the change succeeded or %FALSE otherwise
|
||||
*/
|
||||
COGL_EXPORT gboolean
|
||||
cogl_pipeline_set_per_vertex_point_size (CoglPipeline *pipeline,
|
||||
@ -513,7 +513,7 @@ typedef enum
|
||||
* get overridden. For example, if a model has gaps so that it is
|
||||
* impossible to see the inside then faces which are facing away from
|
||||
* the screen will never be seen so there is no point in drawing
|
||||
* them. This can be acheived by setting the cull face mode to
|
||||
* them. This can be achieved by setting the cull face mode to
|
||||
* %COGL_PIPELINE_CULL_FACE_MODE_BACK.
|
||||
*
|
||||
* Face culling relies on the primitives being drawn with a specific
|
||||
|
@ -487,7 +487,7 @@ _cogl_pipeline_update_layers_cache (CoglPipeline *pipeline)
|
||||
g_warn_if_reached ();
|
||||
}
|
||||
|
||||
/* XXX: Be carefull when using this API that the callback given doesn't result
|
||||
/* XXX: Be careful when using this API that the callback given doesn't result
|
||||
* in the layer cache being invalidated during the iteration! */
|
||||
void
|
||||
_cogl_pipeline_foreach_layer_internal (CoglPipeline *pipeline,
|
||||
@ -2180,7 +2180,7 @@ _cogl_pipeline_prune_redundant_ancestry (CoglPipeline *pipeline)
|
||||
* ancestors to define the state of those 4 layers.
|
||||
*
|
||||
* If a pipeline depends on any ancestors for layer state then we
|
||||
* immediatly bail out.
|
||||
* immediately bail out.
|
||||
*/
|
||||
if (pipeline->differences & COGL_PIPELINE_STATE_LAYERS)
|
||||
{
|
||||
@ -2655,7 +2655,7 @@ add_layer_to_array_cb (CoglPipelineLayer *layer,
|
||||
|
||||
/* This tries to find the oldest ancestor whose pipeline and layer
|
||||
state matches the given flags. This is mostly used to detect code
|
||||
gen authorities so that we can reduce the numer of programs
|
||||
gen authorities so that we can reduce the number of programs
|
||||
generated */
|
||||
CoglPipeline *
|
||||
_cogl_pipeline_find_equivalent_parent (CoglPipeline *pipeline,
|
||||
|
@ -125,7 +125,7 @@ cogl_is_pipeline (void *object);
|
||||
|
||||
/**
|
||||
* CoglPipelineLayerCallback:
|
||||
* @pipeline: The #CoglPipeline whos layers are being iterated
|
||||
* @pipeline: The #CoglPipeline whose layers are being iterated
|
||||
* @layer_index: The current layer index
|
||||
* @user_data: The private data passed to cogl_pipeline_foreach_layer()
|
||||
*
|
||||
|
@ -354,7 +354,7 @@ _cogl_pixel_format_is_endian_dependant (CoglPixelFormat format)
|
||||
/* NB: currently checking whether the format components are aligned
|
||||
* or not determines whether the format is endian dependent or not.
|
||||
* In the future though we might consider adding formats with
|
||||
* aligned components that are also endian independant. */
|
||||
* aligned components that are also endian independent. */
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (format_info_table); i++)
|
||||
{
|
||||
|
@ -424,7 +424,7 @@ cogl_primitive_set_attributes (CoglPrimitive *primitive,
|
||||
|
||||
/* NB: we don't unref the previous attributes before refing the new
|
||||
* in case we would end up releasing the last reference for an
|
||||
* attribute thats actually in the new list too. */
|
||||
* attribute that's actually in the new list too. */
|
||||
for (i = 0; i < n_attributes; i++)
|
||||
{
|
||||
g_return_if_fail (cogl_is_attribute (attributes[i]));
|
||||
@ -434,7 +434,7 @@ cogl_primitive_set_attributes (CoglPrimitive *primitive,
|
||||
for (i = 0; i < primitive->n_attributes; i++)
|
||||
cogl_object_unref (primitive->attributes[i]);
|
||||
|
||||
/* First try to use the embedded storage assocated with the
|
||||
/* First try to use the embedded storage associated with the
|
||||
* primitive, else fallback to slice allocating separate storage for
|
||||
* the attribute pointers... */
|
||||
|
||||
|
@ -265,7 +265,7 @@ _cogl_texture_quad_multiple_primitives (CoglFramebuffer *framebuffer,
|
||||
state.v_to_q_scale_x = fabs (state.quad_len_x / (tx_2 - tx_1));
|
||||
state.v_to_q_scale_y = fabs (state.quad_len_y / (ty_2 - ty_1));
|
||||
|
||||
/* For backwards compatablity the default wrap mode for cogl_rectangle() is
|
||||
/* For backwards compatibility the default wrap mode for cogl_rectangle() is
|
||||
* _REPEAT... */
|
||||
if (wrap_s == COGL_PIPELINE_WRAP_MODE_AUTOMATIC)
|
||||
wrap_s = COGL_PIPELINE_WRAP_MODE_REPEAT;
|
||||
|
@ -107,7 +107,7 @@ G_BEGIN_DECLS
|
||||
* The snippets can be added to a pipeline with
|
||||
* cogl_pipeline_add_snippet() or
|
||||
* cogl_pipeline_add_layer_snippet(). Which function to use depends on
|
||||
* which hook the snippet is targetting. The snippets are all
|
||||
* which hook the snippet is targeting. The snippets are all
|
||||
* generated in the order they are added to the pipeline. That is, the
|
||||
* post strings are executed in the order they are added to the
|
||||
* pipeline and the pre strings are executed in reverse order. If any
|
||||
@ -645,7 +645,7 @@ GType cogl_snippet_get_gtype (void);
|
||||
* </para>
|
||||
* <para>
|
||||
* The ‘post’ string in @snippet will be inserted after texture lookup
|
||||
* has been preformed. Here the snippet can modify the cogl_texel
|
||||
* has been performed. Here the snippet can modify the cogl_texel
|
||||
* variable to alter the returned texel.
|
||||
* </para>
|
||||
* </glossdef>
|
||||
|
@ -62,7 +62,7 @@
|
||||
* texel wide texture, leaving 3 texels unallocated so we'd then
|
||||
* create a 4 texel wide texture - now there is only one texel of
|
||||
* waste. The algorithm continues to slice the right most textures
|
||||
* until the amount of waste is less than or equal to a specfied
|
||||
* until the amount of waste is less than or equal to a specified
|
||||
* max-waste threshold. The same logic for slicing from left to right
|
||||
* is also applied from top to bottom.
|
||||
*/
|
||||
|
@ -277,7 +277,7 @@ cogl_texture_is_sliced (CoglTexture *texture)
|
||||
}
|
||||
|
||||
/* If this returns FALSE, that implies _foreach_sub_texture_in_region
|
||||
* will be needed to iterate over multiple sub textures for regions whos
|
||||
* will be needed to iterate over multiple sub textures for regions whose
|
||||
* texture coordinates extend out of the range [0,1]
|
||||
*/
|
||||
gboolean
|
||||
@ -331,7 +331,7 @@ _cogl_texture_pre_paint (CoglTexture *texture, CoglTexturePrePaintFlags flags)
|
||||
*
|
||||
* XXX: Maybe it could even be considered a programmer error if the
|
||||
* texture hasn't been allocated by this point since it implies we
|
||||
* are abount to paint with undefined texture contents?
|
||||
* are about to paint with undefined texture contents?
|
||||
*/
|
||||
cogl_texture_allocate (texture, NULL);
|
||||
|
||||
|
@ -456,10 +456,10 @@ typedef enum _CoglWinsysFeature
|
||||
* only needs to be throttled to the framerate */
|
||||
COGL_WINSYS_FEATURE_SWAP_REGION_SYNCHRONIZED,
|
||||
|
||||
/* Avaiable if the age of the back buffer can be queried */
|
||||
/* Available if the age of the back buffer can be queried */
|
||||
COGL_WINSYS_FEATURE_BUFFER_AGE,
|
||||
|
||||
/* Avaiable if the winsys directly handles _SYNC and _COMPLETE events */
|
||||
/* Available if the winsys directly handles _SYNC and _COMPLETE events */
|
||||
COGL_WINSYS_FEATURE_SYNC_AND_COMPLETE_EVENT,
|
||||
|
||||
COGL_WINSYS_FEATURE_N_FEATURES
|
||||
|
@ -167,7 +167,7 @@ _cogl_driver_error_quark (void)
|
||||
#define VIEWPORT_TRANSFORM_X(x, vp_origin_x, vp_width) \
|
||||
( ( ((x) + 1.0) * ((vp_width) / 2.0) ) + (vp_origin_x) )
|
||||
/* Note: for Y we first flip all coordinates around the X axis while in
|
||||
* normalized device coodinates */
|
||||
* normalized device coordinates */
|
||||
#define VIEWPORT_TRANSFORM_Y(y, vp_origin_y, vp_height) \
|
||||
( ( ((-(y)) + 1.0) * ((vp_height) / 2.0) ) + (vp_origin_y) )
|
||||
|
||||
|
@ -123,7 +123,7 @@
|
||||
#include <cogl/cogl-glib-source.h>
|
||||
#include <cogl/cogl-trace.h>
|
||||
#include <cogl/cogl-scanout.h>
|
||||
/* XXX: This will definitly go away once all the Clutter winsys
|
||||
/* XXX: This will definitely go away once all the Clutter winsys
|
||||
* code has been migrated down into Cogl! */
|
||||
#include <cogl/deprecated/cogl-clutter.h>
|
||||
|
||||
|
@ -45,7 +45,7 @@ G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* SECTION:cogl-material
|
||||
* @short_description: Fuctions for creating and manipulating materials
|
||||
* @short_description: Functions for creating and manipulating materials
|
||||
*
|
||||
* COGL allows creating and manipulating materials used to fill in
|
||||
* geometry. Materials may simply be lighting attributes (such as an
|
||||
@ -287,7 +287,7 @@ cogl_material_set_alpha_test_function (CoglMaterial *material,
|
||||
*
|
||||
* This is the list of source-names usable as blend factors:
|
||||
* <itemizedlist>
|
||||
* <listitem><para>SRC_COLOR: The color of the in comming fragment</para></listitem>
|
||||
* <listitem><para>SRC_COLOR: The color of the incoming fragment</para></listitem>
|
||||
* <listitem><para>DST_COLOR: The color of the framebuffer</para></listitem>
|
||||
* <listitem><para>CONSTANT: The constant set via cogl_material_set_blend_constant()</para></listitem>
|
||||
* </itemizedlist>
|
||||
|
@ -43,7 +43,7 @@ G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* SECTION:cogl-shaders
|
||||
* @short_description: Fuctions for accessing the programmable GL pipeline
|
||||
* @short_description: Functions for accessing the programmable GL pipeline
|
||||
*
|
||||
* Cogl allows accessing the GL programmable pipeline in order to create
|
||||
* vertex and fragment shaders.
|
||||
@ -222,7 +222,7 @@ G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* CoglShaderType:
|
||||
* @COGL_SHADER_TYPE_VERTEX: A program for proccessing vertices
|
||||
* @COGL_SHADER_TYPE_VERTEX: A program for processing vertices
|
||||
* @COGL_SHADER_TYPE_FRAGMENT: A program for processing fragments
|
||||
*
|
||||
* Types of shaders
|
||||
|
@ -363,7 +363,7 @@ _cogl_buffer_gl_set_data (CoglBuffer *buffer,
|
||||
_cogl_buffer_gl_bind (buffer, target, &internal_error);
|
||||
|
||||
/* NB: _cogl_buffer_gl_bind() may return NULL in non-error
|
||||
* conditions so we have to explicity check internal_error
|
||||
* conditions so we have to explicitly check internal_error
|
||||
* to see if an exception was thrown.
|
||||
*/
|
||||
if (internal_error)
|
||||
|
@ -452,7 +452,7 @@ attach_depth_texture (CoglContext *ctx,
|
||||
if (flags & COGL_OFFSCREEN_ALLOCATE_FLAG_DEPTH_STENCIL)
|
||||
{
|
||||
/* attach a GL_DEPTH_STENCIL texture to the GL_DEPTH_ATTACHMENT and
|
||||
* GL_STENCIL_ATTACHMENT attachement points */
|
||||
* GL_STENCIL_ATTACHMENT attachment points */
|
||||
g_assert (_cogl_texture_get_format (depth_texture) ==
|
||||
COGL_PIXEL_FORMAT_DEPTH_24_STENCIL_8);
|
||||
|
||||
@ -471,7 +471,7 @@ attach_depth_texture (CoglContext *ctx,
|
||||
else if (flags & COGL_OFFSCREEN_ALLOCATE_FLAG_DEPTH)
|
||||
{
|
||||
/* attach a newly created GL_DEPTH_COMPONENT16 texture to the
|
||||
* GL_DEPTH_ATTACHMENT attachement point */
|
||||
* GL_DEPTH_ATTACHMENT attachment point */
|
||||
g_assert (_cogl_texture_get_format (depth_texture) ==
|
||||
COGL_PIXEL_FORMAT_DEPTH_16);
|
||||
|
||||
@ -1187,7 +1187,7 @@ _cogl_framebuffer_gl_read_pixels_into_bitmap (CoglFramebuffer *framebuffer,
|
||||
framebuffer,
|
||||
COGL_FRAMEBUFFER_STATE_BIND);
|
||||
|
||||
/* The y co-ordinate should be given in OpenGL's coordinate system
|
||||
/* The y coordinate should be given in OpenGL's coordinate system
|
||||
* so 0 is the bottom row
|
||||
*
|
||||
* NB: all offscreen rendering is done upside down so no conversion
|
||||
@ -1330,7 +1330,7 @@ _cogl_framebuffer_gl_read_pixels_into_bitmap (CoglFramebuffer *framebuffer,
|
||||
COGL_BUFFER_ACCESS_WRITE,
|
||||
0, /* hints */
|
||||
&internal_error);
|
||||
/* NB: _cogl_bitmap_gl_bind() can return NULL in sucessfull
|
||||
/* NB: _cogl_bitmap_gl_bind() can return NULL in successful
|
||||
* cases so we have to explicitly check the cogl error pointer
|
||||
* to know if there was a problem */
|
||||
if (internal_error)
|
||||
|
@ -55,7 +55,7 @@
|
||||
#include <glib.h>
|
||||
|
||||
/*
|
||||
* GL/GLES compatability defines for pipeline thingies:
|
||||
* GL/GLES compatibility defines for pipeline thingies:
|
||||
*/
|
||||
|
||||
/* This might not be defined on GLES */
|
||||
|
@ -45,7 +45,7 @@
|
||||
*
|
||||
* Roughly speaking the members in this structure are of two kinds:
|
||||
* either they are a low level reflection of the state we send to
|
||||
* OpenGL or they are for high level meta data assoicated with the
|
||||
* OpenGL or they are for high level meta data associated with the
|
||||
* texture unit when flushing CoglPipelineLayers that is typically
|
||||
* used to optimize subsequent re-flushing of the same layer.
|
||||
*
|
||||
@ -92,7 +92,7 @@ typedef struct _CoglTextureUnit
|
||||
* Higher level layer state associated with the unit...
|
||||
*/
|
||||
|
||||
/* The CoglPipelineLayer whos state was flushed to update this
|
||||
/* The CoglPipelineLayer whose state was flushed to update this
|
||||
* texture unit last.
|
||||
*
|
||||
* This will be set to NULL if the layer is modified or freed which
|
||||
@ -102,7 +102,7 @@ typedef struct _CoglTextureUnit
|
||||
CoglPipelineLayer *layer;
|
||||
|
||||
/* To help minimize the state changes required we track the
|
||||
* difference flags associated with the layer whos state was last
|
||||
* difference flags associated with the layer whose state was last
|
||||
* flushed to update this texture unit.
|
||||
*
|
||||
* Note: we track this explicitly because .layer may get invalidated
|
||||
|
@ -51,7 +51,7 @@
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* GL/GLES compatability defines for pipeline thingies:
|
||||
* GL/GLES compatibility defines for pipeline thingies:
|
||||
*/
|
||||
|
||||
/* These aren't defined in the GLES headers */
|
||||
@ -883,7 +883,7 @@ fragend_add_layer_cb (CoglPipelineLayer *layer,
|
||||
* Details of override options:
|
||||
* ->fallback_mask: is a bitmask of the pipeline layers that need to be
|
||||
* replaced with the default, fallback textures. The fallback textures are
|
||||
* fully transparent textures so they hopefully wont contribute to the
|
||||
* fully transparent textures so they hopefully won't contribute to the
|
||||
* texture combining.
|
||||
*
|
||||
* The intention of fallbacks is to try and preserve
|
||||
@ -918,7 +918,7 @@ fragend_add_layer_cb (CoglPipelineLayer *layer,
|
||||
* XXX: It might also help if we could specify a texture matrix for code
|
||||
* dealing with slicing that would be multiplied with the users own matrix.
|
||||
*
|
||||
* Normaly texture coords in the range [0, 1] refer to the extents of the
|
||||
* Normally texture coords in the range [0, 1] refer to the extents of the
|
||||
* texture, but when your GL texture represents a slice of the real texture
|
||||
* (from the users POV) then a texture matrix would be a neat way of
|
||||
* transforming the mapping for each slice.
|
||||
|
@ -129,7 +129,7 @@ typedef struct
|
||||
|
||||
/* The 'flip' uniform is used to flip the geometry upside-down when
|
||||
the framebuffer requires it only when there are vertex
|
||||
snippets. Otherwise this is acheived using the projection
|
||||
snippets. Otherwise this is achieved using the projection
|
||||
matrix */
|
||||
GLint flip_uniform;
|
||||
int flushed_flip_state;
|
||||
|
@ -125,7 +125,7 @@ _cogl_context_get_gl_version (CoglContext *context);
|
||||
* the "OpenGL ES" part on GLES). The version number can be followed
|
||||
* by the end of the string, a space or a full stop. Anything else
|
||||
* will be treated as invalid. Returns TRUE and sets major_out and
|
||||
* minor_out if it is succesfully parsed or FALSE otherwise. */
|
||||
* minor_out if it is successfully parsed or FALSE otherwise. */
|
||||
gboolean
|
||||
_cogl_gl_util_parse_gl_version (const char *version_string,
|
||||
int *major_out,
|
||||
|
@ -202,7 +202,7 @@ _cogl_texture_driver_upload_subregion_to_gl (CoglContext *ctx,
|
||||
|
||||
data = _cogl_bitmap_gl_bind (source_bmp, COGL_BUFFER_ACCESS_READ, 0, &internal_error);
|
||||
|
||||
/* NB: _cogl_bitmap_gl_bind() may return NULL when successfull so we
|
||||
/* NB: _cogl_bitmap_gl_bind() may return NULL when successful so we
|
||||
* have to explicitly check the cogl error pointer to catch
|
||||
* problems... */
|
||||
if (internal_error)
|
||||
|
@ -258,7 +258,7 @@ _cogl_texture_driver_upload_subregion_to_gl (CoglContext *ctx,
|
||||
|
||||
data = _cogl_bitmap_gl_bind (slice_bmp, COGL_BUFFER_ACCESS_READ, 0, &internal_error);
|
||||
|
||||
/* NB: _cogl_bitmap_gl_bind() may return NULL when successfull so we
|
||||
/* NB: _cogl_bitmap_gl_bind() may return NULL when successful so we
|
||||
* have to explicitly check the cogl error pointer to catch
|
||||
* problems... */
|
||||
if (internal_error)
|
||||
|
@ -41,7 +41,7 @@
|
||||
* COGL_WINSYS_FEATURE_END ()
|
||||
*
|
||||
* Note: You can list multiple namespace and extension names if the
|
||||
* corresponding _FEATURE_FUNCTIONS have the same semantics accross
|
||||
* corresponding _FEATURE_FUNCTIONS have the same semantics across
|
||||
* the different extension variants.
|
||||
*
|
||||
* XXX: NB: Don't add a trailing semicolon when using these macros
|
||||
|
@ -43,7 +43,7 @@
|
||||
* COGL_WINSYS_FEATURE_END ()
|
||||
*
|
||||
* Note: You can list multiple namespace and extension names if the
|
||||
* corresponding _FEATURE_FUNCTIONS have the same semantics accross
|
||||
* corresponding _FEATURE_FUNCTIONS have the same semantics across
|
||||
* the different extension variants.
|
||||
*
|
||||
* XXX: NB: Don't add a trailing semicolon when using these macros
|
||||
|
@ -85,7 +85,7 @@ test_utils_fini (void);
|
||||
*
|
||||
* Creates a new #CoglTexture with the specified dimensions and pixel format.
|
||||
*
|
||||
* The storage for the texture is not necesarily created before this
|
||||
* The storage for the texture is not necessarily created before this
|
||||
* function returns. The storage can be explicitly allocated using
|
||||
* cogl_texture_allocate() or preferably you can let Cogl
|
||||
* automatically allocate the storage lazily when uploading data when
|
||||
@ -156,8 +156,8 @@ test_utils_texture_new_from_bitmap (CoglBitmap *bitmap,
|
||||
/*
|
||||
* test_utils_check_pixel:
|
||||
* @framebuffer: The #CoglFramebuffer to read from
|
||||
* @x: x co-ordinate of the pixel to test
|
||||
* @y: y co-ordinate of the pixel to test
|
||||
* @x: x coordinate of the pixel to test
|
||||
* @y: y coordinate of the pixel to test
|
||||
* @pixel: An integer of the form 0xRRGGBBAA representing the expected
|
||||
* pixel value
|
||||
*
|
||||
@ -173,8 +173,8 @@ test_utils_check_pixel (CoglFramebuffer *framebuffer,
|
||||
|
||||
/**
|
||||
* @framebuffer: The #CoglFramebuffer to read from
|
||||
* @x: x co-ordinate of the pixel to test
|
||||
* @y: y co-ordinate of the pixel to test
|
||||
* @x: x coordinate of the pixel to test
|
||||
* @y: y coordinate of the pixel to test
|
||||
* @pixel: An integer of the form 0xRRGGBBAA representing the expected
|
||||
* pixel value
|
||||
*
|
||||
@ -192,8 +192,8 @@ test_utils_check_pixel_and_alpha (CoglFramebuffer *fb,
|
||||
/*
|
||||
* test_utils_check_pixel:
|
||||
* @framebuffer: The #CoglFramebuffer to read from
|
||||
* @x: x co-ordinate of the pixel to test
|
||||
* @y: y co-ordinate of the pixel to test
|
||||
* @x: x coordinate of the pixel to test
|
||||
* @y: y coordinate of the pixel to test
|
||||
* @pixel: An integer of the form 0xrrggbb representing the expected pixel value
|
||||
*
|
||||
* This performs reads a pixel on the given cogl @framebuffer and
|
||||
@ -209,8 +209,8 @@ test_utils_check_pixel_rgb (CoglFramebuffer *framebuffer,
|
||||
/*
|
||||
* test_utils_check_region:
|
||||
* @framebuffer: The #CoglFramebuffer to read from
|
||||
* @x: x co-ordinate of the region to test
|
||||
* @y: y co-ordinate of the region to test
|
||||
* @x: x coordinate of the region to test
|
||||
* @y: y coordinate of the region to test
|
||||
* @width: width of the region to test
|
||||
* @height: height of the region to test
|
||||
* @pixel: An integer of the form 0xrrggbb representing the expected region color
|
||||
|
@ -38,7 +38,7 @@ paint (void)
|
||||
* attribute with an alpha component which implies blending is
|
||||
* required.
|
||||
*
|
||||
* If Cogl gets this wrong then then in all likelyhood the second
|
||||
* If Cogl gets this wrong then then in all likelihood the second
|
||||
* primitive will be drawn with blending still disabled.
|
||||
*/
|
||||
|
||||
|
@ -190,9 +190,9 @@ test_multitexture (TestUtilsGTestFixture *fixture,
|
||||
group = clutter_actor_new ();
|
||||
clutter_container_add_actor (CLUTTER_CONTAINER (stage), group);
|
||||
|
||||
/* We force continuous redrawing incase someone comments out the
|
||||
/* We force continuous redrawing in case someone comments out the
|
||||
* clutter_test_quit and wants visual feedback for the test since we
|
||||
* wont be doing anything else that will trigger redrawing. */
|
||||
* won't be doing anything else that will trigger redrawing. */
|
||||
idle_source = g_idle_add (queue_redraw, stage);
|
||||
|
||||
g_signal_connect (group, "paint", G_CALLBACK (on_paint), &state);
|
||||
|
@ -149,7 +149,7 @@ init_long_pipeline_state (TestState *state)
|
||||
state->long_pipeline = create_pipeline_for_shader (state, long_source);
|
||||
|
||||
/* This tries to lookup a large number of uniform names to make sure
|
||||
that the bitmask of overriden uniforms flows over the size of a
|
||||
that the bitmask of overridden uniforms flows over the size of a
|
||||
single long so that it has to resort to allocating it */
|
||||
for (i = 0; i < LONG_ARRAY_SIZE; i++)
|
||||
{
|
||||
|
@ -87,7 +87,7 @@ test_primitive_and_journal (void)
|
||||
/* Draw a rectangle using the journal in-between the two primitives.
|
||||
* This should test that the journal gets flushed correctly and that
|
||||
* the modelview matrix is restored. Half of the rectangle should be
|
||||
* overriden by the second primitive */
|
||||
* overridden by the second primitive */
|
||||
cogl_framebuffer_draw_rectangle (test_fb,
|
||||
pipeline,
|
||||
100, 0, /* x1/y1 */
|
||||
|
@ -159,7 +159,7 @@ test_readpixels (TestUtilsGTestFixture *fixture,
|
||||
clutter_actor_set_background_color (CLUTTER_ACTOR (stage), &stage_color);
|
||||
|
||||
/* We force continuous redrawing of the stage, since we need to skip
|
||||
* the first few frames, and we wont be doing anything else that
|
||||
* the first few frames, and we won't be doing anything else that
|
||||
* will trigger redrawing. */
|
||||
idle_source = g_idle_add (queue_redraw, stage);
|
||||
g_signal_connect_after (stage, "paint", G_CALLBACK (on_paint), NULL);
|
||||
|
@ -121,7 +121,7 @@ test_texture_mipmaps (TestUtilsGTestFixture *fixture,
|
||||
clutter_container_add_actor (CLUTTER_CONTAINER (stage), group);
|
||||
|
||||
/* We force continuous redrawing of the stage, since we need to skip
|
||||
* the first few frames, and we wont be doing anything else that
|
||||
* the first few frames, and we won't be doing anything else that
|
||||
* will trigger redrawing. */
|
||||
idle_source = g_idle_add (queue_redraw, stage);
|
||||
|
||||
|
@ -397,7 +397,7 @@ test_viewport (TestUtilsGTestFixture *fixture,
|
||||
clutter_actor_set_background_color (CLUTTER_ACTOR (stage), &stage_color);
|
||||
|
||||
/* We force continuous redrawing of the stage, since we need to skip
|
||||
* the first few frames, and we wont be doing anything else that
|
||||
* the first few frames, and we won't be doing anything else that
|
||||
* will trigger redrawing. */
|
||||
idle_source = g_idle_add (queue_redraw, stage);
|
||||
g_signal_connect_after (stage, "paint", G_CALLBACK (on_paint), NULL);
|
||||
|
@ -49,7 +49,7 @@
|
||||
/* Building with startup notification support */
|
||||
#mesondefine HAVE_STARTUP_NOTIFICATION
|
||||
|
||||
/* Building with Sysprof profiling suport */
|
||||
/* Building with Sysprof profiling support */
|
||||
#mesondefine HAVE_PROFILER
|
||||
|
||||
/* Path to Xwayland executable */
|
||||
|
@ -150,7 +150,7 @@ option('xwayland_path',
|
||||
option('xwayland_grab_default_access_rules',
|
||||
type: 'string',
|
||||
value: 'gnome-boxes,remote-viewer,virt-viewer,virt-manager,vinagre,vncviewer,Xephyr',
|
||||
description: 'Comma delimited list of applications ressources or class allowed to issue X11 grabs in Xwayland'
|
||||
description: 'Comma delimited list of applications resources or class allowed to issue X11 grabs in Xwayland'
|
||||
)
|
||||
|
||||
option('xwayland_initfd',
|
||||
|
@ -34,7 +34,7 @@
|
||||
* - Input device configuration (using the #ClutterDeviceManager)
|
||||
* - Creating the #MetaRenderer
|
||||
* - Setting up the stage of the scene graph (using #MetaStage)
|
||||
* - Creating the object that deals wih the cursor (using #MetaCursorTracker)
|
||||
* - Creating the object that deals with the cursor (using #MetaCursorTracker)
|
||||
* and its possible pointer constraint (using #MetaPointerConstraint)
|
||||
* - Setting the cursor sprite (using #MetaCursorRenderer)
|
||||
* - Interacting with logind (using the appropriate D-Bus interface)
|
||||
@ -1329,7 +1329,7 @@ meta_backend_get_client_pointer_constraint (MetaBackend *backend)
|
||||
* @constraint: (nullable): the client constraint to follow.
|
||||
*
|
||||
* Sets the current pointer constraint and removes (and unrefs) the previous
|
||||
* one. If @constrant is %NULL, this means that there is no
|
||||
* one. If @constraint is %NULL, this means that there is no
|
||||
* #MetaPointerConstraint active.
|
||||
*/
|
||||
void
|
||||
|
@ -34,7 +34,7 @@ meta_create_xkb_context (void)
|
||||
|
||||
/*
|
||||
* We can only append search paths in libxkbcommon, so we start with an
|
||||
* emtpy set, then add the XDG dir, then add the default search paths.
|
||||
* empty set, then add the XDG dir, then add the default search paths.
|
||||
*/
|
||||
ctx = xkb_context_new (XKB_CONTEXT_NO_DEFAULT_INCLUDES);
|
||||
|
||||
|
@ -48,7 +48,7 @@ struct _MetaLogicalMonitor
|
||||
It can be matched to a winsys_id of a MetaOutput.
|
||||
|
||||
This is used as an opaque token on reconfiguration when switching from
|
||||
clone to extened, to decide on what output the windows should go next
|
||||
clone to extended, to decide on what output the windows should go next
|
||||
(it's an attempt to keep windows on the same monitor, and preferably on
|
||||
the primary one).
|
||||
*/
|
||||
|
@ -1531,7 +1531,7 @@ meta_monitor_config_store_constructed (GObject *object)
|
||||
META_MONITOR_CONFIG_STORE_ERROR_NEEDS_MIGRATION))
|
||||
g_warning ("System monitor configuration file (%s) is "
|
||||
"incompatible; ask your administrator to migrate "
|
||||
"the system monitor configuation.",
|
||||
"the system monitor configuration.",
|
||||
system_file_path);
|
||||
else
|
||||
g_warning ("Failed to read monitors config file '%s': %s",
|
||||
|
@ -73,7 +73,7 @@ typedef struct _MetaMonitorPrivate
|
||||
* It can be matched to a winsys_id of a MetaOutput.
|
||||
*
|
||||
* This is used as an opaque token on reconfiguration when switching from
|
||||
* clone to extened, to decide on what output the windows should go next
|
||||
* clone to extended, to decide on what output the windows should go next
|
||||
* (it's an attempt to keep windows on the same monitor, and preferably on
|
||||
* the primary one).
|
||||
*/
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user