-/***************************************************************************
+ /***************************************************************************
*
* Copyright 2010,2011 BMW Car IT GmbH
* Copyright (C) 2012 DENSO CORPORATION and Robert Bosch Car Multimedia Gmbh
*/
void getChromaKey(unsigned char& red, unsigned char& green, unsigned char& blue) const;
+
+ /**
+ * Set the synchronized compositing flag for this object.
+ * Synchronized composition forces screen updates, if all synchronized objects are
+ * were updated, otherwise the composition is freezed.
+ * @param[in] newSynchnronized set this object synchronized (true) or not (false)
+ * @return TRUE if the new synchronized value is not equal to the current synchronized value
+ * FALSE if they are equal
+ */
+ bool setSynchronized(bool newSynchnronized);
+
+ /**
+ * Get the synchronized compositing flag for this object.
+ * @param[in] newSynchnronized set this object synchronized (true) or not (false)
+ * @return TRUE if the synchronized value is set
+ * FALSE if they synchronized value is unset
+ */
+ bool getSynchronized() const;
+
/**
* Set the visibility
* @param[in] newVisibility set this object visible (true) or invisible (false)
Shader* shader;
double opacity;
bool visibility;
+ bool synchronized;
bool chromaKeyEnabled;
unsigned char chromaKeyRed;
unsigned char chromaKeyGreen;
, shader(0)
, opacity(opacity)
, visibility(visibility)
+, synchronized(false)
, chromaKeyEnabled(false)
, chromaKeyRed(0)
, chromaKeyGreen(0)
, shader(0)
, opacity(opacity)
, visibility(visibility)
+, synchronized(false)
, chromaKeyEnabled(false)
, chromaKeyRed(0)
, chromaKeyGreen(0)
return false;
}
+inline bool GraphicalObject::setSynchronized(bool newSynchnronized)
+{
+ if (synchronized != newSynchnronized)
+ {
+ synchronized = newSynchnronized;
+ return true;
+ }
+ return synchronized;
+}
+
+inline bool GraphicalObject::getSynchronized() const
+{
+ return synchronized;
+}
+
+
inline bool GraphicalObject::getVisibility() const
{
return visibility;
int OriginalSourceWidth;
int OriginalSourceHeight;
bool m_surfaceResized;
+ bool m_resizesync;
private:
OrientationType m_orientation; // Rotation of the graphical content
, OriginalSourceWidth(0)
, OriginalSourceHeight(0)
, m_surfaceResized(false)
+, m_resizesync(false)
, m_orientation(Zero)
, m_sourceViewport(0, 0, 0, 0)
, m_destinationViewport(0, 0, 0, 0)
, OriginalSourceWidth(0)
, OriginalSourceHeight(0)
, m_surfaceResized(false)
+, m_resizesync(false)
, m_orientation(Zero)
, m_sourceViewport(0, 0, 0, 0)
, m_destinationViewport(0, 0, 0, 0)